Interface ListMetricsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListMetricsRequest.Builder,ListMetricsRequest>,ResiliencehubRequest.Builder,SdkBuilder<ListMetricsRequest.Builder,ListMetricsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListMetricsRequest
public static interface ListMetricsRequest.Builder extends ResiliencehubRequest.Builder, SdkPojo, CopyableBuilder<ListMetricsRequest.Builder,ListMetricsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListMetricsRequest.Builderconditions(Collection<Condition> conditions)Indicates the list of all the conditions that were applied on the metrics.ListMetricsRequest.Builderconditions(Consumer<Condition.Builder>... conditions)Indicates the list of all the conditions that were applied on the metrics.ListMetricsRequest.Builderconditions(Condition... conditions)Indicates the list of all the conditions that were applied on the metrics.ListMetricsRequest.BuilderdataSource(String dataSource)Indicates the data source of the metrics.ListMetricsRequest.Builderfields(Collection<Field> fields)Indicates the list of fields in the data source.ListMetricsRequest.Builderfields(Consumer<Field.Builder>... fields)Indicates the list of fields in the data source.ListMetricsRequest.Builderfields(Field... fields)Indicates the list of fields in the data source.ListMetricsRequest.BuildermaxResults(Integer maxResults)Maximum number of results to include in the response.ListMetricsRequest.BuildernextToken(String nextToken)Null, or the token from a previous call to get the next set of results.ListMetricsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListMetricsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ListMetricsRequest.Buildersorts(Collection<Sort> sorts)(Optional) Indicates the order in which you want to sort the fields in the metrics.ListMetricsRequest.Buildersorts(Consumer<Sort.Builder>... sorts)(Optional) Indicates the order in which you want to sort the fields in the metrics.ListMetricsRequest.Buildersorts(Sort... sorts)(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 Detail
-
conditions
ListMetricsRequest.Builder conditions(Collection<Condition> 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
ListMetricsRequest.Builder conditions(Condition... 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
ListMetricsRequest.Builder conditions(Consumer<Condition.Builder>... 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.Builderavoiding the need to create one manually viaCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#conditions(List.) - 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:
#conditions(java.util.Collection)
-
dataSource
ListMetricsRequest.Builder dataSource(String 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
ListMetricsRequest.Builder fields(Collection<Field> 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
ListMetricsRequest.Builder fields(Field... 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
ListMetricsRequest.Builder fields(Consumer<Field.Builder>... fields)
Indicates the list of fields in the data source.
This is a convenience method that creates an instance of theField.Builderavoiding the need to create one manually viaField.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#fields(List.) - 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:
#fields(java.util.Collection)
-
maxResults
ListMetricsRequest.Builder maxResults(Integer maxResults)
Maximum number of results to include in the response. If more results exist than the specified
MaxResultsvalue, 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 specifiedMaxResultsvalue, 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
ListMetricsRequest.Builder nextToken(String 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
ListMetricsRequest.Builder sorts(Collection<Sort> 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
ListMetricsRequest.Builder sorts(Sort... 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
ListMetricsRequest.Builder sorts(Consumer<Sort.Builder>... 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.Builderavoiding the need to create one manually viaSort.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sorts(List.) - 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:
#sorts(java.util.Collection)
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListMetricsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-