@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListActiveViolationsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListActiveViolationsResult() |
Modifier and Type | Method and Description |
---|---|
ListActiveViolationsResult |
clone() |
boolean |
equals(Object obj) |
List<ActiveViolation> |
getActiveViolations()
The list of active violations.
|
String |
getNextToken()
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
int |
hashCode() |
void |
setActiveViolations(Collection<ActiveViolation> activeViolations)
The list of active violations.
|
void |
setNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
String |
toString()
Returns a string representation of this object.
|
ListActiveViolationsResult |
withActiveViolations(ActiveViolation... activeViolations)
The list of active violations.
|
ListActiveViolationsResult |
withActiveViolations(Collection<ActiveViolation> activeViolations)
The list of active violations.
|
ListActiveViolationsResult |
withNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or
null if there are no additional
results. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<ActiveViolation> getActiveViolations()
The list of active violations.
public void setActiveViolations(Collection<ActiveViolation> activeViolations)
The list of active violations.
activeViolations
- The list of active violations.public ListActiveViolationsResult withActiveViolations(ActiveViolation... activeViolations)
The list of active violations.
NOTE: This method appends the values to the existing list (if any). Use
setActiveViolations(java.util.Collection)
or withActiveViolations(java.util.Collection)
if you
want to override the existing values.
activeViolations
- The list of active violations.public ListActiveViolationsResult withActiveViolations(Collection<ActiveViolation> activeViolations)
The list of active violations.
activeViolations
- The list of active violations.public void setNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no
additional results.public String getNextToken()
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
null
if there are no
additional results.public ListActiveViolationsResult withNextToken(String nextToken)
A token that can be used to retrieve the next set of results, or null
if there are no additional
results.
nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no
additional results.public String toString()
toString
in class Object
Object.toString()
public ListActiveViolationsResult clone()