Interface CapacityAllocation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityAllocation.Builder,,CapacityAllocation> SdkBuilder<CapacityAllocation.Builder,,CapacityAllocation> SdkPojo
- Enclosing class:
CapacityAllocation
-
Method Summary
Modifier and TypeMethodDescriptionallocationMetadata(Collection<CapacityAllocationMetadataEntry> allocationMetadata) Additional metadata associated with the capacity allocation.allocationMetadata(Consumer<CapacityAllocationMetadataEntry.Builder>... allocationMetadata) Additional metadata associated with the capacity allocation.allocationMetadata(CapacityAllocationMetadataEntry... allocationMetadata) Additional metadata associated with the capacity allocation.allocationType(String allocationType) The usage type.allocationType(AllocationType allocationType) The usage type.The amount of instance capacity associated with the usage.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
allocationType
The usage type.
usedindicates that the instance capacity is in use by instances that are running in the Capacity Reservation.- Parameters:
allocationType- The usage type.usedindicates that the instance capacity is in use by instances that are running in the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
allocationType
The usage type.
usedindicates that the instance capacity is in use by instances that are running in the Capacity Reservation.- Parameters:
allocationType- The usage type.usedindicates that the instance capacity is in use by instances that are running in the Capacity Reservation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
count
The amount of instance capacity associated with the usage. For example a value of
4indicates that instance capacity for 4 instances is currently in use.- Parameters:
count- The amount of instance capacity associated with the usage. For example a value of4indicates that instance capacity for 4 instances is currently in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationMetadata
CapacityAllocation.Builder allocationMetadata(Collection<CapacityAllocationMetadataEntry> allocationMetadata) Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.
- Parameters:
allocationMetadata- Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationMetadata
CapacityAllocation.Builder allocationMetadata(CapacityAllocationMetadataEntry... allocationMetadata) Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.
- Parameters:
allocationMetadata- Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allocationMetadata
CapacityAllocation.Builder allocationMetadata(Consumer<CapacityAllocationMetadataEntry.Builder>... allocationMetadata) Additional metadata associated with the capacity allocation. Each entry contains a key-value pair providing context about the allocation.
This is a convenience method that creates an instance of theCapacityAllocationMetadataEntry.Builderavoiding the need to create one manually viaCapacityAllocationMetadataEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toallocationMetadata(List<CapacityAllocationMetadataEntry>).- Parameters:
allocationMetadata- a consumer that will call methods onCapacityAllocationMetadataEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-