Interface CapacityReservationInstanceUsage.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CapacityReservationInstanceUsage.Builder,,CapacityReservationInstanceUsage> SdkBuilder<CapacityReservationInstanceUsage.Builder,,CapacityReservationInstanceUsage> SdkPojo
- Enclosing class:
CapacityReservationInstanceUsage
@Mutable
@NotThreadSafe
public static interface CapacityReservationInstanceUsage.Builder
extends SdkPojo, CopyableBuilder<CapacityReservationInstanceUsage.Builder,CapacityReservationInstanceUsage>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the Amazon Web Services account that uses the instances.inUseInstanceCount(Integer inUseInstanceCount) The number of instances that the account uses, across all resource types.resourcesUsage(Collection<CapacityReservationResourceUsage> resourcesUsage) The instance usage for each resource type that has instances in use in the account.resourcesUsage(Consumer<CapacityReservationResourceUsage.Builder>... resourcesUsage) The instance usage for each resource type that has instances in use in the account.resourcesUsage(CapacityReservationResourceUsage... resourcesUsage) The instance usage for each resource type that has instances in use in the account.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
-
accountId
The ID of the Amazon Web Services account that uses the instances.
- Parameters:
accountId- The ID of the Amazon Web Services account that uses the instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inUseInstanceCount
The number of instances that the account uses, across all resource types.
- Parameters:
inUseInstanceCount- The number of instances that the account uses, across all resource types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesUsage
CapacityReservationInstanceUsage.Builder resourcesUsage(Collection<CapacityReservationResourceUsage> resourcesUsage) The instance usage for each resource type that has instances in use in the account.
- Parameters:
resourcesUsage- The instance usage for each resource type that has instances in use in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesUsage
CapacityReservationInstanceUsage.Builder resourcesUsage(CapacityReservationResourceUsage... resourcesUsage) The instance usage for each resource type that has instances in use in the account.
- Parameters:
resourcesUsage- The instance usage for each resource type that has instances in use in the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesUsage
CapacityReservationInstanceUsage.Builder resourcesUsage(Consumer<CapacityReservationResourceUsage.Builder>... resourcesUsage) The instance usage for each resource type that has instances in use in the account.
This is a convenience method that creates an instance of theCapacityReservationResourceUsage.Builderavoiding the need to create one manually viaCapacityReservationResourceUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourcesUsage(List<CapacityReservationResourceUsage>).- Parameters:
resourcesUsage- a consumer that will call methods onCapacityReservationResourceUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-