Interface ListMetricsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ListMetricsRequest.Builder,
,ListMetricsRequest> ResiliencehubRequest.Builder
,SdkBuilder<ListMetricsRequest.Builder,
,ListMetricsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ListMetricsRequest
-
Method Summary
Modifier and TypeMethodDescriptionconditions
(Collection<Condition> conditions) Indicates the list of all the conditions that were applied on the metrics.conditions
(Consumer<Condition.Builder>... conditions) Indicates the list of all the conditions that were applied on the metrics.conditions
(Condition... conditions) Indicates the list of all the conditions that were applied on the metrics.dataSource
(String dataSource) Indicates the data source of the metrics.fields
(Collection<Field> fields) Indicates the list of fields in the data source.fields
(Consumer<Field.Builder>... fields) Indicates the list of fields in the data source.Indicates the list of fields in the data source.maxResults
(Integer maxResults) Maximum number of results to include in the response.Null, or the token from a previous call to get the next set of results.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.sorts
(Collection<Sort> sorts) (Optional) Indicates the order in which you want to sort the fields in the metrics.sorts
(Consumer<Sort.Builder>... sorts) (Optional) Indicates the order in which you want to sort the fields in the metrics.(Optional) Indicates the order in which you want to sort the fields in the metrics.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.resiliencehub.model.ResiliencehubRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
conditions
Indicates the list of all the conditions that were applied on the metrics.
- Parameters:
conditions
- Indicates the list of all the conditions that were applied on the metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Indicates the list of all the conditions that were applied on the metrics.
- Parameters:
conditions
- Indicates the list of all the conditions that were applied on the metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditions
Indicates the list of all the conditions that were applied on the metrics.
This is a convenience method that creates an instance of theCondition.Builder
avoiding the need to create one manually viaCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditions(List<Condition>)
.- Parameters:
conditions
- a consumer that will call methods onCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataSource
Indicates the data source of the metrics.
- Parameters:
dataSource
- Indicates the data source of the metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
Indicates the list of fields in the data source.
- Parameters:
fields
- Indicates the list of fields in the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
Indicates the list of fields in the data source.
- Parameters:
fields
- Indicates the list of fields in the data source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fields
Indicates the list of fields in the data source.
This is a convenience method that creates an instance of theField.Builder
avoiding the need to create one manually viaField.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofields(List<Field>)
.- Parameters:
fields
- a consumer that will call methods onField.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxResults
Maximum number of results to include in the response. If more results exist than the specified
MaxResults
value, a token is included in the response so that the remaining results can be retrieved.- Parameters:
maxResults
- Maximum number of results to include in the response. If more results exist than the specifiedMaxResults
value, a token is included in the response so that the remaining results can be retrieved.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
Null, or the token from a previous call to get the next set of results.
- Parameters:
nextToken
- Null, or the token from a previous call to get the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sorts
(Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
- Parameters:
sorts
- (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sorts
(Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
- Parameters:
sorts
- (Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sorts
(Optional) Indicates the order in which you want to sort the fields in the metrics. By default, the fields are sorted in the ascending order.
This is a convenience method that creates an instance of theSort.Builder
avoiding the need to create one manually viaSort.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosorts(List<Sort>)
.- Parameters:
sorts
- a consumer that will call methods onSort.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-