Interface GetCostAndUsageResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCostAndUsageResponse.Builder,GetCostAndUsageResponse>,CostExplorerResponse.Builder,SdkBuilder<GetCostAndUsageResponse.Builder,GetCostAndUsageResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetCostAndUsageResponse
public static interface GetCostAndUsageResponse.Builder extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetCostAndUsageResponse.Builder,GetCostAndUsageResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetCostAndUsageResponse.BuilderdimensionValueAttributes(Collection<DimensionValuesWithAttributes> dimensionValueAttributes)The attributes that apply to a specific dimension value.GetCostAndUsageResponse.BuilderdimensionValueAttributes(Consumer<DimensionValuesWithAttributes.Builder>... dimensionValueAttributes)The attributes that apply to a specific dimension value.GetCostAndUsageResponse.BuilderdimensionValueAttributes(DimensionValuesWithAttributes... dimensionValueAttributes)The attributes that apply to a specific dimension value.GetCostAndUsageResponse.BuildergroupDefinitions(Collection<GroupDefinition> groupDefinitions)The groups that are specified by theFilterorGroupByparameters in the request.GetCostAndUsageResponse.BuildergroupDefinitions(Consumer<GroupDefinition.Builder>... groupDefinitions)The groups that are specified by theFilterorGroupByparameters in the request.GetCostAndUsageResponse.BuildergroupDefinitions(GroupDefinition... groupDefinitions)The groups that are specified by theFilterorGroupByparameters in the request.GetCostAndUsageResponse.BuildernextPageToken(String nextPageToken)The token for the next set of retrievable results.GetCostAndUsageResponse.BuilderresultsByTime(Collection<ResultByTime> resultsByTime)The time period that's covered by the results in the response.GetCostAndUsageResponse.BuilderresultsByTime(Consumer<ResultByTime.Builder>... resultsByTime)The time period that's covered by the results in the response.GetCostAndUsageResponse.BuilderresultsByTime(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 Detail
-
nextPageToken
GetCostAndUsageResponse.Builder nextPageToken(String 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
GetCostAndUsageResponse.Builder groupDefinitions(Collection<GroupDefinition> groupDefinitions)
The groups that are specified by the
FilterorGroupByparameters in the request.- Parameters:
groupDefinitions- The groups that are specified by theFilterorGroupByparameters in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupDefinitions
GetCostAndUsageResponse.Builder groupDefinitions(GroupDefinition... groupDefinitions)
The groups that are specified by the
FilterorGroupByparameters in the request.- Parameters:
groupDefinitions- The groups that are specified by theFilterorGroupByparameters in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupDefinitions
GetCostAndUsageResponse.Builder groupDefinitions(Consumer<GroupDefinition.Builder>... groupDefinitions)
The groups that are specified by the
This is a convenience method that creates an instance of theFilterorGroupByparameters in the request.GroupDefinition.Builderavoiding the need to create one manually viaGroupDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#groupDefinitions(List.) - 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:
#groupDefinitions(java.util.Collection)
-
resultsByTime
GetCostAndUsageResponse.Builder resultsByTime(Collection<ResultByTime> 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
GetCostAndUsageResponse.Builder resultsByTime(ResultByTime... 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
GetCostAndUsageResponse.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.Builderavoiding the need to create one manually viaResultByTime.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resultsByTime(List.) - 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:
#resultsByTime(java.util.Collection)
-
dimensionValueAttributes
GetCostAndUsageResponse.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
GetCostAndUsageResponse.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
GetCostAndUsageResponse.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.Builderavoiding the need to create one manually viaDimensionValuesWithAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#dimensionValueAttributes(List.) - 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:
#dimensionValueAttributes(java.util.Collection)
-
-