Package com.exoscale.sdk.model
Class Instance
- java.lang.Object
-
- com.exoscale.sdk.model.Instance
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class Instance extends Object
Instance
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_ANTI_AFFINITY_GROUPS
static String
JSON_PROPERTY_CREATED_AT
static String
JSON_PROPERTY_DEPLOY_TARGET
static String
JSON_PROPERTY_DISK_SIZE
static String
JSON_PROPERTY_ELASTIC_IPS
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_INSTANCE_TYPE
static String
JSON_PROPERTY_IPV6_ADDRESS
static String
JSON_PROPERTY_LABELS
static String
JSON_PROPERTY_MAC_ADDRESS
static String
JSON_PROPERTY_MANAGER
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_PRIVATE_NETWORKS
static String
JSON_PROPERTY_PUBLIC_IP
static String
JSON_PROPERTY_PUBLIC_IP_ASSIGNMENT
static String
JSON_PROPERTY_SECURITY_GROUPS
static String
JSON_PROPERTY_SNAPSHOTS
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
-
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_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_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_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_MAC_ADDRESS
public static final String JSON_PROPERTY_MAC_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MANAGER
public static final String JSON_PROPERTY_MANAGER
- 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_ADDRESS
public static final String JSON_PROPERTY_IPV6_ADDRESS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SNAPSHOTS
public static final String JSON_PROPERTY_SNAPSHOTS
- 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
-
JSON_PROPERTY_CREATED_AT
public static final String JSON_PROPERTY_CREATED_AT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PUBLIC_IP
public static final String JSON_PROPERTY_PUBLIC_IP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Instance
public Instance()
-
Instance
public Instance(String macAddress, String ipv6Address, UUID id, OffsetDateTime createdAt, String publicIp)
-
-
Method Detail
-
antiAffinityGroups
public Instance antiAffinityGroups(List<AntiAffinityGroup> antiAffinityGroups)
-
addAntiAffinityGroupsItem
public Instance addAntiAffinityGroupsItem(AntiAffinityGroup antiAffinityGroupsItem)
-
getAntiAffinityGroups
@Nullable public List<AntiAffinityGroup> getAntiAffinityGroups()
Instance Anti-affinity Groups- Returns:
- antiAffinityGroups
-
setAntiAffinityGroups
public void setAntiAffinityGroups(List<AntiAffinityGroup> antiAffinityGroups)
-
publicIpAssignment
public Instance publicIpAssignment(PublicIpAssignment publicIpAssignment)
-
getPublicIpAssignment
@Nullable public PublicIpAssignment getPublicIpAssignment()
Get publicIpAssignment- Returns:
- publicIpAssignment
-
setPublicIpAssignment
public void setPublicIpAssignment(PublicIpAssignment publicIpAssignment)
-
securityGroups
public Instance securityGroups(List<SecurityGroup> securityGroups)
-
addSecurityGroupsItem
public Instance addSecurityGroupsItem(SecurityGroup securityGroupsItem)
-
getSecurityGroups
@Nullable public List<SecurityGroup> getSecurityGroups()
Instance Security Groups- Returns:
- securityGroups
-
setSecurityGroups
public void setSecurityGroups(List<SecurityGroup> securityGroups)
-
getElasticIps
@Nullable public List<ElasticIp> getElasticIps()
Instance Elastic IPs- Returns:
- elasticIps
-
getName
@Nullable public String getName()
Instance name- Returns:
- name
-
setName
public void setName(String name)
-
instanceType
public Instance instanceType(InstanceType instanceType)
-
getInstanceType
@Nullable public InstanceType getInstanceType()
Get instanceType- Returns:
- instanceType
-
setInstanceType
public void setInstanceType(InstanceType instanceType)
-
privateNetworks
public Instance privateNetworks(List<ListInstances200ResponseInstancesInnerPrivateNetworksInner> privateNetworks)
-
addPrivateNetworksItem
public Instance addPrivateNetworksItem(ListInstances200ResponseInstancesInnerPrivateNetworksInner privateNetworksItem)
-
getPrivateNetworks
@Nullable public List<ListInstances200ResponseInstancesInnerPrivateNetworksInner> getPrivateNetworks()
Instance Private Networks- Returns:
- privateNetworks
-
setPrivateNetworks
public void setPrivateNetworks(List<ListInstances200ResponseInstancesInnerPrivateNetworksInner> privateNetworks)
-
getTemplate
@Nullable public Template getTemplate()
Get template- Returns:
- template
-
setTemplate
public void setTemplate(Template template)
-
state
public Instance state(InstanceState state)
-
getState
@Nullable public InstanceState getState()
Get state- Returns:
- state
-
setState
public void setState(InstanceState state)
-
getSshKey
@Nullable public SshKey getSshKey()
Get sshKey- Returns:
- sshKey
-
setSshKey
public void setSshKey(SshKey sshKey)
-
getUserData
@Nullable public String getUserData()
Instance Cloud-init user-data (base64 encoded)- Returns:
- userData
-
setUserData
public void setUserData(String userData)
-
getMacAddress
@Nullable public String getMacAddress()
Instance MAC address- Returns:
- macAddress
-
getManager
@Nullable public Manager getManager()
Get manager- Returns:
- manager
-
setManager
public void setManager(Manager manager)
-
deployTarget
public Instance deployTarget(DeployTarget deployTarget)
-
getDeployTarget
@Nullable public DeployTarget getDeployTarget()
Get deployTarget- Returns:
- deployTarget
-
setDeployTarget
public void setDeployTarget(DeployTarget deployTarget)
-
getIpv6Address
@Nullable public String getIpv6Address()
Instance IPv6 address- Returns:
- ipv6Address
-
getId
@Nullable public UUID getId()
Instance ID- Returns:
- id
-
getDiskSize
@Nullable public Long getDiskSize()
Instance disk size in GiB minimum: 10 maximum: 51200- Returns:
- diskSize
-
setDiskSize
public void setDiskSize(Long diskSize)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Instance creation date- Returns:
- createdAt
-
getPublicIp
@Nullable public String getPublicIp()
Instance public IPv4 address- Returns:
- publicIp
-
equals
public boolean equals(Object o)
Return true if this instance object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-