public static interface RunInstancesRequest.Builder extends Ec2Request.Builder, CopyableBuilder<RunInstancesRequest.Builder,RunInstancesRequest>
Modifier and Type | Method and Description |
---|---|
RunInstancesRequest.Builder |
additionalInfo(String additionalInfo)
Reserved.
|
RunInstancesRequest.Builder |
blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries.
|
RunInstancesRequest.Builder |
blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries.
|
RunInstancesRequest.Builder |
blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
One or more block device mapping entries.
|
RunInstancesRequest.Builder |
clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request.
|
RunInstancesRequest.Builder |
disableApiTermination(Boolean disableApiTermination)
If you set this parameter to
true , you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. |
RunInstancesRequest.Builder |
ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O.
|
RunInstancesRequest.Builder |
elasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An Elastic GPU to associate with the instance.
|
RunInstancesRequest.Builder |
elasticGpuSpecification(Consumer<ElasticGpuSpecification.Builder>... elasticGpuSpecification)
An Elastic GPU to associate with the instance.
|
RunInstancesRequest.Builder |
elasticGpuSpecification(ElasticGpuSpecification... elasticGpuSpecification)
An Elastic GPU to associate with the instance.
|
default RunInstancesRequest.Builder |
iamInstanceProfile(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
|
RunInstancesRequest.Builder |
iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
|
RunInstancesRequest.Builder |
imageId(String imageId)
The ID of the AMI, which you can get by calling DescribeImages.
|
RunInstancesRequest.Builder |
instanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RunInstancesRequest.Builder |
instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the
operating system command for system shutdown).
|
RunInstancesRequest.Builder |
instanceType(InstanceType instanceType)
The instance type.
|
RunInstancesRequest.Builder |
instanceType(String instanceType)
The instance type.
|
RunInstancesRequest.Builder |
ipv6AddressCount(Integer ipv6AddressCount)
[EC2-VPC] A number of IPv6 addresses to associate with the primary network interface.
|
RunInstancesRequest.Builder |
ipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary
network interface.
|
RunInstancesRequest.Builder |
ipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary
network interface.
|
RunInstancesRequest.Builder |
ipv6Addresses(InstanceIpv6Address... ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary
network interface.
|
RunInstancesRequest.Builder |
kernelId(String kernelId)
The ID of the kernel.
|
RunInstancesRequest.Builder |
keyName(String keyName)
The name of the key pair.
|
RunInstancesRequest.Builder |
maxCount(Integer maxCount)
The maximum number of instances to launch.
|
RunInstancesRequest.Builder |
minCount(Integer minCount)
The minimum number of instances to launch.
|
RunInstancesRequest.Builder |
monitoring(Boolean monitoring)
The monitoring for the instance.
|
RunInstancesRequest.Builder |
networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
|
RunInstancesRequest.Builder |
networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces)
One or more network interfaces.
|
RunInstancesRequest.Builder |
networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.
|
RunInstancesRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
RunInstancesRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
default RunInstancesRequest.Builder |
placement(Consumer<Placement.Builder> placement)
The placement for the instance.
|
RunInstancesRequest.Builder |
placement(Placement placement)
The placement for the instance.
|
RunInstancesRequest.Builder |
privateIpAddress(String privateIpAddress)
[EC2-VPC] The primary IPv4 address.
|
RunInstancesRequest.Builder |
ramdiskId(String ramdiskId)
The ID of the RAM disk.
|
RunInstancesRequest.Builder |
securityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs.
|
RunInstancesRequest.Builder |
securityGroupIds(String... securityGroupIds)
One or more security group IDs.
|
RunInstancesRequest.Builder |
securityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names.
|
RunInstancesRequest.Builder |
securityGroups(String... securityGroups)
[EC2-Classic, default VPC] One or more security group names.
|
RunInstancesRequest.Builder |
subnetId(String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.
|
RunInstancesRequest.Builder |
tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources during launch.
|
RunInstancesRequest.Builder |
tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the resources during launch.
|
RunInstancesRequest.Builder |
tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the resources during launch.
|
RunInstancesRequest.Builder |
userData(String userData)
The user data to make available to the instance.
|
build
overrideConfiguration
copy
applyMutation, build
RunInstancesRequest.Builder blockDeviceMappings(Collection<BlockDeviceMapping> blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block device mapping entries. You can't specify both a snapshot ID and an encryption
value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for
a volume, it is not blank and its encryption status is used for the volume encryption status.RunInstancesRequest.Builder blockDeviceMappings(BlockDeviceMapping... blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
blockDeviceMappings
- One or more block device mapping entries. You can't specify both a snapshot ID and an encryption
value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for
a volume, it is not blank and its encryption status is used for the volume encryption status.RunInstancesRequest.Builder blockDeviceMappings(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings)
One or more block device mapping entries. You can't specify both a snapshot ID and an encryption value. This is because only blank volumes can be encrypted on creation. If a snapshot is the basis for a volume, it is not blank and its encryption status is used for the volume encryption status.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #blockDeviceMappings(List)
.blockDeviceMappings
- a consumer that will call methods on List.Builder
#blockDeviceMappings(List)
RunInstancesRequest.Builder imageId(String imageId)
The ID of the AMI, which you can get by calling DescribeImages.
imageId
- The ID of the AMI, which you can get by calling DescribeImages.RunInstancesRequest.Builder instanceType(String instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
Default: m1.small
instanceType
- The instance type. For more information, see Instance Types in
the Amazon Elastic Compute Cloud User Guide.
Default: m1.small
InstanceType
,
InstanceType
RunInstancesRequest.Builder instanceType(InstanceType instanceType)
The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.
Default: m1.small
instanceType
- The instance type. For more information, see Instance Types in
the Amazon Elastic Compute Cloud User Guide.
Default: m1.small
InstanceType
,
InstanceType
RunInstancesRequest.Builder ipv6AddressCount(Integer ipv6AddressCount)
[EC2-VPC] A number of IPv6 addresses to associate with the primary network interface. Amazon EC2 chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.
ipv6AddressCount
- [EC2-VPC] A number of IPv6 addresses to associate with the primary network interface. Amazon EC2
chooses the IPv6 addresses from the range of your subnet. You cannot specify this option and the
option to assign specific IPv6 addresses in the same request. You can specify this option if you've
specified a minimum number of instances to launch.RunInstancesRequest.Builder ipv6Addresses(Collection<InstanceIpv6Address> ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
ipv6Addresses
- [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the
primary network interface. You cannot specify this option and the option to assign a number of IPv6
addresses in the same request. You cannot specify this option if you've specified a minimum number of
instances to launch.RunInstancesRequest.Builder ipv6Addresses(InstanceIpv6Address... ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
ipv6Addresses
- [EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the
primary network interface. You cannot specify this option and the option to assign a number of IPv6
addresses in the same request. You cannot specify this option if you've specified a minimum number of
instances to launch.RunInstancesRequest.Builder ipv6Addresses(Consumer<InstanceIpv6Address.Builder>... ipv6Addresses)
[EC2-VPC] Specify one or more IPv6 addresses from the range of the subnet to associate with the primary network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #ipv6Addresses(List)
.ipv6Addresses
- a consumer that will call methods on List.Builder
#ipv6Addresses(List)
RunInstancesRequest.Builder kernelId(String kernelId)
The ID of the kernel.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
kernelId
- The ID of the kernel. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
RunInstancesRequest.Builder keyName(String keyName)
The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.
If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
keyName
- The name of the key pair. You can create a key pair using CreateKeyPair or
ImportKeyPair. If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.
RunInstancesRequest.Builder maxCount(Integer maxCount)
The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in the
target Availability Zone, Amazon EC2 launches the largest possible number of instances above
MinCount
.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.
maxCount
- The maximum number of instances to launch. If you specify more instances than Amazon EC2 can launch in
the target Availability Zone, Amazon EC2 launches the largest possible number of instances above
MinCount
.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 FAQ.
RunInstancesRequest.Builder minCount(Integer minCount)
The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.
minCount
- The minimum number of instances to launch. If you specify a minimum that is more instances than Amazon
EC2 can launch in the target Availability Zone, Amazon EC2 launches no instances.
Constraints: Between 1 and the maximum number you're allowed for the specified instance type. For more information about the default limits, and how to request an increase, see How many instances can I run in Amazon EC2 in the Amazon EC2 General FAQ.
RunInstancesRequest.Builder monitoring(Boolean monitoring)
The monitoring for the instance.
monitoring
- The monitoring for the instance.RunInstancesRequest.Builder placement(Placement placement)
The placement for the instance.
placement
- The placement for the instance.default RunInstancesRequest.Builder placement(Consumer<Placement.Builder> placement)
The placement for the instance.
This is a convenience that creates an instance of thePlacement.Builder
avoiding the need to create
one manually via Placement.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to placement(Placement)
.placement
- a consumer that will call methods on Placement.Builder
placement(Placement)
RunInstancesRequest.Builder ramdiskId(String ramdiskId)
The ID of the RAM disk.
We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
ramdiskId
- The ID of the RAM disk. We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see PV-GRUB in the Amazon Elastic Compute Cloud User Guide.
RunInstancesRequest.Builder securityGroupIds(Collection<String> securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup.
Default: Amazon EC2 uses the default security group.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup.
Default: Amazon EC2 uses the default security group.
RunInstancesRequest.Builder securityGroupIds(String... securityGroupIds)
One or more security group IDs. You can create a security group using CreateSecurityGroup.
Default: Amazon EC2 uses the default security group.
securityGroupIds
- One or more security group IDs. You can create a security group using CreateSecurityGroup.
Default: Amazon EC2 uses the default security group.
RunInstancesRequest.Builder securityGroups(Collection<String> securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.
Default: Amazon EC2 uses the default security group.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use
security group IDs instead.
Default: Amazon EC2 uses the default security group.
RunInstancesRequest.Builder securityGroups(String... securityGroups)
[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead.
Default: Amazon EC2 uses the default security group.
securityGroups
- [EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use
security group IDs instead.
Default: Amazon EC2 uses the default security group.
RunInstancesRequest.Builder subnetId(String subnetId)
[EC2-VPC] The ID of the subnet to launch the instance into.
subnetId
- [EC2-VPC] The ID of the subnet to launch the instance into.RunInstancesRequest.Builder userData(String userData)
The user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using a command line tool, base64-encoding is performed for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.
userData
- The user data to make available to the instance. For more information, see Running Commands on Your
Linux Instance at Launch (Linux) and Adding User Data (Windows). If you are using a command line tool, base64-encoding is performed
for you, and you can load the text from a file. Otherwise, you must provide base64-encoded text.RunInstancesRequest.Builder additionalInfo(String additionalInfo)
Reserved.
additionalInfo
- Reserved.RunInstancesRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Constraints: Maximum 64 ASCII characters
clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more
information, see Ensuring
Idempotency.
Constraints: Maximum 64 ASCII characters
RunInstancesRequest.Builder disableApiTermination(Boolean disableApiTermination)
If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute to false
after launch, use
ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior
to
terminate
, you can terminate the instance by running the shutdown command from the instance.
Default: false
disableApiTermination
- If you set this parameter to true
, you can't terminate the instance using the Amazon EC2
console, CLI, or API; otherwise, you can. To change this attribute to false
after launch,
use ModifyInstanceAttribute. Alternatively, if you set
InstanceInitiatedShutdownBehavior
to terminate
, you can terminate the
instance by running the shutdown command from the instance.
Default: false
RunInstancesRequest.Builder ebsOptimized(Boolean ebsOptimized)
Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
ebsOptimized
- Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated
throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O
performance. This optimization isn't available with all instance types. Additional usage charges apply
when using an EBS-optimized instance.
Default: false
RunInstancesRequest.Builder iamInstanceProfile(IamInstanceProfileSpecification iamInstanceProfile)
The IAM instance profile.
iamInstanceProfile
- The IAM instance profile.default RunInstancesRequest.Builder iamInstanceProfile(Consumer<IamInstanceProfileSpecification.Builder> iamInstanceProfile)
The IAM instance profile.
This is a convenience that creates an instance of theIamInstanceProfileSpecification.Builder
avoiding the need to create one manually via IamInstanceProfileSpecification.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to iamInstanceProfile(IamInstanceProfileSpecification)
.iamInstanceProfile
- a consumer that will call methods on IamInstanceProfileSpecification.Builder
iamInstanceProfile(IamInstanceProfileSpecification)
RunInstancesRequest.Builder instanceInitiatedShutdownBehavior(String instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using
the operating system command for system shutdown).
Default: stop
ShutdownBehavior
,
ShutdownBehavior
RunInstancesRequest.Builder instanceInitiatedShutdownBehavior(ShutdownBehavior instanceInitiatedShutdownBehavior)
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
Default: stop
instanceInitiatedShutdownBehavior
- Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using
the operating system command for system shutdown).
Default: stop
ShutdownBehavior
,
ShutdownBehavior
RunInstancesRequest.Builder networkInterfaces(Collection<InstanceNetworkInterfaceSpecification> networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.RunInstancesRequest.Builder networkInterfaces(InstanceNetworkInterfaceSpecification... networkInterfaces)
One or more network interfaces.
networkInterfaces
- One or more network interfaces.RunInstancesRequest.Builder networkInterfaces(Consumer<InstanceNetworkInterfaceSpecification.Builder>... networkInterfaces)
One or more network interfaces.
This is a convenience that creates an instance of the.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is
called immediately and its result is passed to #networkInterfaces(List)
.networkInterfaces
- a consumer that will call methods on List.Builder
#networkInterfaces(List)
RunInstancesRequest.Builder privateIpAddress(String privateIpAddress)
[EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
privateIpAddress
- [EC2-VPC] The primary IPv4 address. You must specify a value from the IPv4 address range of the
subnet.
Only one private IP address can be designated as primary. You can't specify this option if you've specified the option to designate a private IP address as the primary IP address in a network interface specification. You cannot specify this option if you're launching more than one instance in the request.
RunInstancesRequest.Builder elasticGpuSpecification(Collection<ElasticGpuSpecification> elasticGpuSpecification)
An Elastic GPU to associate with the instance.
elasticGpuSpecification
- An Elastic GPU to associate with the instance.RunInstancesRequest.Builder elasticGpuSpecification(ElasticGpuSpecification... elasticGpuSpecification)
An Elastic GPU to associate with the instance.
elasticGpuSpecification
- An Elastic GPU to associate with the instance.RunInstancesRequest.Builder elasticGpuSpecification(Consumer<ElasticGpuSpecification.Builder>... elasticGpuSpecification)
An Elastic GPU to associate with the instance.
This is a convenience that creates an instance of theList.Builder
avoiding
the need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called
immediately and its result is passed to #elasticGpuSpecification(List)
.elasticGpuSpecification
- a consumer that will call methods on List.Builder
#elasticGpuSpecification(List)
RunInstancesRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.
tagSpecifications
- The tags to apply to the resources during launch. You can tag instances and volumes. The specified
tags are applied to all instances or volumes that are created during launch.RunInstancesRequest.Builder tagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.
tagSpecifications
- The tags to apply to the resources during launch. You can tag instances and volumes. The specified
tags are applied to all instances or volumes that are created during launch.RunInstancesRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications)
The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.
This is a convenience that creates an instance of theList.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #tagSpecifications(List)
.tagSpecifications
- a consumer that will call methods on List.Builder
#tagSpecifications(List)
RunInstancesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.RunInstancesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.