@Generated(value="software.amazon.awssdk:codegen") public final class ListRecommendationsRequest extends SesV2Request implements ToCopyableBuilder<ListRecommendationsRequest.Builder,ListRecommendationsRequest>
Represents a request to list the existing recommendations for your account.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListRecommendationsRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ListRecommendationsRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<ListRecommendationsFilterKey,String> |
filter()
Filters applied when retrieving recommendations.
|
Map<String,String> |
filterAsStrings()
Filters applied when retrieving recommendations.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFilter()
For responses, this returns true if the service returned a value for the Filter property.
|
int |
hashCode() |
String |
nextToken()
A token returned from a previous call to
ListRecommendations to indicate the position in the list of
recommendations. |
Integer |
pageSize()
The number of results to show in a single call to
ListRecommendations. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ListRecommendationsRequest.Builder> |
serializableBuilderClass() |
ListRecommendationsRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Map<ListRecommendationsFilterKey,String> filter()
Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of
STATUS and IMPACT or STATUS and TYPE
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFilter() method.
STATUS and IMPACT or STATUS and TYPEpublic final boolean hasFilter()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> filterAsStrings()
Filters applied when retrieving recommendations. Can eiter be an individual filter, or combinations of
STATUS and IMPACT or STATUS and TYPE
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFilter() method.
STATUS and IMPACT or STATUS and TYPEpublic final String nextToken()
A token returned from a previous call to ListRecommendations to indicate the position in the list of
recommendations.
ListRecommendations to indicate the position in the
list of recommendations.public final Integer pageSize()
The number of results to show in a single call to ListRecommendations. If the number of results is
larger than the number you specified in this parameter, then the response includes a NextToken
element, which you can use to obtain additional results.
The value you specify has to be at least 1, and can be no more than 100.
ListRecommendations. If the number of
results is larger than the number you specified in this parameter, then the response includes a
NextToken element, which you can use to obtain additional results.
The value you specify has to be at least 1, and can be no more than 100.
public ListRecommendationsRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ListRecommendationsRequest.Builder,ListRecommendationsRequest>toBuilder in class SesV2Requestpublic static ListRecommendationsRequest.Builder builder()
public static Class<? extends ListRecommendationsRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.