Interface ReservationUtilizationGroup.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ReservationUtilizationGroup.Builder,,ReservationUtilizationGroup> SdkBuilder<ReservationUtilizationGroup.Builder,,ReservationUtilizationGroup> SdkPojo
- Enclosing class:
ReservationUtilizationGroup
@Mutable
@NotThreadSafe
public static interface ReservationUtilizationGroup.Builder
extends SdkPojo, CopyableBuilder<ReservationUtilizationGroup.Builder,ReservationUtilizationGroup>
-
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, String> attributes) The attributes for this group of reservations.The key for a specific reservation attribute.utilization(Consumer<ReservationAggregates.Builder> utilization) How much you used this group of reservations.utilization(ReservationAggregates utilization) How much you used this group of reservations.The value of a specific reservation attribute.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
-
key
The key for a specific reservation attribute.
- Parameters:
key- The key for a specific reservation attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value of a specific reservation attribute.
- Parameters:
value- The value of a specific reservation attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The attributes for this group of reservations.
- Parameters:
attributes- The attributes for this group of reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilization
How much you used this group of reservations.
- Parameters:
utilization- How much you used this group of reservations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
utilization
default ReservationUtilizationGroup.Builder utilization(Consumer<ReservationAggregates.Builder> utilization) How much you used this group of reservations.
This is a convenience method that creates an instance of theReservationAggregates.Builderavoiding the need to create one manually viaReservationAggregates.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toutilization(ReservationAggregates).- Parameters:
utilization- a consumer that will call methods onReservationAggregates.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-