Interface Instance.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Instance.Builder,Instance>,SdkBuilder<Instance.Builder,Instance>,SdkPojo
- Enclosing class:
- Instance
public static interface Instance.Builder extends SdkPojo, CopyableBuilder<Instance.Builder,Instance>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Instance.BuilderebsVolumes(Collection<EbsVolume> ebsVolumes)The list of Amazon EBS volumes that are attached to this instance.Instance.BuilderebsVolumes(Consumer<EbsVolume.Builder>... ebsVolumes)The list of Amazon EBS volumes that are attached to this instance.Instance.BuilderebsVolumes(EbsVolume... ebsVolumes)The list of Amazon EBS volumes that are attached to this instance.Instance.Builderec2InstanceId(String ec2InstanceId)The unique identifier of the instance in Amazon EC2.Instance.Builderid(String id)The unique identifier for the instance in Amazon EMR.Instance.BuilderinstanceFleetId(String instanceFleetId)The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.Instance.BuilderinstanceGroupId(String instanceGroupId)The identifier of the instance group to which this instance belongs.Instance.BuilderinstanceType(String instanceType)The Amazon EC2 instance type, for examplem3.xlarge.Instance.Buildermarket(String market)The instance purchasing option.Instance.Buildermarket(MarketType market)The instance purchasing option.Instance.BuilderprivateDnsName(String privateDnsName)The private DNS name of the instance.Instance.BuilderprivateIpAddress(String privateIpAddress)The private IP address of the instance.Instance.BuilderpublicDnsName(String publicDnsName)The public DNS name of the instance.Instance.BuilderpublicIpAddress(String publicIpAddress)The public IP address of the instance.default Instance.Builderstatus(Consumer<InstanceStatus.Builder> status)The current status of the instance.Instance.Builderstatus(InstanceStatus status)The current status of the 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
-
id
Instance.Builder id(String id)
The unique identifier for the instance in Amazon EMR.
- Parameters:
id- The unique identifier for the instance in Amazon EMR.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceId
Instance.Builder ec2InstanceId(String ec2InstanceId)
The unique identifier of the instance in Amazon EC2.
- Parameters:
ec2InstanceId- The unique identifier of the instance in Amazon EC2.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicDnsName
Instance.Builder publicDnsName(String publicDnsName)
The public DNS name of the instance.
- Parameters:
publicDnsName- The public DNS name of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIpAddress
Instance.Builder publicIpAddress(String publicIpAddress)
The public IP address of the instance.
- Parameters:
publicIpAddress- The public IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDnsName
Instance.Builder privateDnsName(String privateDnsName)
The private DNS name of the instance.
- Parameters:
privateDnsName- The private DNS name of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIpAddress
Instance.Builder privateIpAddress(String privateIpAddress)
The private IP address of the instance.
- Parameters:
privateIpAddress- The private IP address of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Instance.Builder status(InstanceStatus status)
The current status of the instance.
- Parameters:
status- The current status of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default Instance.Builder status(Consumer<InstanceStatus.Builder> status)
The current status of the instance.
This is a convenience method that creates an instance of theInstanceStatus.Builderavoiding the need to create one manually viaInstanceStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(InstanceStatus).- Parameters:
status- a consumer that will call methods onInstanceStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(InstanceStatus)
-
instanceGroupId
Instance.Builder instanceGroupId(String instanceGroupId)
The identifier of the instance group to which this instance belongs.
- Parameters:
instanceGroupId- The identifier of the instance group to which this instance belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFleetId
Instance.Builder instanceFleetId(String instanceFleetId)
The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.
- Parameters:
instanceFleetId- The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
market
Instance.Builder market(String market)
The instance purchasing option. Valid values are
ON_DEMANDorSPOT.- Parameters:
market- The instance purchasing option. Valid values areON_DEMANDorSPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType,MarketType
-
market
Instance.Builder market(MarketType market)
The instance purchasing option. Valid values are
ON_DEMANDorSPOT.- Parameters:
market- The instance purchasing option. Valid values areON_DEMANDorSPOT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MarketType,MarketType
-
instanceType
Instance.Builder instanceType(String instanceType)
The Amazon EC2 instance type, for example
m3.xlarge.- Parameters:
instanceType- The Amazon EC2 instance type, for examplem3.xlarge.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsVolumes
Instance.Builder ebsVolumes(Collection<EbsVolume> ebsVolumes)
The list of Amazon EBS volumes that are attached to this instance.
- Parameters:
ebsVolumes- The list of Amazon EBS volumes that are attached to this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsVolumes
Instance.Builder ebsVolumes(EbsVolume... ebsVolumes)
The list of Amazon EBS volumes that are attached to this instance.
- Parameters:
ebsVolumes- The list of Amazon EBS volumes that are attached to this instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsVolumes
Instance.Builder ebsVolumes(Consumer<EbsVolume.Builder>... ebsVolumes)
The list of Amazon EBS volumes that are attached to this instance.
This is a convenience method that creates an instance of theEbsVolume.Builderavoiding the need to create one manually viaEbsVolume.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ebsVolumes(List.) - Parameters:
ebsVolumes- a consumer that will call methods onEbsVolume.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#ebsVolumes(java.util.Collection)
-
-