Package com.exoscale.sdk.model
Class InstancePool
- java.lang.Object
-
- com.exoscale.sdk.model.InstancePool
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class InstancePool extends Object
Instance Pool
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstancePool.StateEnum
Instance Pool state
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_ANTI_AFFINITY_GROUPS
static String
JSON_PROPERTY_DEPLOY_TARGET
static String
JSON_PROPERTY_DESCRIPTION
static String
JSON_PROPERTY_DISK_SIZE
static String
JSON_PROPERTY_ELASTIC_IPS
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_INSTANCE_PREFIX
static String
JSON_PROPERTY_INSTANCE_TYPE
static String
JSON_PROPERTY_INSTANCES
static String
JSON_PROPERTY_IPV6_ENABLED
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_MANAGER
static String
JSON_PROPERTY_MIN_AVAILABLE
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PRIVATE_NETWORKS
static String
JSON_PROPERTY_PUBLIC_IP_ASSIGNMENT
static String
JSON_PROPERTY_SECURITY_GROUPS
static String
JSON_PROPERTY_SIZE
static String
JSON_PROPERTY_SSH_KEY
static String
JSON_PROPERTY_SSH_KEYS
static String
JSON_PROPERTY_STATE
static String
JSON_PROPERTY_TEMPLATE
static String
JSON_PROPERTY_USER_DATA
-
Constructor Summary
Constructors Constructor Description InstancePool()
InstancePool(InstancePool.StateEnum state, List<Instance> instances, UUID id)
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ANTI_AFFINITY_GROUPS
public static final String JSON_PROPERTY_ANTI_AFFINITY_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PUBLIC_IP_ASSIGNMENT
public static final String JSON_PROPERTY_PUBLIC_IP_ASSIGNMENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LABELS
public static final String JSON_PROPERTY_LABELS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECURITY_GROUPS
public static final String JSON_PROPERTY_SECURITY_GROUPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ELASTIC_IPS
public static final String JSON_PROPERTY_ELASTIC_IPS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE_TYPE
public static final String JSON_PROPERTY_INSTANCE_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MIN_AVAILABLE
public static final String JSON_PROPERTY_MIN_AVAILABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRIVATE_NETWORKS
public static final String JSON_PROPERTY_PRIVATE_NETWORKS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TEMPLATE
public static final String JSON_PROPERTY_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATE
public static final String JSON_PROPERTY_STATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SIZE
public static final String JSON_PROPERTY_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SSH_KEY
public static final String JSON_PROPERTY_SSH_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCE_PREFIX
public static final String JSON_PROPERTY_INSTANCE_PREFIX
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER_DATA
public static final String JSON_PROPERTY_USER_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MANAGER
public static final String JSON_PROPERTY_MANAGER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INSTANCES
public static final String JSON_PROPERTY_INSTANCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DEPLOY_TARGET
public static final String JSON_PROPERTY_DEPLOY_TARGET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IPV6_ENABLED
public static final String JSON_PROPERTY_IPV6_ENABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISK_SIZE
public static final String JSON_PROPERTY_DISK_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SSH_KEYS
public static final String JSON_PROPERTY_SSH_KEYS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
InstancePool
public InstancePool()
-
InstancePool
public InstancePool(InstancePool.StateEnum state, List<Instance> instances, UUID id)
-
-
Method Detail
-
antiAffinityGroups
public InstancePool antiAffinityGroups(List<AntiAffinityGroup> antiAffinityGroups)
-
addAntiAffinityGroupsItem
public InstancePool addAntiAffinityGroupsItem(AntiAffinityGroup antiAffinityGroupsItem)
-
getAntiAffinityGroups
@Nullable public List<AntiAffinityGroup> getAntiAffinityGroups()
Instance Pool Anti-affinity Groups- Returns:
- antiAffinityGroups
-
setAntiAffinityGroups
public void setAntiAffinityGroups(List<AntiAffinityGroup> antiAffinityGroups)
-
description
public InstancePool description(String description)
-
getDescription
@Nullable public String getDescription()
Instance Pool description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
publicIpAssignment
public InstancePool publicIpAssignment(PublicIpAssignment publicIpAssignment)
-
getPublicIpAssignment
@Nullable public PublicIpAssignment getPublicIpAssignment()
Get publicIpAssignment- Returns:
- publicIpAssignment
-
setPublicIpAssignment
public void setPublicIpAssignment(PublicIpAssignment publicIpAssignment)
-
labels
public InstancePool labels(Map<String,String> labels)
-
putLabelsItem
public InstancePool putLabelsItem(String key, String labelsItem)
-
securityGroups
public InstancePool securityGroups(List<SecurityGroup> securityGroups)
-
addSecurityGroupsItem
public InstancePool addSecurityGroupsItem(SecurityGroup securityGroupsItem)
-
getSecurityGroups
@Nullable public List<SecurityGroup> getSecurityGroups()
Instance Pool Security Groups- Returns:
- securityGroups
-
setSecurityGroups
public void setSecurityGroups(List<SecurityGroup> securityGroups)
-
elasticIps
public InstancePool elasticIps(List<ElasticIp> elasticIps)
-
addElasticIpsItem
public InstancePool addElasticIpsItem(ElasticIp elasticIpsItem)
-
getElasticIps
@Nullable public List<ElasticIp> getElasticIps()
Instances Elastic IPs- Returns:
- elasticIps
-
name
public InstancePool name(String name)
-
getName
@Nullable public String getName()
Instance Pool name- Returns:
- name
-
setName
public void setName(String name)
-
instanceType
public InstancePool instanceType(InstanceType instanceType)
-
getInstanceType
@Nullable public InstanceType getInstanceType()
Get instanceType- Returns:
- instanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
-
minAvailable
public InstancePool minAvailable(Long minAvailable)
-
getMinAvailable
@Nullable public Long getMinAvailable()
Minimum number of running instances minimum: 0- Returns:
- minAvailable
-
setMinAvailable
public void setMinAvailable(Long minAvailable)
-
privateNetworks
public InstancePool privateNetworks(List<PrivateNetwork> privateNetworks)
-
addPrivateNetworksItem
public InstancePool addPrivateNetworksItem(PrivateNetwork privateNetworksItem)
-
getPrivateNetworks
@Nullable public List<PrivateNetwork> getPrivateNetworks()
Instance Pool Private Networks- Returns:
- privateNetworks
-
setPrivateNetworks
public void setPrivateNetworks(List<PrivateNetwork> privateNetworks)
-
template
public InstancePool template(Template template)
-
getTemplate
@Nullable public Template getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(Template template)
-
getState
@Nullable public InstancePool.StateEnum getState()
Instance Pool state- Returns:
- state
-
size
public InstancePool size(Long size)
-
getSize
@Nullable public Long getSize()
Number of instances minimum: 0- Returns:
- size
-
setSize
public void setSize(Long size)
-
sshKey
public InstancePool sshKey(SshKey sshKey)
-
getSshKey
@Nullable public SshKey getSshKey()
Get sshKey- Returns:
- sshKey
-
setSshKey
public void setSshKey(SshKey sshKey)
-
instancePrefix
public InstancePool instancePrefix(String instancePrefix)
-
getInstancePrefix
@Nullable public String getInstancePrefix()
The instances created by the Instance Pool will be prefixed with this value (default: pool)- Returns:
- instancePrefix
-
setInstancePrefix
public void setInstancePrefix(String instancePrefix)
-
userData
public InstancePool userData(String userData)
-
getUserData
@Nullable public String getUserData()
Instances Cloud-init user-data- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
manager
public InstancePool manager(Manager manager)
-
getManager
@Nullable public Manager getManager()
Get manager- Returns:
- manager
-
setManager
public void setManager(Manager manager)
-
deployTarget
public InstancePool deployTarget(DeployTarget deployTarget)
-
getDeployTarget
@Nullable public DeployTarget getDeployTarget()
Get deployTarget- Returns:
- deployTarget
-
setDeployTarget
public void setDeployTarget(DeployTarget deployTarget)
-
ipv6Enabled
public InstancePool ipv6Enabled(Boolean ipv6Enabled)
-
getIpv6Enabled
@Nullable public Boolean getIpv6Enabled()
Enable IPv6 for instances- Returns:
- ipv6Enabled
-
setIpv6Enabled
public void setIpv6Enabled(Boolean ipv6Enabled)
-
getId
@Nullable public UUID getId()
Instance Pool ID- Returns:
- id
-
diskSize
public InstancePool diskSize(Long diskSize)
-
getDiskSize
@Nullable public Long getDiskSize()
Instances disk size in GiB minimum: 10 maximum: 51200- Returns:
- diskSize
-
setDiskSize
public void setDiskSize(Long diskSize)
-
sshKeys
public InstancePool sshKeys(List<SshKey> sshKeys)
-
addSshKeysItem
public InstancePool addSshKeysItem(SshKey sshKeysItem)
-
equals
public boolean equals(Object o)
Return true if this instance-pool object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-