Package com.exoscale.sdk.model
Class CreateInstanceRequest
- java.lang.Object
-
- com.exoscale.sdk.model.CreateInstanceRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class CreateInstanceRequest extends Object
CreateInstanceRequest
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_ANTI_AFFINITY_GROUPS
static String
JSON_PROPERTY_AUTO_START
static String
JSON_PROPERTY_DEPLOY_TARGET
static String
JSON_PROPERTY_DISK_SIZE
static String
JSON_PROPERTY_INSTANCE_TYPE
static String
JSON_PROPERTY_IPV6_ENABLED
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PUBLIC_IP_ASSIGNMENT
static String
JSON_PROPERTY_SECURITY_GROUPS
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 CreateInstanceRequest()
-
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_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_AUTO_START
public static final String JSON_PROPERTY_AUTO_START
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECURITY_GROUPS
public static final String JSON_PROPERTY_SECURITY_GROUPS
- 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_TEMPLATE
public static final String JSON_PROPERTY_TEMPLATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SSH_KEY
public static final String JSON_PROPERTY_SSH_KEY
- 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 CreateInstanceRequest antiAffinityGroups(Set<AntiAffinityGroup> antiAffinityGroups)
-
addAntiAffinityGroupsItem
public CreateInstanceRequest addAntiAffinityGroupsItem(AntiAffinityGroup antiAffinityGroupsItem)
-
getAntiAffinityGroups
@Nullable public Set<AntiAffinityGroup> getAntiAffinityGroups()
Instance Anti-affinity Groups- Returns:
- antiAffinityGroups
-
setAntiAffinityGroups
public void setAntiAffinityGroups(Set<AntiAffinityGroup> antiAffinityGroups)
-
publicIpAssignment
public CreateInstanceRequest publicIpAssignment(PublicIpAssignment publicIpAssignment)
-
getPublicIpAssignment
@Nullable public PublicIpAssignment getPublicIpAssignment()
Get publicIpAssignment- Returns:
- publicIpAssignment
-
setPublicIpAssignment
public void setPublicIpAssignment(PublicIpAssignment publicIpAssignment)
-
labels
public CreateInstanceRequest labels(Map<String,String> labels)
-
putLabelsItem
public CreateInstanceRequest putLabelsItem(String key, String labelsItem)
-
autoStart
public CreateInstanceRequest autoStart(Boolean autoStart)
-
getAutoStart
@Nullable public Boolean getAutoStart()
Start Instance on creation (default: true)- Returns:
- autoStart
-
setAutoStart
public void setAutoStart(Boolean autoStart)
-
securityGroups
public CreateInstanceRequest securityGroups(Set<SecurityGroup> securityGroups)
-
addSecurityGroupsItem
public CreateInstanceRequest addSecurityGroupsItem(SecurityGroup securityGroupsItem)
-
getSecurityGroups
@Nullable public Set<SecurityGroup> getSecurityGroups()
Instance Security Groups- Returns:
- securityGroups
-
setSecurityGroups
public void setSecurityGroups(Set<SecurityGroup> securityGroups)
-
name
public CreateInstanceRequest name(String name)
-
getName
@Nullable public String getName()
Instance name- Returns:
- name
-
setName
public void setName(String name)
-
instanceType
public CreateInstanceRequest instanceType(InstanceType instanceType)
-
getInstanceType
@Nonnull public InstanceType getInstanceType()
Get instanceType- Returns:
- instanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
-
template
public CreateInstanceRequest template(Template template)
-
getTemplate
@Nonnull public Template getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(Template template)
-
sshKey
public CreateInstanceRequest sshKey(SshKey sshKey)
-
getSshKey
@Nullable public SshKey getSshKey()
Get sshKey- Returns:
- sshKey
-
setSshKey
public void setSshKey(SshKey sshKey)
-
userData
public CreateInstanceRequest userData(String userData)
-
getUserData
@Nullable public String getUserData()
Instance Cloud-init user-data (base64 encoded)- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
deployTarget
public CreateInstanceRequest deployTarget(DeployTarget deployTarget)
-
getDeployTarget
@Nullable public DeployTarget getDeployTarget()
Get deployTarget- Returns:
- deployTarget
-
setDeployTarget
public void setDeployTarget(DeployTarget deployTarget)
-
ipv6Enabled
public CreateInstanceRequest 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 CreateInstanceRequest diskSize(Long diskSize)
-
getDiskSize
@Nonnull public Long getDiskSize()
Instance disk size in GiB minimum: 10 maximum: 51200- Returns:
- diskSize
-
setDiskSize
public void setDiskSize(Long diskSize)
-
sshKeys
public CreateInstanceRequest sshKeys(Set<SshKey> sshKeys)
-
addSshKeysItem
public CreateInstanceRequest addSshKeysItem(SshKey sshKeysItem)
-
equals
public boolean equals(Object o)
Return true if this create_instance_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-