Interface ResourceConstraints.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ResourceConstraints.Builder,,ResourceConstraints> SdkBuilder<ResourceConstraints.Builder,,ResourceConstraints> SdkPojo
- Enclosing class:
ResourceConstraints
@Mutable
@NotThreadSafe
public static interface ResourceConstraints.Builder
extends SdkPojo, CopyableBuilder<ResourceConstraints.Builder,ResourceConstraints>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceConstraints.BuilderThe allowed values for resource names.name(AllowedValuesConstraint name) The allowed values for resource names.default ResourceConstraints.Builderweight(Consumer<IntegerRangeConstraint.Builder> weight) The allowed range for resource weight values.weight(IntegerRangeConstraint weight) The allowed range for resource weight values.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
-
name
The allowed values for resource names.
- Parameters:
name- The allowed values for resource names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The allowed values for resource names.
This is a convenience method that creates an instance of theAllowedValuesConstraint.Builderavoiding the need to create one manually viaAllowedValuesConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toname(AllowedValuesConstraint).- Parameters:
name- a consumer that will call methods onAllowedValuesConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
weight
The allowed range for resource weight values.
- Parameters:
weight- The allowed range for resource weight values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weight
The allowed range for resource weight values.
This is a convenience method that creates an instance of theIntegerRangeConstraint.Builderavoiding the need to create one manually viaIntegerRangeConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toweight(IntegerRangeConstraint).- Parameters:
weight- a consumer that will call methods onIntegerRangeConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-