@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListProtectionsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListProtectionsResult() |
Modifier and Type | Method and Description |
---|---|
ListProtectionsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
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> |
getProtections()
The array of enabled Protection objects.
|
int |
hashCode() |
void |
setNextToken(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. |
void |
setProtections(Collection<Protection> protections)
The array of enabled Protection objects.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ListProtectionsResult |
withNextToken(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. |
ListProtectionsResult |
withProtections(Collection<Protection> protections)
The array of enabled Protection objects.
|
ListProtectionsResult |
withProtections(Protection... protections)
The array of enabled Protection objects.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Protection> getProtections()
The array of enabled Protection objects.
public void setProtections(Collection<Protection> protections)
The array of enabled Protection objects.
protections
- The array of enabled Protection objects.public ListProtectionsResult withProtections(Protection... protections)
The array of enabled Protection objects.
NOTE: This method appends the values to the existing list (if any). Use
setProtections(java.util.Collection)
or withProtections(java.util.Collection)
if you want to
override the existing values.
protections
- The array of enabled Protection objects.public ListProtectionsResult withProtections(Collection<Protection> protections)
The array of enabled Protection objects.
protections
- The array of enabled Protection objects.public void setNextToken(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.
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.public String getNextToken()
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.
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.public ListProtectionsResult withNextToken(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.
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.public String toString()
toString
in class Object
Object.toString()
public ListProtectionsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.