* The details of the reserved-node exchange request, including the status, request time, source reserved-node * identifier, and additional details. *
*/ private com.amazonaws.internal.SdkInternalList
* A pagination token provided by a previous DescribeReservedNodeExchangeStatus
request.
*
* The details of the reserved-node exchange request, including the status, request time, source reserved-node * identifier, and additional details. *
* * @return The details of the reserved-node exchange request, including the status, request time, source * reserved-node identifier, and additional details. */ public java.util.List* The details of the reserved-node exchange request, including the status, request time, source reserved-node * identifier, and additional details. *
* * @param reservedNodeExchangeStatusDetails * The details of the reserved-node exchange request, including the status, request time, source * reserved-node identifier, and additional details. */ public void setReservedNodeExchangeStatusDetails(java.util.Collection* The details of the reserved-node exchange request, including the status, request time, source reserved-node * identifier, and additional details. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setReservedNodeExchangeStatusDetails(java.util.Collection)} or * {@link #withReservedNodeExchangeStatusDetails(java.util.Collection)} if you want to override the existing values. *
* * @param reservedNodeExchangeStatusDetails * The details of the reserved-node exchange request, including the status, request time, source * reserved-node identifier, and additional details. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodeExchangeStatusResult withReservedNodeExchangeStatusDetails(ReservedNodeExchangeStatus... reservedNodeExchangeStatusDetails) { if (this.reservedNodeExchangeStatusDetails == null) { setReservedNodeExchangeStatusDetails(new com.amazonaws.internal.SdkInternalList* The details of the reserved-node exchange request, including the status, request time, source reserved-node * identifier, and additional details. *
* * @param reservedNodeExchangeStatusDetails * The details of the reserved-node exchange request, including the status, request time, source * reserved-node identifier, and additional details. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodeExchangeStatusResult withReservedNodeExchangeStatusDetails( java.util.Collection
* A pagination token provided by a previous DescribeReservedNodeExchangeStatus
request.
*
DescribeReservedNodeExchangeStatus
request.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* A pagination token provided by a previous DescribeReservedNodeExchangeStatus
request.
*
DescribeReservedNodeExchangeStatus
request.
*/
public String getMarker() {
return this.marker;
}
/**
*
* A pagination token provided by a previous DescribeReservedNodeExchangeStatus
request.
*
DescribeReservedNodeExchangeStatus
request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeReservedNodeExchangeStatusResult 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 (getReservedNodeExchangeStatusDetails() != null)
sb.append("ReservedNodeExchangeStatusDetails: ").append(getReservedNodeExchangeStatusDetails()).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 DescribeReservedNodeExchangeStatusResult == false)
return false;
DescribeReservedNodeExchangeStatusResult other = (DescribeReservedNodeExchangeStatusResult) obj;
if (other.getReservedNodeExchangeStatusDetails() == null ^ this.getReservedNodeExchangeStatusDetails() == null)
return false;
if (other.getReservedNodeExchangeStatusDetails() != null
&& other.getReservedNodeExchangeStatusDetails().equals(this.getReservedNodeExchangeStatusDetails()) == 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 + ((getReservedNodeExchangeStatusDetails() == null) ? 0 : getReservedNodeExchangeStatusDetails().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
return hashCode;
}
@Override
public DescribeReservedNodeExchangeStatusResult clone() {
try {
return (DescribeReservedNodeExchangeStatusResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}