CopyableBuilder<Instance.Builder,Instance>
, SdkBuilder<Instance.Builder,Instance>
public static interface Instance.Builder extends CopyableBuilder<Instance.Builder,Instance>
Modifier and Type | Method | Description |
---|---|---|
Instance.Builder |
amiLaunchIndex(Integer amiLaunchIndex) |
The AMI launch index, which can be used to find this instance in the launch group.
|
Instance.Builder |
architecture(String architecture) |
The architecture of the image.
|
Instance.Builder |
architecture(ArchitectureValues architecture) |
The architecture of the image.
|
Instance.Builder |
blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings) |
Any block device mapping entries for the instance.
|
Instance.Builder |
blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings) |
Any block device mapping entries for the instance.
|
Instance.Builder |
clientToken(String clientToken) |
The idempotency token you provided when you launched the instance, if applicable.
|
Instance.Builder |
ebsOptimized(Boolean ebsOptimized) |
Indicates whether the instance is optimized for EBS I/O.
|
Instance.Builder |
enaSupport(Boolean enaSupport) |
Specifies whether enhanced networking with ENA is enabled.
|
Instance.Builder |
hypervisor(String hypervisor) |
The hypervisor type of the instance.
|
Instance.Builder |
hypervisor(HypervisorType hypervisor) |
The hypervisor type of the instance.
|
Instance.Builder |
iamInstanceProfile(IamInstanceProfile iamInstanceProfile) |
The IAM instance profile associated with the instance, if applicable.
|
Instance.Builder |
imageId(String imageId) |
The ID of the AMI used to launch the instance.
|
Instance.Builder |
instanceId(String instanceId) |
The ID of the instance.
|
Instance.Builder |
instanceLifecycle(String instanceLifecycle) |
Indicates whether this is a Spot instance or a Scheduled Instance.
|
Instance.Builder |
instanceLifecycle(InstanceLifecycleType instanceLifecycle) |
Indicates whether this is a Spot instance or a Scheduled Instance.
|
Instance.Builder |
instanceType(String instanceType) |
The instance type.
|
Instance.Builder |
instanceType(InstanceType instanceType) |
The instance type.
|
Instance.Builder |
kernelId(String kernelId) |
The kernel associated with this instance, if applicable.
|
Instance.Builder |
keyName(String keyName) |
The name of the key pair, if this instance was launched with an associated key pair.
|
Instance.Builder |
launchTime(Date launchTime) |
The time the instance was launched.
|
Instance.Builder |
monitoring(Monitoring monitoring) |
The monitoring for the instance.
|
Instance.Builder |
networkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces) |
[EC2-VPC] One or more network interfaces for the instance.
|
Instance.Builder |
networkInterfaces(InstanceNetworkInterface... networkInterfaces) |
[EC2-VPC] One or more network interfaces for the instance.
|
Instance.Builder |
placement(Placement placement) |
The location where the instance launched, if applicable.
|
Instance.Builder |
platform(String platform) |
The value is
Windows for Windows instances; otherwise blank. |
Instance.Builder |
platform(PlatformValues platform) |
The value is
Windows for Windows instances; otherwise blank. |
Instance.Builder |
privateDnsName(String privateDnsName) |
(IPv4 only) The private DNS hostname name assigned to the instance.
|
Instance.Builder |
privateIpAddress(String privateIpAddress) |
The private IPv4 address assigned to the instance.
|
Instance.Builder |
productCodes(Collection<ProductCode> productCodes) |
The product codes attached to this instance, if applicable.
|
Instance.Builder |
productCodes(ProductCode... productCodes) |
The product codes attached to this instance, if applicable.
|
Instance.Builder |
publicDnsName(String publicDnsName) |
(IPv4 only) The public DNS name assigned to the instance.
|
Instance.Builder |
publicIpAddress(String publicIpAddress) |
The public IPv4 address assigned to the instance, if applicable.
|
Instance.Builder |
ramdiskId(String ramdiskId) |
The RAM disk associated with this instance, if applicable.
|
Instance.Builder |
rootDeviceName(String rootDeviceName) |
The root device name (for example,
/dev/sda1 or /dev/xvda ). |
Instance.Builder |
rootDeviceType(String rootDeviceType) |
The root device type used by the AMI.
|
Instance.Builder |
rootDeviceType(DeviceType rootDeviceType) |
The root device type used by the AMI.
|
Instance.Builder |
securityGroups(Collection<GroupIdentifier> securityGroups) |
One or more security groups for the instance.
|
Instance.Builder |
securityGroups(GroupIdentifier... securityGroups) |
One or more security groups for the instance.
|
Instance.Builder |
sourceDestCheck(Boolean sourceDestCheck) |
Specifies whether to enable an instance launched in a VPC to perform NAT.
|
Instance.Builder |
spotInstanceRequestId(String spotInstanceRequestId) |
If the request is a Spot instance request, the ID of the request.
|
Instance.Builder |
sriovNetSupport(String sriovNetSupport) |
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
|
Instance.Builder |
state(InstanceState state) |
The current state of the instance.
|
Instance.Builder |
stateReason(StateReason stateReason) |
The reason for the most recent state transition.
|
Instance.Builder |
stateTransitionReason(String stateTransitionReason) |
The reason for the most recent state transition.
|
Instance.Builder |
subnetId(String subnetId) |
[EC2-VPC] The ID of the subnet in which the instance is running.
|
Instance.Builder |
tags(Collection<Tag> tags) |
Any tags assigned to the instance.
|
Instance.Builder |
tags(Tag... tags) |
Any tags assigned to the instance.
|
Instance.Builder |
virtualizationType(String virtualizationType) |
The virtualization type of the instance.
|
Instance.Builder |
virtualizationType(VirtualizationType virtualizationType) |
The virtualization type of the instance.
|
Instance.Builder |
vpcId(String vpcId) |
[EC2-VPC] The ID of the VPC in which the instance is running.
|
copy
apply, build
Instance.Builder amiLaunchIndex(Integer amiLaunchIndex)
The AMI launch index, which can be used to find this instance in the launch group.
amiLaunchIndex
- The AMI launch index, which can be used to find this instance in the launch group.Instance.Builder imageId(String imageId)
The ID of the AMI used to launch the instance.
imageId
- The ID of the AMI used to launch the instance.Instance.Builder instanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.Instance.Builder instanceType(String instanceType)
The instance type.
instanceType
- The instance type.InstanceType
Instance.Builder instanceType(InstanceType instanceType)
The instance type.
instanceType
- The instance type.InstanceType
Instance.Builder kernelId(String kernelId)
The kernel associated with this instance, if applicable.
kernelId
- The kernel associated with this instance, if applicable.Instance.Builder keyName(String keyName)
The name of the key pair, if this instance was launched with an associated key pair.
keyName
- The name of the key pair, if this instance was launched with an associated key pair.Instance.Builder launchTime(Date launchTime)
The time the instance was launched.
launchTime
- The time the instance was launched.Instance.Builder monitoring(Monitoring monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.Instance.Builder placement(Placement placement)
The location where the instance launched, if applicable.
placement
- The location where the instance launched, if applicable.Instance.Builder platform(String platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
Instance.Builder platform(PlatformValues platform)
The value is Windows
for Windows instances; otherwise blank.
platform
- The value is Windows
for Windows instances; otherwise blank.PlatformValues
Instance.Builder privateDnsName(String privateDnsName)
(IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside
the Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
privateDnsName
- (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used
inside the Amazon EC2 network. This name is not available until the instance enters the
running
state.
[EC2-VPC] The Amazon-provided DNS server will resolve Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
Instance.Builder privateIpAddress(String privateIpAddress)
The private IPv4 address assigned to the instance.
privateIpAddress
- The private IPv4 address assigned to the instance.Instance.Builder productCodes(Collection<ProductCode> productCodes)
The product codes attached to this instance, if applicable.
productCodes
- The product codes attached to this instance, if applicable.Instance.Builder productCodes(ProductCode... productCodes)
The product codes attached to this instance, if applicable.
NOTE: This method appends the values to the existing list (if any). Use
#setProductCodes(java.util.Collection)
or #withProductCodes(java.util.Collection)
if you want
to override the existing values.
productCodes
- The product codes attached to this instance, if applicable.Instance.Builder publicDnsName(String publicDnsName)
(IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance
enters the running
state. For EC2-VPC, this name is only available if you've enabled DNS
hostnames for your VPC.
publicDnsName
- (IPv4 only) The public DNS name assigned to the instance. This name is not available until the
instance enters the running
state. For EC2-VPC, this name is only available if you've
enabled DNS hostnames for your VPC.Instance.Builder publicIpAddress(String publicIpAddress)
The public IPv4 address assigned to the instance, if applicable.
publicIpAddress
- The public IPv4 address assigned to the instance, if applicable.Instance.Builder ramdiskId(String ramdiskId)
The RAM disk associated with this instance, if applicable.
ramdiskId
- The RAM disk associated with this instance, if applicable.Instance.Builder state(InstanceState state)
The current state of the instance.
state
- The current state of the instance.Instance.Builder stateTransitionReason(String stateTransitionReason)
The reason for the most recent state transition. This might be an empty string.
stateTransitionReason
- The reason for the most recent state transition. This might be an empty string.Instance.Builder subnetId(String subnetId)
[EC2-VPC] The ID of the subnet in which the instance is running.
subnetId
- [EC2-VPC] The ID of the subnet in which the instance is running.Instance.Builder vpcId(String vpcId)
[EC2-VPC] The ID of the VPC in which the instance is running.
vpcId
- [EC2-VPC] The ID of the VPC in which the instance is running.Instance.Builder architecture(String architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
Instance.Builder architecture(ArchitectureValues architecture)
The architecture of the image.
architecture
- The architecture of the image.ArchitectureValues
Instance.Builder blockDeviceMappings(Collection<InstanceBlockDeviceMapping> blockDeviceMappings)
Any block device mapping entries for the instance.
blockDeviceMappings
- Any block device mapping entries for the instance.Instance.Builder blockDeviceMappings(InstanceBlockDeviceMapping... blockDeviceMappings)
Any block device mapping entries for the instance.
NOTE: This method appends the values to the existing list (if any). Use
#setBlockDeviceMappings(java.util.Collection)
or
#withBlockDeviceMappings(java.util.Collection)
if you want to override the existing values.
blockDeviceMappings
- Any block device mapping entries for the instance.Instance.Builder clientToken(String clientToken)
The idempotency token you provided when you launched the instance, if applicable.
clientToken
- The idempotency token you provided when you launched the instance, if applicable.Instance.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS Optimized instance.
ebsOptimized
- Indicates whether the instance is optimized for EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal I/O performance. This
optimization isn't available with all instance types. Additional usage charges apply when using an EBS
Optimized instance.Instance.Builder enaSupport(Boolean enaSupport)
Specifies whether enhanced networking with ENA is enabled.
enaSupport
- Specifies whether enhanced networking with ENA is enabled.Instance.Builder hypervisor(String hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
Instance.Builder hypervisor(HypervisorType hypervisor)
The hypervisor type of the instance.
hypervisor
- The hypervisor type of the instance.HypervisorType
Instance.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
The IAM instance profile associated with the instance, if applicable.
iamInstanceProfile
- The IAM instance profile associated with the instance, if applicable.Instance.Builder instanceLifecycle(String instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
Instance.Builder instanceLifecycle(InstanceLifecycleType instanceLifecycle)
Indicates whether this is a Spot instance or a Scheduled Instance.
instanceLifecycle
- Indicates whether this is a Spot instance or a Scheduled Instance.InstanceLifecycleType
Instance.Builder networkInterfaces(Collection<InstanceNetworkInterface> networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.Instance.Builder networkInterfaces(InstanceNetworkInterface... networkInterfaces)
[EC2-VPC] One or more network interfaces for the instance.
NOTE: This method appends the values to the existing list (if any). Use
#setNetworkInterfaces(java.util.Collection)
or #withNetworkInterfaces(java.util.Collection)
if you want to override the existing values.
networkInterfaces
- [EC2-VPC] One or more network interfaces for the instance.Instance.Builder rootDeviceName(String rootDeviceName)
The root device name (for example, /dev/sda1
or /dev/xvda
).
rootDeviceName
- The root device name (for example, /dev/sda1
or /dev/xvda
).Instance.Builder rootDeviceType(String rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
Instance.Builder rootDeviceType(DeviceType rootDeviceType)
The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
rootDeviceType
- The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.DeviceType
Instance.Builder securityGroups(Collection<GroupIdentifier> securityGroups)
One or more security groups for the instance.
securityGroups
- One or more security groups for the instance.Instance.Builder securityGroups(GroupIdentifier... securityGroups)
One or more security groups for the instance.
NOTE: This method appends the values to the existing list (if any). Use
#setSecurityGroups(java.util.Collection)
or #withSecurityGroups(java.util.Collection)
if you
want to override the existing values.
securityGroups
- One or more security groups for the instance.Instance.Builder sourceDestCheck(Boolean sourceDestCheck)
Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
source/destination checking is enabled on the instance. A value of true
means checking is
enabled, and false
means checking is disabled. The value must be false
for the
instance to perform NAT. For more information, see NAT Instances in the
Amazon Virtual Private Cloud User Guide.
sourceDestCheck
- Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
source/destination checking is enabled on the instance. A value of true
means checking is
enabled, and false
means checking is disabled. The value must be false
for
the instance to perform NAT. For more information, see NAT Instances
in the Amazon Virtual Private Cloud User Guide.Instance.Builder spotInstanceRequestId(String spotInstanceRequestId)
If the request is a Spot instance request, the ID of the request.
spotInstanceRequestId
- If the request is a Spot instance request, the ID of the request.Instance.Builder sriovNetSupport(String sriovNetSupport)
Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
sriovNetSupport
- Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.Instance.Builder stateReason(StateReason stateReason)
The reason for the most recent state transition.
stateReason
- The reason for the most recent state transition.Instance.Builder tags(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.Instance.Builder tags(Tag... tags)
Any tags assigned to the instance.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection)
or #withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the instance.Instance.Builder virtualizationType(String virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
Instance.Builder virtualizationType(VirtualizationType virtualizationType)
The virtualization type of the instance.
virtualizationType
- The virtualization type of the instance.VirtualizationType
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.