@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.
|
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.
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
.
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
.
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.
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 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.
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
.
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
.
public String toString()
toString
in class Object
Object.toString()
public ListProtectionsResult clone()