Interface Instance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Instance.Builder,
,Instance> SdkBuilder<Instance.Builder,
,Instance> SdkPojo
- Enclosing class:
Instance
-
Method Summary
Modifier and TypeMethodDescriptionebsVolumes
(Collection<EbsVolume> ebsVolumes) The list of Amazon EBS volumes that are attached to this instance.ebsVolumes
(Consumer<EbsVolume.Builder>... ebsVolumes) The list of Amazon EBS volumes that are attached to this instance.ebsVolumes
(EbsVolume... ebsVolumes) The list of Amazon EBS volumes that are attached to this instance.ec2InstanceId
(String ec2InstanceId) The unique identifier of the instance in Amazon EC2.The unique identifier for the instance in Amazon EMR.instanceFleetId
(String instanceFleetId) The unique identifier of the instance fleet to which an Amazon EC2 instance belongs.instanceGroupId
(String instanceGroupId) The identifier of the instance group to which this instance belongs.instanceType
(String instanceType) The Amazon EC2 instance type, for examplem3.xlarge
.The instance purchasing option.market
(MarketType market) The instance purchasing option.privateDnsName
(String privateDnsName) The private DNS name of the instance.privateIpAddress
(String privateIpAddress) The private IP address of the instance.publicDnsName
(String publicDnsName) The public DNS name of the instance.publicIpAddress
(String publicIpAddress) The public IP address of the instance.default Instance.Builder
status
(Consumer<InstanceStatus.Builder> status) The current status of the instance.status
(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, sdkFields
-
Method Details
-
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
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
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
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
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
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
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
The current status of the instance.
This is a convenience method that creates an instance of theInstanceStatus.Builder
avoiding the need to create one manually viaInstanceStatus.builder()
.When the
Consumer
completes,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:
-
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
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
The instance purchasing option. Valid values are
ON_DEMAND
orSPOT
.- Parameters:
market
- The instance purchasing option. Valid values areON_DEMAND
orSPOT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
market
The instance purchasing option. Valid values are
ON_DEMAND
orSPOT
.- Parameters:
market
- The instance purchasing option. Valid values areON_DEMAND
orSPOT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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
The list of Amazon EBS volumes that are attached to this instance.
This is a convenience method that creates an instance of theEbsVolume.Builder
avoiding the need to create one manually viaEbsVolume.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toebsVolumes(List<EbsVolume>)
.- 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:
-