@Generated(value="software.amazon.awssdk:codegen") public final class ListProtectionsResponse extends ShieldResponse implements ToCopyableBuilder<ListProtectionsResponse.Builder,ListProtectionsResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListProtectionsResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ListProtectionsResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProtections()
Returns true if the Protections property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
nextToken()
If you specify a value for
MaxResults and you have more Protections than the value of MaxResults,
AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of
Protections. |
List<Protection> |
protections()
The array of enabled Protection objects.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ListProtectionsResponse.Builder> |
serializableBuilderClass() |
ListProtectionsResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasProtections()
public final List<Protection> protections()
The array of enabled Protection objects.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasProtections() to see if a value was sent in this field.
public final String nextToken()
If you specify a value for MaxResults and you have more Protections than the value of MaxResults,
AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of
Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the
previous response to get information about another batch of Protections.
Shield Advanced might return the list of Protection objects in batches smaller than the number specified
by MaxResults. If there are more Protection objects to return, Shield Advanced will always also return a
NextToken.
MaxResults and you have more Protections than the value of
MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another
group of Protections. For the second and subsequent ListProtections requests, specify the value of
NextToken from the previous response to get information about another batch of Protections.
Shield Advanced might return the list of Protection objects in batches smaller than the number
specified by MaxResults. If there are more Protection objects to return, Shield Advanced will
always also return a NextToken.
public ListProtectionsResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ListProtectionsResponse.Builder,ListProtectionsResponse>toBuilder in class AwsResponsepublic static ListProtectionsResponse.Builder builder()
public static Class<? extends ListProtectionsResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic 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 SdkResponseCopyright © 2021. All rights reserved.