Interface FlexCostAllocationCidrRangeSpecifications.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FlexCostAllocationCidrRangeSpecifications.Builder,,FlexCostAllocationCidrRangeSpecifications> SdkBuilder<FlexCostAllocationCidrRangeSpecifications.Builder,,FlexCostAllocationCidrRangeSpecifications> SdkPojo
- Enclosing class:
FlexCostAllocationCidrRangeSpecifications
@Mutable
@NotThreadSafe
public static interface FlexCostAllocationCidrRangeSpecifications.Builder
extends SdkPojo, CopyableBuilder<FlexCostAllocationCidrRangeSpecifications.Builder,FlexCostAllocationCidrRangeSpecifications>
-
Method Summary
Modifier and TypeMethodDescriptionprefixes(Collection<FlexCostAllocationCidrMapping> prefixes) The CIDR range to label mappings.prefixes(Consumer<FlexCostAllocationCidrMapping.Builder>... prefixes) The CIDR range to label mappings.prefixes(FlexCostAllocationCidrMapping... prefixes) The CIDR range to label mappings.prefixesType(String prefixesType) The type of prefixes to use.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
-
prefixesType
The type of prefixes to use. This parameter is required. Valid values are
source-prefixesanddestination-prefixes.- Parameters:
prefixesType- The type of prefixes to use. This parameter is required. Valid values aresource-prefixesanddestination-prefixes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixes
FlexCostAllocationCidrRangeSpecifications.Builder prefixes(Collection<FlexCostAllocationCidrMapping> prefixes) The CIDR range to label mappings. You can specify from 1 to 100 mappings. This parameter is required.
- Parameters:
prefixes- The CIDR range to label mappings. You can specify from 1 to 100 mappings. This parameter is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixes
FlexCostAllocationCidrRangeSpecifications.Builder prefixes(FlexCostAllocationCidrMapping... prefixes) The CIDR range to label mappings. You can specify from 1 to 100 mappings. This parameter is required.
- Parameters:
prefixes- The CIDR range to label mappings. You can specify from 1 to 100 mappings. This parameter is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prefixes
FlexCostAllocationCidrRangeSpecifications.Builder prefixes(Consumer<FlexCostAllocationCidrMapping.Builder>... prefixes) The CIDR range to label mappings. You can specify from 1 to 100 mappings. This parameter is required.
This is a convenience method that creates an instance of theFlexCostAllocationCidrMapping.Builderavoiding the need to create one manually viaFlexCostAllocationCidrMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprefixes(List<FlexCostAllocationCidrMapping>).- Parameters:
prefixes- a consumer that will call methods onFlexCostAllocationCidrMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-