public class Instance
extends java.lang.Object
implements java.io.Serializable
Represents an Amazon EC2 instance.
| コンストラクタと説明 |
|---|
Instance() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getAmiLaunchIndex()
The AMI launch index, which can be used to find this instance within
the launch group.
|
java.lang.String |
getArchitecture()
The architecture of this instance.
|
java.util.List<InstanceBlockDeviceMapping> |
getBlockDeviceMappings()
Block device mapping set.
|
java.lang.String |
getClientToken()
Returns the value of the ClientToken property for this object.
|
java.lang.Boolean |
getEbsOptimized()
Returns the value of the EbsOptimized property for this object.
|
java.lang.String |
getHypervisor()
Returns the value of the Hypervisor property for this object.
|
IamInstanceProfile |
getIamInstanceProfile()
Returns the value of the IamInstanceProfile property for this object.
|
java.lang.String |
getImageId()
Image ID of the AMI used to launch the instance.
|
java.lang.String |
getInstanceId()
Unique ID of the instance launched.
|
java.lang.String |
getInstanceLifecycle() |
java.lang.String |
getInstanceType()
The instance type.
|
java.lang.String |
getKernelId()
Kernel associated with this instance.
|
java.lang.String |
getKeyName()
If this instance was launched with an associated key pair, this
displays the key pair name.
|
java.util.Date |
getLaunchTime()
The time this instance launched.
|
InstanceLicense |
getLicense()
Represents an active license in use and attached to an Amazon EC2
instance.
|
Monitoring |
getMonitoring()
Monitoring status for this instance.
|
java.util.List<InstanceNetworkInterface> |
getNetworkInterfaces()
Returns the value of the NetworkInterfaces property for this object.
|
Placement |
getPlacement()
The location where this instance launched.
|
java.lang.String |
getPlatform()
Platform of the instance (e.g., Windows).
|
java.lang.String |
getPrivateDnsName()
The private DNS name assigned to the instance.
|
java.lang.String |
getPrivateIpAddress()
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
java.util.List<ProductCode> |
getProductCodes()
Product codes attached to this instance.
|
java.lang.String |
getPublicDnsName()
The public DNS name assigned to the instance.
|
java.lang.String |
getPublicIpAddress()
Specifies the IP address of the instance.
|
java.lang.String |
getRamdiskId()
RAM disk associated with this instance.
|
java.lang.String |
getRootDeviceName()
The root device name (e.g.,
/dev/sda1). |
java.lang.String |
getRootDeviceType()
The root device type used by the AMI.
|
java.util.List<GroupIdentifier> |
getSecurityGroups()
Returns the value of the SecurityGroups property for this object.
|
java.lang.Boolean |
getSourceDestCheck()
Returns the value of the SourceDestCheck property for this object.
|
java.lang.String |
getSpotInstanceRequestId() |
InstanceState |
getState()
The current state of the instance.
|
StateReason |
getStateReason()
The reason for the state change.
|
java.lang.String |
getStateTransitionReason()
Reason for the most recent state transition.
|
java.lang.String |
getSubnetId()
Specifies the Amazon VPC subnet ID in which the instance is running.
|
java.util.List<Tag> |
getTags()
A list of tags for the Instance.
|
java.lang.String |
getVirtualizationType()
Returns the value of the VirtualizationType property for this object.
|
java.lang.String |
getVpcId()
Specifies the Amazon VPC in which the instance is running.
|
int |
hashCode() |
java.lang.Boolean |
isEbsOptimized()
Returns the value of the EbsOptimized property for this object.
|
java.lang.Boolean |
isSourceDestCheck()
Returns the value of the SourceDestCheck property for this object.
|
void |
setAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance within
the launch group.
|
void |
setArchitecture(java.lang.String architecture)
The architecture of this instance.
|
void |
setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Block device mapping set.
|
void |
setClientToken(java.lang.String clientToken)
Sets the value of the ClientToken property for this object.
|
void |
setEbsOptimized(java.lang.Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.
|
void |
setHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setHypervisor(java.lang.String hypervisor)
Sets the value of the Hypervisor property for this object.
|
void |
setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
void |
setImageId(java.lang.String imageId)
Image ID of the AMI used to launch the instance.
|
void |
setInstanceId(java.lang.String instanceId)
Unique ID of the instance launched.
|
void |
setInstanceLifecycle(java.lang.String instanceLifecycle) |
void |
setInstanceType(InstanceType instanceType)
The instance type.
|
void |
setInstanceType(java.lang.String instanceType)
The instance type.
|
void |
setKernelId(java.lang.String kernelId)
Kernel associated with this instance.
|
void |
setKeyName(java.lang.String keyName)
If this instance was launched with an associated key pair, this
displays the key pair name.
|
void |
setLaunchTime(java.util.Date launchTime)
The time this instance launched.
|
void |
setLicense(InstanceLicense license)
Represents an active license in use and attached to an Amazon EC2
instance.
|
void |
setMonitoring(Monitoring monitoring)
Monitoring status for this instance.
|
void |
setNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
void |
setPlacement(Placement placement)
The location where this instance launched.
|
void |
setPlatform(java.lang.String platform)
Platform of the instance (e.g., Windows).
|
void |
setPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance.
|
void |
setPrivateIpAddress(java.lang.String privateIpAddress)
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
void |
setProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes attached to this instance.
|
void |
setPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance.
|
void |
setPublicIpAddress(java.lang.String publicIpAddress)
Specifies the IP address of the instance.
|
void |
setRamdiskId(java.lang.String ramdiskId)
RAM disk associated with this instance.
|
void |
setRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
void |
setRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
void |
setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
Sets the value of the SecurityGroups property for this object.
|
void |
setSourceDestCheck(java.lang.Boolean sourceDestCheck)
Sets the value of the SourceDestCheck property for this object.
|
void |
setSpotInstanceRequestId(java.lang.String spotInstanceRequestId) |
void |
setState(InstanceState state)
The current state of the instance.
|
void |
setStateReason(StateReason stateReason)
The reason for the state change.
|
void |
setStateTransitionReason(java.lang.String stateTransitionReason)
Reason for the most recent state transition.
|
void |
setSubnetId(java.lang.String subnetId)
Specifies the Amazon VPC subnet ID in which the instance is running.
|
void |
setTags(java.util.Collection<Tag> tags)
A list of tags for the Instance.
|
void |
setVirtualizationType(java.lang.String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
void |
setVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
void |
setVpcId(java.lang.String vpcId)
Specifies the Amazon VPC in which the instance is running.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Instance |
withAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance within
the launch group.
|
Instance |
withArchitecture(java.lang.String architecture)
The architecture of this instance.
|
Instance |
withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Block device mapping set.
|
Instance |
withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Block device mapping set.
|
Instance |
withClientToken(java.lang.String clientToken)
Sets the value of the ClientToken property for this object.
|
Instance |
withEbsOptimized(java.lang.Boolean ebsOptimized)
Sets the value of the EbsOptimized property for this object.
|
Instance |
withHypervisor(HypervisorType hypervisor)
Sets the value of the Hypervisor property for this object.
|
Instance |
withHypervisor(java.lang.String hypervisor)
Sets the value of the Hypervisor property for this object.
|
Instance |
withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
Instance |
withImageId(java.lang.String imageId)
Image ID of the AMI used to launch the instance.
|
Instance |
withInstanceId(java.lang.String instanceId)
Unique ID of the instance launched.
|
Instance |
withInstanceLifecycle(java.lang.String instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
|
Instance |
withInstanceType(InstanceType instanceType)
The instance type.
|
Instance |
withInstanceType(java.lang.String instanceType)
The instance type.
|
Instance |
withKernelId(java.lang.String kernelId)
Kernel associated with this instance.
|
Instance |
withKeyName(java.lang.String keyName)
If this instance was launched with an associated key pair, this
displays the key pair name.
|
Instance |
withLaunchTime(java.util.Date launchTime)
The time this instance launched.
|
Instance |
withLicense(InstanceLicense license)
Represents an active license in use and attached to an Amazon EC2
instance.
|
Instance |
withMonitoring(Monitoring monitoring)
Monitoring status for this instance.
|
Instance |
withNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
Instance |
withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
Sets the value of the NetworkInterfaces property for this object.
|
Instance |
withPlacement(Placement placement)
The location where this instance launched.
|
Instance |
withPlatform(java.lang.String platform)
Platform of the instance (e.g., Windows).
|
Instance |
withPrivateDnsName(java.lang.String privateDnsName)
The private DNS name assigned to the instance.
|
Instance |
withPrivateIpAddress(java.lang.String privateIpAddress)
Specifies the private IP address that is assigned to the instance
(Amazon VPC).
|
Instance |
withProductCodes(java.util.Collection<ProductCode> productCodes)
Product codes attached to this instance.
|
Instance |
withProductCodes(ProductCode... productCodes)
Product codes attached to this instance.
|
Instance |
withPublicDnsName(java.lang.String publicDnsName)
The public DNS name assigned to the instance.
|
Instance |
withPublicIpAddress(java.lang.String publicIpAddress)
Specifies the IP address of the instance.
|
Instance |
withRamdiskId(java.lang.String ramdiskId)
RAM disk associated with this instance.
|
Instance |
withRootDeviceName(java.lang.String rootDeviceName)
The root device name (e.g.,
/dev/sda1). |
Instance |
withRootDeviceType(java.lang.String rootDeviceType)
The root device type used by the AMI.
|
Instance |
withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
Sets the value of the SecurityGroups property for this object.
|
Instance |
withSecurityGroups(GroupIdentifier... securityGroups)
Sets the value of the SecurityGroups property for this object.
|
Instance |
withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Sets the value of the SourceDestCheck property for this object.
|
Instance |
withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
|
Instance |
withState(InstanceState state)
The current state of the instance.
|
Instance |
withStateReason(StateReason stateReason)
The reason for the state change.
|
Instance |
withStateTransitionReason(java.lang.String stateTransitionReason)
Reason for the most recent state transition.
|
Instance |
withSubnetId(java.lang.String subnetId)
Specifies the Amazon VPC subnet ID in which the instance is running.
|
Instance |
withTags(java.util.Collection<Tag> tags)
A list of tags for the Instance.
|
Instance |
withTags(Tag... tags)
A list of tags for the Instance.
|
Instance |
withVirtualizationType(java.lang.String virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
Instance |
withVirtualizationType(VirtualizationType virtualizationType)
Sets the value of the VirtualizationType property for this object.
|
Instance |
withVpcId(java.lang.String vpcId)
Specifies the Amazon VPC in which the instance is running.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId - Unique ID of the instance launched.public Instance withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId - Unique ID of the instance launched.public java.lang.String getImageId()
public void setImageId(java.lang.String imageId)
imageId - Image ID of the AMI used to launch the instance.public Instance withImageId(java.lang.String imageId)
Returns a reference to this object so that method calls can be chained together.
imageId - Image ID of the AMI used to launch the instance.public InstanceState getState()
public void setState(InstanceState state)
state - The current state of the instance.public Instance withState(InstanceState state)
Returns a reference to this object so that method calls can be chained together.
state - The current state of the instance.public java.lang.String getPrivateDnsName()
public void setPrivateDnsName(java.lang.String privateDnsName)
privateDnsName - The private DNS name assigned to the instance. This DNS name can only
be used inside the Amazon EC2 network. This element remains empty
until the instance enters a running state.public Instance withPrivateDnsName(java.lang.String privateDnsName)
Returns a reference to this object so that method calls can be chained together.
privateDnsName - The private DNS name assigned to the instance. This DNS name can only
be used inside the Amazon EC2 network. This element remains empty
until the instance enters a running state.public java.lang.String getPublicDnsName()
public void setPublicDnsName(java.lang.String publicDnsName)
publicDnsName - The public DNS name assigned to the instance. This DNS name is
contactable from outside the Amazon EC2 network. This element remains
empty until the instance enters a running state.public Instance withPublicDnsName(java.lang.String publicDnsName)
Returns a reference to this object so that method calls can be chained together.
publicDnsName - The public DNS name assigned to the instance. This DNS name is
contactable from outside the Amazon EC2 network. This element remains
empty until the instance enters a running state.public java.lang.String getStateTransitionReason()
public void setStateTransitionReason(java.lang.String stateTransitionReason)
stateTransitionReason - Reason for the most recent state transition. This might be an empty
string.public Instance withStateTransitionReason(java.lang.String stateTransitionReason)
Returns a reference to this object so that method calls can be chained together.
stateTransitionReason - Reason for the most recent state transition. This might be an empty
string.public java.lang.String getKeyName()
public void setKeyName(java.lang.String keyName)
keyName - If this instance was launched with an associated key pair, this
displays the key pair name.public Instance withKeyName(java.lang.String keyName)
Returns a reference to this object so that method calls can be chained together.
keyName - If this instance was launched with an associated key pair, this
displays the key pair name.public java.lang.Integer getAmiLaunchIndex()
public void setAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
amiLaunchIndex - The AMI launch index, which can be used to find this instance within
the launch group.public Instance withAmiLaunchIndex(java.lang.Integer amiLaunchIndex)
Returns a reference to this object so that method calls can be chained together.
amiLaunchIndex - The AMI launch index, which can be used to find this instance within
the launch group.public java.util.List<ProductCode> getProductCodes()
public void setProductCodes(java.util.Collection<ProductCode> productCodes)
productCodes - Product codes attached to this instance.public Instance withProductCodes(ProductCode... productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes - Product codes attached to this instance.public Instance withProductCodes(java.util.Collection<ProductCode> productCodes)
Returns a reference to this object so that method calls can be chained together.
productCodes - Product codes attached to this instance.public java.lang.String getInstanceType()
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
InstanceTypepublic void setInstanceType(java.lang.String instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType - The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceTypepublic Instance withInstanceType(java.lang.String instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType - The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceTypepublic void setInstanceType(InstanceType instanceType)
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType - The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceTypepublic Instance withInstanceType(InstanceType instanceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: t1.micro, m1.small, m1.medium, m1.large, m1.xlarge, m2.xlarge, m2.2xlarge, m2.4xlarge, m3.xlarge, m3.2xlarge, c1.medium, c1.xlarge, hi1.4xlarge, hs1.8xlarge, cc1.4xlarge, cc2.8xlarge, cg1.4xlarge, cr1.8xlarge
instanceType - The instance type. For more information on instance types, please see
the
Amazon Elastic Compute Cloud Developer Guide.InstanceTypepublic java.util.Date getLaunchTime()
public void setLaunchTime(java.util.Date launchTime)
launchTime - The time this instance launched.public Instance withLaunchTime(java.util.Date launchTime)
Returns a reference to this object so that method calls can be chained together.
launchTime - The time this instance launched.public Placement getPlacement()
public void setPlacement(Placement placement)
placement - The location where this instance launched.public Instance withPlacement(Placement placement)
Returns a reference to this object so that method calls can be chained together.
placement - The location where this instance launched.public java.lang.String getKernelId()
public void setKernelId(java.lang.String kernelId)
kernelId - Kernel associated with this instance.public Instance withKernelId(java.lang.String kernelId)
Returns a reference to this object so that method calls can be chained together.
kernelId - Kernel associated with this instance.public java.lang.String getRamdiskId()
public void setRamdiskId(java.lang.String ramdiskId)
ramdiskId - RAM disk associated with this instance.public Instance withRamdiskId(java.lang.String ramdiskId)
Returns a reference to this object so that method calls can be chained together.
ramdiskId - RAM disk associated with this instance.public java.lang.String getPlatform()
public void setPlatform(java.lang.String platform)
platform - Platform of the instance (e.g., Windows).public Instance withPlatform(java.lang.String platform)
Returns a reference to this object so that method calls can be chained together.
platform - Platform of the instance (e.g., Windows).public Monitoring getMonitoring()
public void setMonitoring(Monitoring monitoring)
monitoring - Monitoring status for this instance.public Instance withMonitoring(Monitoring monitoring)
Returns a reference to this object so that method calls can be chained together.
monitoring - Monitoring status for this instance.public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String subnetId)
subnetId - Specifies the Amazon VPC subnet ID in which the instance is running.public Instance withSubnetId(java.lang.String subnetId)
Returns a reference to this object so that method calls can be chained together.
subnetId - Specifies the Amazon VPC subnet ID in which the instance is running.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - Specifies the Amazon VPC in which the instance is running.public Instance withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - Specifies the Amazon VPC in which the instance is running.public java.lang.String getPrivateIpAddress()
public void setPrivateIpAddress(java.lang.String privateIpAddress)
privateIpAddress - Specifies the private IP address that is assigned to the instance
(Amazon VPC).public Instance withPrivateIpAddress(java.lang.String privateIpAddress)
Returns a reference to this object so that method calls can be chained together.
privateIpAddress - Specifies the private IP address that is assigned to the instance
(Amazon VPC).public java.lang.String getPublicIpAddress()
public void setPublicIpAddress(java.lang.String publicIpAddress)
publicIpAddress - Specifies the IP address of the instance.public Instance withPublicIpAddress(java.lang.String publicIpAddress)
Returns a reference to this object so that method calls can be chained together.
publicIpAddress - Specifies the IP address of the instance.public StateReason getStateReason()
public void setStateReason(StateReason stateReason)
stateReason - The reason for the state change.public Instance withStateReason(StateReason stateReason)
Returns a reference to this object so that method calls can be chained together.
stateReason - The reason for the state change.public java.lang.String getArchitecture()
public void setArchitecture(java.lang.String architecture)
architecture - The architecture of this instance.public Instance withArchitecture(java.lang.String architecture)
Returns a reference to this object so that method calls can be chained together.
architecture - The architecture of this instance.public java.lang.String getRootDeviceType()
public void setRootDeviceType(java.lang.String rootDeviceType)
rootDeviceType - The root device type used by the AMI. The AMI can use an Amazon EBS or
instance store root device.public Instance withRootDeviceType(java.lang.String rootDeviceType)
Returns a reference to this object so that method calls can be chained together.
rootDeviceType - The root device type used by the AMI. The AMI can use an Amazon EBS or
instance store root device.public java.lang.String getRootDeviceName()
/dev/sda1)./dev/sda1).public void setRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1).rootDeviceName - The root device name (e.g., /dev/sda1).public Instance withRootDeviceName(java.lang.String rootDeviceName)
/dev/sda1).
Returns a reference to this object so that method calls can be chained together.
rootDeviceName - The root device name (e.g., /dev/sda1).public java.util.List<InstanceBlockDeviceMapping> getBlockDeviceMappings()
public void setBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
blockDeviceMappings - Block device mapping set.public Instance withBlockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - Block device mapping set.public Instance withBlockDeviceMappings(java.util.Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Returns a reference to this object so that method calls can be chained together.
blockDeviceMappings - Block device mapping set.public java.lang.String getVirtualizationType()
Constraints:
Allowed Values: hvm, paravirtual
VirtualizationTypepublic void setVirtualizationType(java.lang.String virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic Instance withVirtualizationType(java.lang.String virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic void setVirtualizationType(VirtualizationType virtualizationType)
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic Instance withVirtualizationType(VirtualizationType virtualizationType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: hvm, paravirtual
virtualizationType - The new value for the VirtualizationType property for this object.VirtualizationTypepublic java.lang.String getInstanceLifecycle()
public void setInstanceLifecycle(java.lang.String instanceLifecycle)
instanceLifecycle - public Instance withInstanceLifecycle(java.lang.String instanceLifecycle)
Returns a reference to this object so that method calls can be chained together.
instanceLifecycle - public java.lang.String getSpotInstanceRequestId()
public void setSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
spotInstanceRequestId - public Instance withSpotInstanceRequestId(java.lang.String spotInstanceRequestId)
Returns a reference to this object so that method calls can be chained together.
spotInstanceRequestId - public InstanceLicense getLicense()
public void setLicense(InstanceLicense license)
license - Represents an active license in use and attached to an Amazon EC2
instance.public Instance withLicense(InstanceLicense license)
Returns a reference to this object so that method calls can be chained together.
license - Represents an active license in use and attached to an Amazon EC2
instance.public java.lang.String getClientToken()
public void setClientToken(java.lang.String clientToken)
clientToken - The new value for the ClientToken property for this object.public Instance withClientToken(java.lang.String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken - The new value for the ClientToken property for this object.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags - A list of tags for the Instance.public Instance withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Instance.public Instance withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - A list of tags for the Instance.public java.util.List<GroupIdentifier> getSecurityGroups()
public void setSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
securityGroups - The new value for the SecurityGroups property for this object.public Instance withSecurityGroups(GroupIdentifier... securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups - The new value for the SecurityGroups property for this object.public Instance withSecurityGroups(java.util.Collection<GroupIdentifier> securityGroups)
Returns a reference to this object so that method calls can be chained together.
securityGroups - The new value for the SecurityGroups property for this object.public java.lang.Boolean isSourceDestCheck()
public void setSourceDestCheck(java.lang.Boolean sourceDestCheck)
sourceDestCheck - The new value for the SourceDestCheck property for this object.public Instance withSourceDestCheck(java.lang.Boolean sourceDestCheck)
Returns a reference to this object so that method calls can be chained together.
sourceDestCheck - The new value for the SourceDestCheck property for this object.public java.lang.Boolean getSourceDestCheck()
public java.lang.String getHypervisor()
Constraints:
Allowed Values: ovm, xen
HypervisorTypepublic void setHypervisor(java.lang.String hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic Instance withHypervisor(java.lang.String hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic void setHypervisor(HypervisorType hypervisor)
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic Instance withHypervisor(HypervisorType hypervisor)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ovm, xen
hypervisor - The new value for the Hypervisor property for this object.HypervisorTypepublic java.util.List<InstanceNetworkInterface> getNetworkInterfaces()
public void setNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
networkInterfaces - The new value for the NetworkInterfaces property for this object.public Instance withNetworkInterfaces(InstanceNetworkInterface... networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces - The new value for the NetworkInterfaces property for this object.public Instance withNetworkInterfaces(java.util.Collection<InstanceNetworkInterface> networkInterfaces)
Returns a reference to this object so that method calls can be chained together.
networkInterfaces - The new value for the NetworkInterfaces property for this object.public IamInstanceProfile getIamInstanceProfile()
public void setIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
iamInstanceProfile - The new value for the IamInstanceProfile property for this object.public Instance withIamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Returns a reference to this object so that method calls can be chained together.
iamInstanceProfile - The new value for the IamInstanceProfile property for this object.public java.lang.Boolean isEbsOptimized()
public void setEbsOptimized(java.lang.Boolean ebsOptimized)
ebsOptimized - The new value for the EbsOptimized property for this object.public Instance withEbsOptimized(java.lang.Boolean ebsOptimized)
Returns a reference to this object so that method calls can be chained together.
ebsOptimized - The new value for the EbsOptimized property for this object.public java.lang.Boolean getEbsOptimized()
public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object