Interface NatFlexCostAllocationPolicyDocument.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NatFlexCostAllocationPolicyDocument.Builder,,NatFlexCostAllocationPolicyDocument> SdkBuilder<NatFlexCostAllocationPolicyDocument.Builder,,NatFlexCostAllocationPolicyDocument> SdkPojo
- Enclosing class:
NatFlexCostAllocationPolicyDocument
-
Method Summary
Modifier and TypeMethodDescriptioncidrRangeSpecifications(Consumer<FlexCostAllocationCidrRangeSpecifications.Builder> cidrRangeSpecifications) The CIDR range mappings to use for cost allocation.cidrRangeSpecifications(FlexCostAllocationCidrRangeSpecifications cidrRangeSpecifications) The CIDR range mappings to use for cost allocation.dimensions(Collection<FlexCostAllocationCostDimension> dimensions) The cost dimensions to report.dimensions(FlexCostAllocationCostDimension... dimensions) The cost dimensions to report.dimensionsWithStrings(String... dimensions) The cost dimensions to report.dimensionsWithStrings(Collection<String> dimensions) The cost dimensions to report.reportingGranularity(Collection<FlexCostAllocationReportingGranularity> reportingGranularity) The resource granularity level at which networking costs are allocated.reportingGranularity(FlexCostAllocationReportingGranularity... reportingGranularity) The resource granularity level at which networking costs are allocated.reportingGranularityWithStrings(String... reportingGranularity) The resource granularity level at which networking costs are allocated.reportingGranularityWithStrings(Collection<String> reportingGranularity) The resource granularity level at which networking costs are allocated.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
-
reportingGranularityWithStrings
NatFlexCostAllocationPolicyDocument.Builder reportingGranularityWithStrings(Collection<String> reportingGranularity) The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values are
eni,ec2,subnet,vpc,account, andcidr.- Parameters:
reportingGranularity- The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values areeni,ec2,subnet,vpc,account, andcidr.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportingGranularityWithStrings
NatFlexCostAllocationPolicyDocument.Builder reportingGranularityWithStrings(String... reportingGranularity) The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values are
eni,ec2,subnet,vpc,account, andcidr.- Parameters:
reportingGranularity- The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values areeni,ec2,subnet,vpc,account, andcidr.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportingGranularity
NatFlexCostAllocationPolicyDocument.Builder reportingGranularity(Collection<FlexCostAllocationReportingGranularity> reportingGranularity) The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values are
eni,ec2,subnet,vpc,account, andcidr.- Parameters:
reportingGranularity- The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values areeni,ec2,subnet,vpc,account, andcidr.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportingGranularity
NatFlexCostAllocationPolicyDocument.Builder reportingGranularity(FlexCostAllocationReportingGranularity... reportingGranularity) The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values are
eni,ec2,subnet,vpc,account, andcidr.- Parameters:
reportingGranularity- The resource granularity level at which networking costs are allocated. This parameter is required. Specify exactly one value. Valid values areeni,ec2,subnet,vpc,account, andcidr.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionsWithStrings
The cost dimensions to report. This parameter is required. Valid values are
data-transferanddata-processing.- Parameters:
dimensions- The cost dimensions to report. This parameter is required. Valid values aredata-transferanddata-processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionsWithStrings
The cost dimensions to report. This parameter is required. Valid values are
data-transferanddata-processing.- Parameters:
dimensions- The cost dimensions to report. This parameter is required. Valid values aredata-transferanddata-processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
NatFlexCostAllocationPolicyDocument.Builder dimensions(Collection<FlexCostAllocationCostDimension> dimensions) The cost dimensions to report. This parameter is required. Valid values are
data-transferanddata-processing.- Parameters:
dimensions- The cost dimensions to report. This parameter is required. Valid values aredata-transferanddata-processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensions
NatFlexCostAllocationPolicyDocument.Builder dimensions(FlexCostAllocationCostDimension... dimensions) The cost dimensions to report. This parameter is required. Valid values are
data-transferanddata-processing.- Parameters:
dimensions- The cost dimensions to report. This parameter is required. Valid values aredata-transferanddata-processing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrRangeSpecifications
NatFlexCostAllocationPolicyDocument.Builder cidrRangeSpecifications(FlexCostAllocationCidrRangeSpecifications cidrRangeSpecifications) The CIDR range mappings to use for cost allocation. Specify this value when
ReportingGranularityiscidr, and omit it otherwise.- Parameters:
cidrRangeSpecifications- The CIDR range mappings to use for cost allocation. Specify this value whenReportingGranularityiscidr, and omit it otherwise.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrRangeSpecifications
default NatFlexCostAllocationPolicyDocument.Builder cidrRangeSpecifications(Consumer<FlexCostAllocationCidrRangeSpecifications.Builder> cidrRangeSpecifications) The CIDR range mappings to use for cost allocation. Specify this value when
This is a convenience method that creates an instance of theReportingGranularityiscidr, and omit it otherwise.FlexCostAllocationCidrRangeSpecifications.Builderavoiding the need to create one manually viaFlexCostAllocationCidrRangeSpecifications.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocidrRangeSpecifications(FlexCostAllocationCidrRangeSpecifications).- Parameters:
cidrRangeSpecifications- a consumer that will call methods onFlexCostAllocationCidrRangeSpecifications.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-