Package com.exoscale.sdk.model
Class CreateInstancePoolRequest
- java.lang.Object
-
- com.exoscale.sdk.model.CreateInstancePoolRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class CreateInstancePoolRequest extends Object
CreateInstancePoolRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateInstancePoolRequest.PublicIpAssignmentEnum
Determines public IP assignment of the Instances.
-
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_INSTANCE_PREFIX
static String
JSON_PROPERTY_INSTANCE_TYPE
static String
JSON_PROPERTY_IPV6_ENABLED
static String
JSON_PROPERTY_LABELS
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_TEMPLATE
static String
JSON_PROPERTY_USER_DATA
-
Constructor Summary
Constructors Constructor Description CreateInstancePoolRequest()
-
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_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_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_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
-
-
Method Detail
-
antiAffinityGroups
public CreateInstancePoolRequest antiAffinityGroups(Set<AntiAffinityGroup> antiAffinityGroups)
-
addAntiAffinityGroupsItem
public CreateInstancePoolRequest addAntiAffinityGroupsItem(AntiAffinityGroup antiAffinityGroupsItem)
-
getAntiAffinityGroups
@Nullable public Set<AntiAffinityGroup> getAntiAffinityGroups()
Instance Pool Anti-affinity Groups- Returns:
- antiAffinityGroups
-
setAntiAffinityGroups
public void setAntiAffinityGroups(Set<AntiAffinityGroup> antiAffinityGroups)
-
description
public CreateInstancePoolRequest description(String description)
-
getDescription
@Nullable public String getDescription()
Instance Pool description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
publicIpAssignment
public CreateInstancePoolRequest publicIpAssignment(CreateInstancePoolRequest.PublicIpAssignmentEnum publicIpAssignment)
-
getPublicIpAssignment
@Nullable public CreateInstancePoolRequest.PublicIpAssignmentEnum getPublicIpAssignment()
Determines public IP assignment of the Instances. Type `none` is final and can't be changed later on.- Returns:
- publicIpAssignment
-
setPublicIpAssignment
public void setPublicIpAssignment(CreateInstancePoolRequest.PublicIpAssignmentEnum publicIpAssignment)
-
labels
public CreateInstancePoolRequest labels(Map<String,String> labels)
-
putLabelsItem
public CreateInstancePoolRequest putLabelsItem(String key, String labelsItem)
-
securityGroups
public CreateInstancePoolRequest securityGroups(Set<SecurityGroup> securityGroups)
-
addSecurityGroupsItem
public CreateInstancePoolRequest addSecurityGroupsItem(SecurityGroup securityGroupsItem)
-
getSecurityGroups
@Nullable public Set<SecurityGroup> getSecurityGroups()
Instance Pool Security Groups- Returns:
- securityGroups
-
setSecurityGroups
public void setSecurityGroups(Set<SecurityGroup> securityGroups)
-
elasticIps
public CreateInstancePoolRequest elasticIps(Set<ElasticIp> elasticIps)
-
addElasticIpsItem
public CreateInstancePoolRequest addElasticIpsItem(ElasticIp elasticIpsItem)
-
getElasticIps
@Nullable public Set<ElasticIp> getElasticIps()
Instances Elastic IPs- Returns:
- elasticIps
-
name
public CreateInstancePoolRequest name(String name)
-
getName
@Nonnull public String getName()
Instance Pool name- Returns:
- name
-
setName
public void setName(String name)
-
instanceType
public CreateInstancePoolRequest instanceType(InstanceType instanceType)
-
getInstanceType
@Nonnull public InstanceType getInstanceType()
Get instanceType- Returns:
- instanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
-
minAvailable
public CreateInstancePoolRequest 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 CreateInstancePoolRequest privateNetworks(Set<PrivateNetwork> privateNetworks)
-
addPrivateNetworksItem
public CreateInstancePoolRequest addPrivateNetworksItem(PrivateNetwork privateNetworksItem)
-
getPrivateNetworks
@Nullable public Set<PrivateNetwork> getPrivateNetworks()
Instance Pool Private Networks- Returns:
- privateNetworks
-
setPrivateNetworks
public void setPrivateNetworks(Set<PrivateNetwork> privateNetworks)
-
template
public CreateInstancePoolRequest template(Template template)
-
getTemplate
@Nonnull public Template getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(Template template)
-
size
public CreateInstancePoolRequest size(Long size)
-
getSize
@Nonnull public Long getSize()
Number of Instances minimum: 0- Returns:
- size
-
setSize
public void setSize(Long size)
-
sshKey
public CreateInstancePoolRequest sshKey(SshKey sshKey)
-
getSshKey
@Nullable public SshKey getSshKey()
Get sshKey- Returns:
- sshKey
-
setSshKey
public void setSshKey(SshKey sshKey)
-
instancePrefix
public CreateInstancePoolRequest instancePrefix(String instancePrefix)
-
getInstancePrefix
@Nullable public String getInstancePrefix()
Prefix to apply to Instances names (default: pool)- Returns:
- instancePrefix
-
setInstancePrefix
public void setInstancePrefix(String instancePrefix)
-
userData
public CreateInstancePoolRequest userData(String userData)
-
getUserData
@Nullable public String getUserData()
Instances Cloud-init user-data- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
deployTarget
public CreateInstancePoolRequest deployTarget(DeployTarget deployTarget)
-
getDeployTarget
@Nullable public DeployTarget getDeployTarget()
Get deployTarget- Returns:
- deployTarget
-
setDeployTarget
public void setDeployTarget(DeployTarget deployTarget)
-
ipv6Enabled
public CreateInstancePoolRequest ipv6Enabled(Boolean ipv6Enabled)
-
getIpv6Enabled
@Nullable public Boolean getIpv6Enabled()
Enable IPv6. DEPRECATED: use `public-ip-assignments`.- Returns:
- ipv6Enabled
-
setIpv6Enabled
public void setIpv6Enabled(Boolean ipv6Enabled)
-
diskSize
public CreateInstancePoolRequest diskSize(Long diskSize)
-
getDiskSize
@Nonnull public Long getDiskSize()
Instances disk size in GiB minimum: 10 maximum: 51200- Returns:
- diskSize
-
setDiskSize
public void setDiskSize(Long diskSize)
-
sshKeys
public CreateInstancePoolRequest sshKeys(Set<SshKey> sshKeys)
-
addSshKeysItem
public CreateInstancePoolRequest addSshKeysItem(SshKey sshKeysItem)
-
equals
public boolean equals(Object o)
Return true if this create_instance_pool_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-