Interface GetAnomaliesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetAnomaliesResponse.Builder,
,GetAnomaliesResponse> CostExplorerResponse.Builder
,SdkBuilder<GetAnomaliesResponse.Builder,
,GetAnomaliesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetAnomaliesResponse
@Mutable
@NotThreadSafe
public static interface GetAnomaliesResponse.Builder
extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetAnomaliesResponse.Builder,GetAnomaliesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionanomalies
(Collection<Anomaly> anomalies) A list of cost anomalies.anomalies
(Consumer<Anomaly.Builder>... anomalies) A list of cost anomalies.A list of cost anomalies.nextPageToken
(String nextPageToken) The token to retrieve the next set of results.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
anomalies
A list of cost anomalies.
- Parameters:
anomalies
- A list of cost anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
A list of cost anomalies.
- Parameters:
anomalies
- A list of cost anomalies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalies
A list of cost anomalies.
This is a convenience method that creates an instance of theAnomaly.Builder
avoiding the need to create one manually viaAnomaly.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toanomalies(List<Anomaly>)
.- Parameters:
anomalies
- a consumer that will call methods onAnomaly.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextPageToken
The token to retrieve the next set of 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 to retrieve the next set of 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.
-