Interface GrantItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GrantItem.Builder,,GrantItem> SdkBuilder<GrantItem.Builder,,GrantItem> SdkPojo
- Enclosing class:
GrantItem
@Mutable
@NotThreadSafe
public static interface GrantItem.Builder
extends SdkPojo, CopyableBuilder<GrantItem.Builder,GrantItem>
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) A description of the entitlement.dimensionKey(String dimensionKey) The machine-readable key identifying the entitlement dimension.dimensionLabels(Collection<DimensionLabel> dimensionLabels) Labels used to categorize this entitlement, such as by region.dimensionLabels(Consumer<DimensionLabel.Builder>... dimensionLabels) Labels used to categorize this entitlement, such as by region.dimensionLabels(DimensionLabel... dimensionLabels) Labels used to categorize this entitlement, such as by region.displayName(String displayName) The human-readable name of the entitlement dimension.maxQuantity(Integer maxQuantity) The maximum quantity of the entitlement that can be granted.The unit of measurement for the entitlement.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
-
dimensionKey
The machine-readable key identifying the entitlement dimension.
- Parameters:
dimensionKey- The machine-readable key identifying the entitlement dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The human-readable name of the entitlement dimension.
- Parameters:
displayName- The human-readable name of the entitlement dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the entitlement.
- Parameters:
description- A description of the entitlement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionLabels
Labels used to categorize this entitlement, such as by region.
- Parameters:
dimensionLabels- Labels used to categorize this entitlement, such as by region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionLabels
Labels used to categorize this entitlement, such as by region.
- Parameters:
dimensionLabels- Labels used to categorize this entitlement, such as by region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionLabels
Labels used to categorize this entitlement, such as by region.
This is a convenience method that creates an instance of theDimensionLabel.Builderavoiding the need to create one manually viaDimensionLabel.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensionLabels(List<DimensionLabel>).- Parameters:
dimensionLabels- a consumer that will call methods onDimensionLabel.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The unit of measurement for the entitlement.
- Parameters:
unit- The unit of measurement for the entitlement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxQuantity
The maximum quantity of the entitlement that can be granted.
- Parameters:
maxQuantity- The maximum quantity of the entitlement that can be granted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-