@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListAttacksRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
ListAttacksRequest() |
| Modifier and Type | Method and Description |
|---|---|
ListAttacksRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
TimeRange |
getEndTime()
The end of the time period for the attacks.
|
Integer |
getMaxResults()
The maximum number of AttackSummary objects to return.
|
String |
getNextToken()
The
ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. |
List<String> |
getResourceArns()
The ARN (Amazon Resource Name) of the resource that was attacked.
|
TimeRange |
getStartTime()
The start of the time period for the attacks.
|
int |
hashCode() |
void |
setEndTime(TimeRange endTime)
The end of the time period for the attacks.
|
void |
setMaxResults(Integer maxResults)
The maximum number of AttackSummary objects to return.
|
void |
setNextToken(String nextToken)
The
ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. |
void |
setResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked.
|
void |
setStartTime(TimeRange startTime)
The start of the time period for the attacks.
|
String |
toString()
Returns a string representation of this object.
|
ListAttacksRequest |
withEndTime(TimeRange endTime)
The end of the time period for the attacks.
|
ListAttacksRequest |
withMaxResults(Integer maxResults)
The maximum number of AttackSummary objects to return.
|
ListAttacksRequest |
withNextToken(String nextToken)
The
ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest. |
ListAttacksRequest |
withResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked.
|
ListAttacksRequest |
withResourceArns(String... resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked.
|
ListAttacksRequest |
withStartTime(TimeRange startTime)
The start of the time period for the attacks.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic List<String> getResourceArns()
The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
public void setResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
resourceArns - The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable
resources for this account will be included.public ListAttacksRequest withResourceArns(String... resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection) or withResourceArns(java.util.Collection) if you want to
override the existing values.
resourceArns - The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable
resources for this account will be included.public ListAttacksRequest withResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
resourceArns - The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable
resources for this account will be included.public void setStartTime(TimeRange startTime)
The start of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
startTime - The start of the time period for the attacks. This is a timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public TimeRange getStartTime()
The start of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public ListAttacksRequest withStartTime(TimeRange startTime)
The start of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
startTime - The start of the time period for the attacks. This is a timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public void setEndTime(TimeRange endTime)
The end of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
endTime - The end of the time period for the attacks. This is a timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public TimeRange getEndTime()
The end of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public ListAttacksRequest withEndTime(TimeRange endTime)
The end of the time period for the attacks. This is a timestamp type. The sample request above
indicates a number type because the default used by WAF is Unix time in seconds. However any valid
timestamp
format is allowed.
endTime - The end of the time period for the attacks. This is a timestamp type. The sample request
above indicates a number type because the default used by WAF is Unix time in seconds.
However any valid timestamp
format is allowed.public void setNextToken(String nextToken)
The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest.
Pass null if this is the first call.
nextToken - The ListAttacksRequest.NextMarker value from a previous call to
ListAttacksRequest. Pass null if this is the first call.public String getNextToken()
The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest.
Pass null if this is the first call.
ListAttacksRequest.NextMarker value from a previous call to
ListAttacksRequest. Pass null if this is the first call.public ListAttacksRequest withNextToken(String nextToken)
The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest.
Pass null if this is the first call.
nextToken - The ListAttacksRequest.NextMarker value from a previous call to
ListAttacksRequest. Pass null if this is the first call.public void setMaxResults(Integer maxResults)
The maximum number of AttackSummary objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of
objects returned could be less than MaxResults, even if there are still more objects yet to return.
If there are more objects to return, Shield Advanced returns a value in NextToken that you can use
in your next request, to get the next batch of objects.
maxResults - The maximum number of AttackSummary objects to return. If you leave this blank, Shield Advanced
returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number
of objects returned could be less than MaxResults, even if there are still more objects yet
to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
public Integer getMaxResults()
The maximum number of AttackSummary objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of
objects returned could be less than MaxResults, even if there are still more objects yet to return.
If there are more objects to return, Shield Advanced returns a value in NextToken that you can use
in your next request, to get the next batch of objects.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number
of objects returned could be less than MaxResults, even if there are still more objects yet
to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
public ListAttacksRequest withMaxResults(Integer maxResults)
The maximum number of AttackSummary objects to return. If you leave this blank, Shield Advanced returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number of
objects returned could be less than MaxResults, even if there are still more objects yet to return.
If there are more objects to return, Shield Advanced returns a value in NextToken that you can use
in your next request, to get the next batch of objects.
maxResults - The maximum number of AttackSummary objects to return. If you leave this blank, Shield Advanced
returns the first 20 results.
This is a maximum value. Shield Advanced might return the results in smaller batches. That is, the number
of objects returned could be less than MaxResults, even if there are still more objects yet
to return. If there are more objects to return, Shield Advanced returns a value in NextToken
that you can use in your next request, to get the next batch of objects.
public String toString()
toString in class ObjectObject.toString()public ListAttacksRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()