@Generated(value="software.amazon.awssdk:codegen") public final class ListForecastsRequest extends ForecastRequest implements ToCopyableBuilder<ListForecastsRequest.Builder,ListForecastsRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListForecastsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ListForecastsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<Filter> |
filters()
An array of filters.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFilters()
Returns true if the Filters property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
Integer |
maxResults()
The number of items to return in the response.
|
String |
nextToken()
If the result of the previous request was truncated, the response includes a
NextToken. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ListForecastsRequest.Builder> |
serializableBuilderClass() |
ListForecastsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
NextToken. To
retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.public Integer maxResults()
The number of items to return in the response.
public boolean hasFilters()
public List<Filter> filters()
An array of filters. For each filter, you provide a condition and a match statement. The condition is either
IS or IS_NOT, which specifies whether to include or exclude the forecasts 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 are IS and IS_NOT. To
include the forecasts that match the statement, specify IS. To exclude matching forecasts, specify
IS_NOT.
Key - The name of the parameter to filter on. Valid values are DatasetGroupArn,
PredictorArn, and Status.
Value - The value to match.
For example, to list all forecasts whose status is not ACTIVE, you would specify:
"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFilters() to see if a value was sent in this field.
IS or IS_NOT, which specifies whether to include or exclude the
forecasts 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 are IS and IS_NOT
. To include the forecasts that match the statement, specify IS. To exclude matching
forecasts, specify IS_NOT.
Key - The name of the parameter to filter on. Valid values are DatasetGroupArn,
PredictorArn, and Status.
Value - The value to match.
For example, to list all forecasts whose status is not ACTIVE, you would specify:
"Filters": [ { "Condition": "IS_NOT", "Key": "Status", "Value": "ACTIVE" } ]
public ListForecastsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ListForecastsRequest.Builder,ListForecastsRequest>toBuilder in class ForecastRequestpublic static ListForecastsRequest.Builder builder()
public static Class<? extends ListForecastsRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.