Interface GetCostAndUsageWithResourcesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCostAndUsageWithResourcesResponse.Builder,
,GetCostAndUsageWithResourcesResponse> CostExplorerResponse.Builder
,SdkBuilder<GetCostAndUsageWithResourcesResponse.Builder,
,GetCostAndUsageWithResourcesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCostAndUsageWithResourcesResponse
-
Method Summary
Modifier and TypeMethodDescriptiondimensionValueAttributes
(Collection<DimensionValuesWithAttributes> dimensionValueAttributes) The attributes that apply to a specific dimension value.dimensionValueAttributes
(Consumer<DimensionValuesWithAttributes.Builder>... dimensionValueAttributes) The attributes that apply to a specific dimension value.dimensionValueAttributes
(DimensionValuesWithAttributes... dimensionValueAttributes) The attributes that apply to a specific dimension value.groupDefinitions
(Collection<GroupDefinition> groupDefinitions) The groups that are specified by theFilter
orGroupBy
parameters in the request.groupDefinitions
(Consumer<GroupDefinition.Builder>... groupDefinitions) The groups that are specified by theFilter
orGroupBy
parameters in the request.groupDefinitions
(GroupDefinition... groupDefinitions) The groups that are specified by theFilter
orGroupBy
parameters in the request.nextPageToken
(String nextPageToken) The token for the next set of retrievable results.resultsByTime
(Collection<ResultByTime> resultsByTime) The time period that's covered by the results in the response.resultsByTime
(Consumer<ResultByTime.Builder>... resultsByTime) The time period that's covered by the results in the response.resultsByTime
(ResultByTime... resultsByTime) The time period that's covered by the results in the response.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextPageToken
The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
- Parameters:
nextPageToken
- The token for the next set of retrievable results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupDefinitions
GetCostAndUsageWithResourcesResponse.Builder groupDefinitions(Collection<GroupDefinition> groupDefinitions) The groups that are specified by the
Filter
orGroupBy
parameters in the request.- Parameters:
groupDefinitions
- The groups that are specified by theFilter
orGroupBy
parameters in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupDefinitions
The groups that are specified by the
Filter
orGroupBy
parameters in the request.- Parameters:
groupDefinitions
- The groups that are specified by theFilter
orGroupBy
parameters in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupDefinitions
GetCostAndUsageWithResourcesResponse.Builder groupDefinitions(Consumer<GroupDefinition.Builder>... groupDefinitions) The groups that are specified by the
This is a convenience method that creates an instance of theFilter
orGroupBy
parameters in the request.GroupDefinition.Builder
avoiding the need to create one manually viaGroupDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togroupDefinitions(List<GroupDefinition>)
.- Parameters:
groupDefinitions
- a consumer that will call methods onGroupDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resultsByTime
The time period that's covered by the results in the response.
- Parameters:
resultsByTime
- The time period that's covered by the results in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultsByTime
The time period that's covered by the results in the response.
- Parameters:
resultsByTime
- The time period that's covered by the results in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultsByTime
GetCostAndUsageWithResourcesResponse.Builder resultsByTime(Consumer<ResultByTime.Builder>... resultsByTime) The time period that's covered by the results in the response.
This is a convenience method that creates an instance of theResultByTime.Builder
avoiding the need to create one manually viaResultByTime.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultsByTime(List<ResultByTime>)
.- Parameters:
resultsByTime
- a consumer that will call methods onResultByTime.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dimensionValueAttributes
GetCostAndUsageWithResourcesResponse.Builder dimensionValueAttributes(Collection<DimensionValuesWithAttributes> dimensionValueAttributes) The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.
- Parameters:
dimensionValueAttributes
- The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionValueAttributes
GetCostAndUsageWithResourcesResponse.Builder dimensionValueAttributes(DimensionValuesWithAttributes... dimensionValueAttributes) The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.
- Parameters:
dimensionValueAttributes
- The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionValueAttributes
GetCostAndUsageWithResourcesResponse.Builder dimensionValueAttributes(Consumer<DimensionValuesWithAttributes.Builder>... dimensionValueAttributes) The attributes that apply to a specific dimension value. For example, if the value is a linked account, the attribute is that account name.
This is a convenience method that creates an instance of theDimensionValuesWithAttributes.Builder
avoiding the need to create one manually viaDimensionValuesWithAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimensionValueAttributes(List<DimensionValuesWithAttributes>)
.- Parameters:
dimensionValueAttributes
- a consumer that will call methods onDimensionValuesWithAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-