Interface GetAnomalySubscriptionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetAnomalySubscriptionsResponse.Builder,,GetAnomalySubscriptionsResponse> CostExplorerResponse.Builder,SdkBuilder<GetAnomalySubscriptionsResponse.Builder,,GetAnomalySubscriptionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAnomalySubscriptionsResponse
@Mutable
@NotThreadSafe
public static interface GetAnomalySubscriptionsResponse.Builder
extends CostExplorerResponse.Builder, SdkPojo, CopyableBuilder<GetAnomalySubscriptionsResponse.Builder,GetAnomalySubscriptionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionanomalySubscriptions(Collection<AnomalySubscription> anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.anomalySubscriptions(Consumer<AnomalySubscription.Builder>... anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.anomalySubscriptions(AnomalySubscription... anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.nextPageToken(String nextPageToken) The token to retrieve the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.costexplorer.model.CostExplorerResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
anomalySubscriptions
GetAnomalySubscriptionsResponse.Builder anomalySubscriptions(Collection<AnomalySubscription> anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.
- Parameters:
anomalySubscriptions- A list of cost anomaly subscriptions that includes the detailed metadata for each one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalySubscriptions
GetAnomalySubscriptionsResponse.Builder anomalySubscriptions(AnomalySubscription... anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.
- Parameters:
anomalySubscriptions- A list of cost anomaly subscriptions that includes the detailed metadata for each one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anomalySubscriptions
GetAnomalySubscriptionsResponse.Builder anomalySubscriptions(Consumer<AnomalySubscription.Builder>... anomalySubscriptions) A list of cost anomaly subscriptions that includes the detailed metadata for each one.
This is a convenience method that creates an instance of theAnomalySubscription.Builderavoiding the need to create one manually viaAnomalySubscription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanomalySubscriptions(List<AnomalySubscription>).- Parameters:
anomalySubscriptions- a consumer that will call methods onAnomalySubscription.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.
-