* A complex type that contains the IDs and the health status of the instances that you specified in the
* GetInstancesHealthStatus
request.
*
* If more than MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*
* A complex type that contains the IDs and the health status of the instances that you specified in the
* GetInstancesHealthStatus
request.
*
GetInstancesHealthStatus
request.
*/
public java.util.Map
* A complex type that contains the IDs and the health status of the instances that you specified in the
* GetInstancesHealthStatus
request.
*
GetInstancesHealthStatus
request.
*/
public void setStatus(java.util.Map
* A complex type that contains the IDs and the health status of the instances that you specified in the
* GetInstancesHealthStatus
request.
*
GetInstancesHealthStatus
request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetInstancesHealthStatusResult withStatus(java.util.Map
* If more than MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*
MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If more than MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*
MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If more than MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
*
MaxResults
instances match the specified criteria, you can submit another
* GetInstancesHealthStatus
request to get the next group of results. Specify the value of
* NextToken
from the previous response in the next request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetInstancesHealthStatusResult withNextToken(String nextToken) {
setNextToken(nextToken);
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 (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetInstancesHealthStatusResult == false)
return false;
GetInstancesHealthStatusResult other = (GetInstancesHealthStatusResult) obj;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetInstancesHealthStatusResult clone() {
try {
return (GetInstancesHealthStatusResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}