Interface ListWhatIfAnalysesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListWhatIfAnalysesRequest.Builder,,ListWhatIfAnalysesRequest> ForecastRequest.Builder,SdkBuilder<ListWhatIfAnalysesRequest.Builder,,ListWhatIfAnalysesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ListWhatIfAnalysesRequest
-
Method Summary
Modifier and TypeMethodDescriptionfilters(Collection<Filter> filters) An array of filters.filters(Consumer<Filter.Builder>... filters) An array of filters.An array of filters.maxResults(Integer maxResults) The number of items to return in the response.If the result of the previous request was truncated, the response includes aNextToken.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.forecast.model.ForecastRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
The number of items to return in the response.
- Parameters:
maxResults- The number of items to return in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filters
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. To include the what-if analysis jobs that match the statement, specifyIS. To exclude matching what-if analysis jobs, specifyIS_NOT. -
Key- The name of the parameter to filter on. Valid values areWhatIfAnalysisArnandStatus. -
Value- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]- Parameters:
filters- An array of filters. For each filter, you provide a condition and a match statement. The condition is eitherISorIS_NOT, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. To include the what-if analysis jobs that match the statement, specifyIS. To exclude matching what-if analysis jobs, specifyIS_NOT. -
Key- The name of the parameter to filter on. Valid values areWhatIfAnalysisArnandStatus. -
Value- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. To include the what-if analysis jobs that match the statement, specifyIS. To exclude matching what-if analysis jobs, specifyIS_NOT. -
Key- The name of the parameter to filter on. Valid values areWhatIfAnalysisArnandStatus. -
Value- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]- Parameters:
filters- An array of filters. For each filter, you provide a condition and a match statement. The condition is eitherISorIS_NOT, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. To include the what-if analysis jobs that match the statement, specifyIS. To exclude matching what-if analysis jobs, specifyIS_NOT. -
Key- The name of the parameter to filter on. Valid values areWhatIfAnalysisArnandStatus. -
Value- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
filters
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
ISorIS_NOT, which specifies whether to include or exclude the what-if analysis jobs that match the statement from the list, respectively. The match statement consists of a key and a value.Filter properties
-
Condition- The condition to apply. Valid values areISandIS_NOT. To include the what-if analysis jobs that match the statement, specifyIS. To exclude matching what-if analysis jobs, specifyIS_NOT. -
Key- The name of the parameter to filter on. Valid values areWhatIfAnalysisArnandStatus. -
Value- The value to match.
For example, to list all jobs that export a forecast named electricityWhatIf, specify the following filter:
This is a convenience method that creates an instance of the"Filters": [ { "Condition": "IS", "Key": "WhatIfAnalysisArn", "Value": "arn:aws:forecast:us-west-2:<acct-id>:forecast/electricityWhatIf" } ]Filter.Builderavoiding the need to create one manually viaFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilters(List<Filter>).- 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:
-
-
overrideConfiguration
ListWhatIfAnalysesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ListWhatIfAnalysesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-