Interface Ec2Instance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2Instance.Builder,Ec2Instance>,SdkBuilder<Ec2Instance.Builder,Ec2Instance>,SdkPojo
- Enclosing class:
- Ec2Instance
public static interface Ec2Instance.Builder extends SdkPojo, CopyableBuilder<Ec2Instance.Builder,Ec2Instance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Ec2Instance.BuilderavailabilityZone(String availabilityZone)The availability zone of the Amazon EC2 instance.Ec2Instance.Builderec2NetworkInterfaceUids(String... ec2NetworkInterfaceUids)The ID of the network interface.Ec2Instance.Builderec2NetworkInterfaceUids(Collection<String> ec2NetworkInterfaceUids)The ID of the network interface.default Ec2Instance.BuilderiamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)Sets the value of the IamInstanceProfile property for this object.Ec2Instance.BuilderiamInstanceProfile(IamInstanceProfile iamInstanceProfile)Sets the value of the IamInstanceProfile property for this object.Ec2Instance.BuilderimageDescription(String imageDescription)The image description of the Amazon EC2 instance.Ec2Instance.BuilderinstanceState(String instanceState)The state of the Amazon EC2 instance.Ec2Instance.BuilderinstanceType(String instanceType)Type of the Amazon EC2 instance.Ec2Instance.BuilderoutpostArn(String outpostArn)The Amazon Resource Name (ARN) of the Amazon Web Services Outpost.Ec2Instance.Builderplatform(String platform)The platform of the Amazon EC2 instance.Ec2Instance.BuilderproductCodes(Collection<ProductCode> productCodes)The product code of the Amazon EC2 instance.Ec2Instance.BuilderproductCodes(Consumer<ProductCode.Builder>... productCodes)The product code of the Amazon EC2 instance.Ec2Instance.BuilderproductCodes(ProductCode... productCodes)The product code of the Amazon 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
availabilityZone
Ec2Instance.Builder availabilityZone(String availabilityZone)
The availability zone of the Amazon EC2 instance. For more information, see Availability zones in the Amazon EC2 User Guide.
- Parameters:
availabilityZone- The availability zone of the Amazon EC2 instance. For more information, see Availability zones in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageDescription
Ec2Instance.Builder imageDescription(String imageDescription)
The image description of the Amazon EC2 instance.
- Parameters:
imageDescription- The image description of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceState
Ec2Instance.Builder instanceState(String instanceState)
The state of the Amazon EC2 instance. For more information, see Amazon EC2 instance state changes in the Amazon EC2 User Guide.
- Parameters:
instanceState- The state of the Amazon EC2 instance. For more information, see Amazon EC2 instance state changes in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
Ec2Instance.Builder iamInstanceProfile(IamInstanceProfile iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object.- Parameters:
iamInstanceProfile- The new value for the IamInstanceProfile property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iamInstanceProfile
default Ec2Instance.Builder iamInstanceProfile(Consumer<IamInstanceProfile.Builder> iamInstanceProfile)
Sets the value of the IamInstanceProfile property for this object. 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)
-
instanceType
Ec2Instance.Builder instanceType(String instanceType)
Type of the Amazon EC2 instance.
- Parameters:
instanceType- Type of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostArn
Ec2Instance.Builder outpostArn(String outpostArn)
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. This shows applicable Amazon Web Services Outposts instances.
- Parameters:
outpostArn- The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. This shows applicable Amazon Web Services Outposts instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
Ec2Instance.Builder platform(String platform)
The platform of the Amazon EC2 instance.
- Parameters:
platform- The platform of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
Ec2Instance.Builder productCodes(Collection<ProductCode> productCodes)
The product code of the Amazon EC2 instance.
- Parameters:
productCodes- The product code of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
Ec2Instance.Builder productCodes(ProductCode... productCodes)
The product code of the Amazon EC2 instance.
- Parameters:
productCodes- The product code of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
Ec2Instance.Builder productCodes(Consumer<ProductCode.Builder>... productCodes)
The product code of the Amazon 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)
-
ec2NetworkInterfaceUids
Ec2Instance.Builder ec2NetworkInterfaceUids(Collection<String> ec2NetworkInterfaceUids)
The ID of the network interface.
- Parameters:
ec2NetworkInterfaceUids- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2NetworkInterfaceUids
Ec2Instance.Builder ec2NetworkInterfaceUids(String... ec2NetworkInterfaceUids)
The ID of the network interface.
- Parameters:
ec2NetworkInterfaceUids- The ID of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-