* Contains the output from the DescribeUsageLimits action. *
*/ private com.amazonaws.internal.SdkInternalList
* A value that indicates the starting point for the next set of response records in a subsequent request. If a
* value is returned in a response, you can retrieve the next set of records by providing this returned marker value
* in the Marker
parameter and retrying the command. If the Marker
field is empty, all
* response records have been retrieved for the request.
*
* Contains the output from the DescribeUsageLimits action. *
* * @return Contains the output from the DescribeUsageLimits action. */ public java.util.List* Contains the output from the DescribeUsageLimits action. *
* * @param usageLimits * Contains the output from the DescribeUsageLimits action. */ public void setUsageLimits(java.util.Collection* Contains the output from the DescribeUsageLimits action. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUsageLimits(java.util.Collection)} or {@link #withUsageLimits(java.util.Collection)} if you want to * override the existing values. *
* * @param usageLimits * Contains the output from the DescribeUsageLimits action. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUsageLimitsResult withUsageLimits(UsageLimit... usageLimits) { if (this.usageLimits == null) { setUsageLimits(new com.amazonaws.internal.SdkInternalList* Contains the output from the DescribeUsageLimits action. *
* * @param usageLimits * Contains the output from the DescribeUsageLimits action. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeUsageLimitsResult withUsageLimits(java.util.Collection
* A value that indicates the starting point for the next set of response records in a subsequent request. If a
* value is returned in a response, you can retrieve the next set of records by providing this returned marker value
* in the Marker
parameter and retrying the command. If the Marker
field is empty, all
* response records have been retrieved for the request.
*
Marker
parameter and retrying the command. If the Marker
* field is empty, all response records have been retrieved for the request.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* A value that indicates the starting point for the next set of response records in a subsequent request. If a
* value is returned in a response, you can retrieve the next set of records by providing this returned marker value
* in the Marker
parameter and retrying the command. If the Marker
field is empty, all
* response records have been retrieved for the request.
*
Marker
parameter and retrying the command. If the Marker
* field is empty, all response records have been retrieved for the request.
*/
public String getMarker() {
return this.marker;
}
/**
*
* A value that indicates the starting point for the next set of response records in a subsequent request. If a
* value is returned in a response, you can retrieve the next set of records by providing this returned marker value
* in the Marker
parameter and retrying the command. If the Marker
field is empty, all
* response records have been retrieved for the request.
*
Marker
parameter and retrying the command. If the Marker
* field is empty, all response records have been retrieved for the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeUsageLimitsResult withMarker(String marker) {
setMarker(marker);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getUsageLimits() != null)
sb.append("UsageLimits: ").append(getUsageLimits()).append(",");
if (getMarker() != null)
sb.append("Marker: ").append(getMarker());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeUsageLimitsResult == false)
return false;
DescribeUsageLimitsResult other = (DescribeUsageLimitsResult) obj;
if (other.getUsageLimits() == null ^ this.getUsageLimits() == null)
return false;
if (other.getUsageLimits() != null && other.getUsageLimits().equals(this.getUsageLimits()) == false)
return false;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getUsageLimits() == null) ? 0 : getUsageLimits().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
return hashCode;
}
@Override
public DescribeUsageLimitsResult clone() {
try {
return (DescribeUsageLimitsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}