Interface ListMonitorEvaluationsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListMonitorEvaluationsRequest.Builder,ListMonitorEvaluationsRequest>,ForecastRequest.Builder,SdkBuilder<ListMonitorEvaluationsRequest.Builder,ListMonitorEvaluationsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListMonitorEvaluationsRequest
public static interface ListMonitorEvaluationsRequest.Builder extends ForecastRequest.Builder, SdkPojo, CopyableBuilder<ListMonitorEvaluationsRequest.Builder,ListMonitorEvaluationsRequest>
-
-
Method Summary
-
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.forecast.model.ForecastRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
nextToken
ListMonitorEvaluationsRequest.Builder nextToken(String nextToken)
If the result of the previous request was truncated, the response includes a
NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.- Parameters:
nextToken- If the result of the previous request was truncated, the response includes aNextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
ListMonitorEvaluationsRequest.Builder maxResults(Integer maxResults)
The maximum number of monitoring results to return.
- Parameters:
maxResults- The maximum number of monitoring results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
monitorArn
ListMonitorEvaluationsRequest.Builder monitorArn(String monitorArn)
The Amazon Resource Name (ARN) of the monitor resource to get results from.
- Parameters:
monitorArn- The Amazon Resource Name (ARN) of the monitor resource to get results from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
ListMonitorEvaluationsRequest.Builder filters(Collection<Filter> filters)
An array of filters. For each filter, provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. -
Key- The name of the parameter to filter on. The only valid value isEvaluationState. -
Value- The value to match. Valid values are onlySUCCESSorFAILURE.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]- Parameters:
filters- An array of filters. For each filter, provide a condition and a match statement. The condition is eitherISorIS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. -
Key- The name of the parameter to filter on. The only valid value isEvaluationState. -
Value- The value to match. Valid values are onlySUCCESSorFAILURE.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
ListMonitorEvaluationsRequest.Builder filters(Filter... filters)
An array of filters. For each filter, provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. -
Key- The name of the parameter to filter on. The only valid value isEvaluationState. -
Value- The value to match. Valid values are onlySUCCESSorFAILURE.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]- Parameters:
filters- An array of filters. For each filter, provide a condition and a match statement. The condition is eitherISorIS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. -
Key- The name of the parameter to filter on. The only valid value isEvaluationState. -
Value- The value to match. Valid values are onlySUCCESSorFAILURE.
For example, to list only successful monitor evaluations, you would specify:
"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
ListMonitorEvaluationsRequest.Builder filters(Consumer<Filter.Builder>... filters)
An array of filters. For each filter, provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. -
Key- The name of the parameter to filter on. The only valid value isEvaluationState. -
Value- The value to match. Valid values are onlySUCCESSorFAILURE.
For example, to list only successful monitor evaluations, you would specify:
This is a convenience method that creates an instance of the"Filters": [ { "Condition": "IS", "Key": "EvaluationState", "Value": "SUCCESS" } ]Filter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#filters(List.) - Parameters:
filters- a consumer that will call methods onFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#filters(java.util.Collection)
-
-
overrideConfiguration
ListMonitorEvaluationsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListMonitorEvaluationsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-