Interface InstanceGroupMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceGroupMetadata.Builder,
,InstanceGroupMetadata> SdkBuilder<InstanceGroupMetadata.Builder,
,InstanceGroupMetadata> SdkPojo
- Enclosing class:
InstanceGroupMetadata
-
Method Summary
Modifier and TypeMethodDescriptionamiOverride
(String amiOverride) If you use a custom Amazon Machine Image (AMI) for the instance group, this field shows the ID of the custom AMI.availabilityZoneId
(String availabilityZoneId) The ID of the Availability Zone where the instance group is located.default InstanceGroupMetadata.Builder
capacityReservation
(Consumer<CapacityReservation.Builder> capacityReservation) Information about the Capacity Reservation used by the instance group.capacityReservation
(CapacityReservation capacityReservation) Information about the Capacity Reservation used by the instance group.failureMessage
(String failureMessage) An error message describing why the instance group level operation (such as creating, scaling, or deleting) failed.securityGroupIds
(String... securityGroupIds) A list of security group IDs associated with the instance group.securityGroupIds
(Collection<String> securityGroupIds) A list of security group IDs associated with the instance group.The ID of the subnet where the instance group is located.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 Details
-
failureMessage
An error message describing why the instance group level operation (such as creating, scaling, or deleting) failed.
- Parameters:
failureMessage
- An error message describing why the instance group level operation (such as creating, scaling, or deleting) failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
The ID of the Availability Zone where the instance group is located.
- Parameters:
availabilityZoneId
- The ID of the Availability Zone where the instance group is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservation
Information about the Capacity Reservation used by the instance group.
- Parameters:
capacityReservation
- Information about the Capacity Reservation used by the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityReservation
default InstanceGroupMetadata.Builder capacityReservation(Consumer<CapacityReservation.Builder> capacityReservation) Information about the Capacity Reservation used by the instance group.
This is a convenience method that creates an instance of theCapacityReservation.Builder
avoiding the need to create one manually viaCapacityReservation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityReservation(CapacityReservation)
.- Parameters:
capacityReservation
- a consumer that will call methods onCapacityReservation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subnetId
The ID of the subnet where the instance group is located.
- Parameters:
subnetId
- The ID of the subnet where the instance group is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
A list of security group IDs associated with the instance group.
- Parameters:
securityGroupIds
- A list of security group IDs associated with the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
A list of security group IDs associated with the instance group.
- Parameters:
securityGroupIds
- A list of security group IDs associated with the instance group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiOverride
If you use a custom Amazon Machine Image (AMI) for the instance group, this field shows the ID of the custom AMI.
- Parameters:
amiOverride
- If you use a custom Amazon Machine Image (AMI) for the instance group, this field shows the ID of the custom AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-