Interface InstanceDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceDetails.Builder,
,InstanceDetails> SdkBuilder<InstanceDetails.Builder,
,InstanceDetails> SdkPojo
- Enclosing class:
InstanceDetails
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone of the EC2 instance.default InstanceDetails.Builder
iamInstanceProfile
(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The profile information of the EC2 instance.iamInstanceProfile
(IamInstanceProfile iamInstanceProfile) The profile information of the EC2 instance.imageDescription
(String imageDescription) The image description of the EC2 instance.The image ID of the EC2 instance.instanceId
(String instanceId) The ID of the EC2 instance.instanceState
(String instanceState) The state of the EC2 instance.instanceType
(String instanceType) The type of the EC2 instance.launchTime
(String launchTime) The launch time of the EC2 instance.networkInterfaces
(Collection<NetworkInterface> networkInterfaces) The elastic network interface information of the EC2 instance.networkInterfaces
(Consumer<NetworkInterface.Builder>... networkInterfaces) The elastic network interface information of the EC2 instance.networkInterfaces
(NetworkInterface... networkInterfaces) The elastic network interface information of the EC2 instance.outpostArn
(String outpostArn) The Amazon Resource Name (ARN) of the Amazon Web Services Outpost.The platform of the EC2 instance.productCodes
(Collection<ProductCode> productCodes) The product code of the EC2 instance.productCodes
(Consumer<ProductCode.Builder>... productCodes) The product code of the EC2 instance.productCodes
(ProductCode... productCodes) The product code of the EC2 instance.tags
(Collection<Tag> tags) The tags of the EC2 instance.tags
(Consumer<Tag.Builder>... tags) The tags of the EC2 instance.The tags of the EC2 instance.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
availabilityZone
The Availability Zone of the EC2 instance.
- Parameters:
availabilityZone
- The Availability Zone of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
The profile information of the EC2 instance.
- Parameters:
iamInstanceProfile
- The profile information of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default InstanceDetails.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile) The profile information of the EC2 instance.
This is a convenience method that creates an instance of theIamInstanceProfile.Builder
avoiding the need to create one manually viaIamInstanceProfile.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toiamInstanceProfile(IamInstanceProfile)
.- Parameters:
iamInstanceProfile
- a consumer that will call methods onIamInstanceProfile.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageDescription
The image description of the EC2 instance.
- Parameters:
imageDescription
- The image description of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageId
The image ID of the EC2 instance.
- Parameters:
imageId
- The image ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The ID of the EC2 instance.
- Parameters:
instanceId
- The ID of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceState
The state of the EC2 instance.
- Parameters:
instanceState
- The state of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The type of the EC2 instance.
- Parameters:
instanceType
- The type of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostArn
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable to Amazon Web Services Outposts instances.
- Parameters:
outpostArn
- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable to Amazon Web Services Outposts instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchTime
The launch time of the EC2 instance.
- Parameters:
launchTime
- The launch time of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The elastic network interface information of the EC2 instance.
- Parameters:
networkInterfaces
- The elastic network interface information of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The elastic network interface information of the EC2 instance.
- Parameters:
networkInterfaces
- The elastic network interface information of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaces
The elastic network interface information of the EC2 instance.
This is a convenience method that creates an instance of theNetworkInterface.Builder
avoiding the need to create one manually viaNetworkInterface.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tonetworkInterfaces(List<NetworkInterface>)
.- Parameters:
networkInterfaces
- a consumer that will call methods onNetworkInterface.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
platform
The platform of the EC2 instance.
- Parameters:
platform
- The platform of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product code of the EC2 instance.
- Parameters:
productCodes
- The product code of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product code of the EC2 instance.
- Parameters:
productCodes
- The product code of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product code of the EC2 instance.
This is a convenience method that creates an instance of theProductCode.Builder
avoiding the need to create one manually viaProductCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproductCodes(List<ProductCode>)
.- Parameters:
productCodes
- a consumer that will call methods onProductCode.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags of the EC2 instance.
- Parameters:
tags
- The tags of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags of the EC2 instance.
- Parameters:
tags
- The tags of the EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags of the EC2 instance.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-