Interface InstanceDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceDetails.Builder,InstanceDetails>,SdkBuilder<InstanceDetails.Builder,InstanceDetails>,SdkPojo
- Enclosing class:
- InstanceDetails
public static interface InstanceDetails.Builder extends SdkPojo, CopyableBuilder<InstanceDetails.Builder,InstanceDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InstanceDetails.BuilderavailabilityZone(String availabilityZone)The Availability Zone of the EC2 instance.default InstanceDetails.BuilderiamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)The profile information of the EC2 instance.InstanceDetails.BuilderiamInstanceProfile(IamInstanceProfile iamInstanceProfile)The profile information of the EC2 instance.InstanceDetails.BuilderimageDescription(String imageDescription)The image description of the EC2 instance.InstanceDetails.BuilderimageId(String imageId)The image ID of the EC2 instance.InstanceDetails.BuilderinstanceId(String instanceId)The ID of the EC2 instance.InstanceDetails.BuilderinstanceState(String instanceState)The state of the EC2 instance.InstanceDetails.BuilderinstanceType(String instanceType)The type of the EC2 instance.InstanceDetails.BuilderlaunchTime(String launchTime)The launch time of the EC2 instance.InstanceDetails.BuildernetworkInterfaces(Collection<NetworkInterface> networkInterfaces)The elastic network interface information of the EC2 instance.InstanceDetails.BuildernetworkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)The elastic network interface information of the EC2 instance.InstanceDetails.BuildernetworkInterfaces(NetworkInterface... networkInterfaces)The elastic network interface information of the EC2 instance.InstanceDetails.BuilderoutpostArn(String outpostArn)The Amazon Resource Name (ARN) of the Amazon Web Services Outpost.InstanceDetails.Builderplatform(String platform)The platform of the EC2 instance.InstanceDetails.BuilderproductCodes(Collection<ProductCode> productCodes)The product code of the EC2 instance.InstanceDetails.BuilderproductCodes(Consumer<ProductCode.Builder>... productCodes)The product code of the EC2 instance.InstanceDetails.BuilderproductCodes(ProductCode... productCodes)The product code of the EC2 instance.InstanceDetails.Buildertags(Collection<Tag> tags)The tags of the EC2 instance.InstanceDetails.Buildertags(Consumer<Tag.Builder>... tags)The tags of the EC2 instance.InstanceDetails.Buildertags(Tag... tags)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 Detail
-
availabilityZone
InstanceDetails.Builder availabilityZone(String 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
InstanceDetails.Builder iamInstanceProfile(IamInstanceProfile 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.Builderavoiding the need to create one manually viaIamInstanceProfile.builder().When the
Consumercompletes,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:
iamInstanceProfile(IamInstanceProfile)
-
imageDescription
InstanceDetails.Builder imageDescription(String 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
InstanceDetails.Builder imageId(String 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
InstanceDetails.Builder instanceId(String 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
InstanceDetails.Builder instanceState(String 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
InstanceDetails.Builder instanceType(String 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
InstanceDetails.Builder outpostArn(String 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
InstanceDetails.Builder launchTime(String 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
InstanceDetails.Builder networkInterfaces(Collection<NetworkInterface> 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
InstanceDetails.Builder networkInterfaces(NetworkInterface... 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
InstanceDetails.Builder networkInterfaces(Consumer<NetworkInterface.Builder>... networkInterfaces)
The elastic network interface information of the EC2 instance.
This is a convenience method that creates an instance of theNetworkInterface.Builderavoiding the need to create one manually viaNetworkInterface.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#networkInterfaces(List.) - 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:
#networkInterfaces(java.util.Collection)
-
platform
InstanceDetails.Builder platform(String 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
InstanceDetails.Builder productCodes(Collection<ProductCode> 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
InstanceDetails.Builder productCodes(ProductCode... 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
InstanceDetails.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)
The product code of the EC2 instance.
This is a convenience method that creates an instance of theProductCode.Builderavoiding the need to create one manually viaProductCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#productCodes(List.) - 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:
#productCodes(java.util.Collection)
-
tags
InstanceDetails.Builder tags(Collection<Tag> 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
InstanceDetails.Builder tags(Tag... 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
InstanceDetails.Builder tags(Consumer<Tag.Builder>... tags)
The tags of the EC2 instance.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - 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:
#tags(java.util.Collection)
-
-