public static interface InstanceDetails.Builder extends SdkPojo, CopyableBuilder<InstanceDetails.Builder,InstanceDetails>
Modifier and Type | Method and Description |
---|---|
InstanceDetails.Builder |
availabilityZone(String availabilityZone)
The availability zone of the EC2 instance.
|
default InstanceDetails.Builder |
iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
InstanceDetails.Builder |
iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.
|
InstanceDetails.Builder |
imageDescription(String imageDescription)
The image description of the EC2 instance.
|
InstanceDetails.Builder |
imageId(String imageId)
The image ID of the EC2 instance.
|
InstanceDetails.Builder |
instanceId(String instanceId)
The ID of the EC2 instance.
|
InstanceDetails.Builder |
instanceState(String instanceState)
The state of the EC2 instance.
|
InstanceDetails.Builder |
instanceType(String instanceType)
The type of the EC2 instance.
|
InstanceDetails.Builder |
launchTime(String launchTime)
The launch time of the EC2 instance.
|
InstanceDetails.Builder |
networkInterfaces(Collection<NetworkInterface> networkInterfaces)
The network interface information of the EC2 instance.
|
InstanceDetails.Builder |
networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The network interface information of the EC2 instance.
|
InstanceDetails.Builder |
networkInterfaces(NetworkInterface... networkInterfaces)
The network interface information of the EC2 instance.
|
InstanceDetails.Builder |
platform(String platform)
The platform of the EC2 instance.
|
InstanceDetails.Builder |
productCodes(Collection<ProductCode> productCodes)
The product code of the EC2 instance.
|
InstanceDetails.Builder |
productCodes(Consumer<ProductCode.Builder>... productCodes)
The product code of the EC2 instance.
|
InstanceDetails.Builder |
productCodes(ProductCode... productCodes)
The product code of the EC2 instance.
|
InstanceDetails.Builder |
tags(Collection<Tag> tags)
The tags of the EC2 instance.
|
InstanceDetails.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags of the EC2 instance.
|
InstanceDetails.Builder |
tags(Tag... tags)
The tags of the EC2 instance.
|
copy
applyMutation, build
InstanceDetails.Builder availabilityZone(String availabilityZone)
availabilityZone
- The availability zone of the EC2 instance.InstanceDetails.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
iamInstanceProfile
- The new value for the IamInstanceProfile property for this object.default InstanceDetails.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)
IamInstanceProfile.Builder
avoiding the need to
create one manually via IamInstanceProfile.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to iamInstanceProfile(IamInstanceProfile)
.iamInstanceProfile
- a consumer that will call methods on IamInstanceProfile.Builder
iamInstanceProfile(IamInstanceProfile)
InstanceDetails.Builder imageDescription(String imageDescription)
imageDescription
- The image description of the EC2 instance.InstanceDetails.Builder imageId(String imageId)
imageId
- The image ID of the EC2 instance.InstanceDetails.Builder instanceId(String instanceId)
instanceId
- The ID of the EC2 instance.InstanceDetails.Builder instanceState(String instanceState)
instanceState
- The state of the EC2 instance.InstanceDetails.Builder instanceType(String instanceType)
instanceType
- The type of the EC2 instance.InstanceDetails.Builder launchTime(String launchTime)
launchTime
- The launch time of the EC2 instance.InstanceDetails.Builder networkInterfaces(Collection<NetworkInterface> networkInterfaces)
networkInterfaces
- The network interface information of the EC2 instance.InstanceDetails.Builder networkInterfaces(NetworkInterface... networkInterfaces)
networkInterfaces
- The network interface information of the EC2 instance.InstanceDetails.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
List.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)
InstanceDetails.Builder platform(String platform)
platform
- The platform of the EC2 instance.InstanceDetails.Builder productCodes(Collection<ProductCode> productCodes)
productCodes
- The product code of the EC2 instance.InstanceDetails.Builder productCodes(ProductCode... productCodes)
productCodes
- The product code of the EC2 instance.InstanceDetails.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)
.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 #productCodes(List)
.productCodes
- a consumer that will call methods on List.Builder
#productCodes(List)
InstanceDetails.Builder tags(Collection<Tag> tags)
tags
- The tags of the EC2 instance.InstanceDetails.Builder tags(Tag... tags)
tags
- The tags of the EC2 instance.InstanceDetails.Builder tags(Consumer<Tag.Builder>... tags)
List.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 #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.