* Shows the results of datashares available for consumers. *
*/ private com.amazonaws.internal.SdkInternalList
* An optional parameter that specifies the starting point to return a set of response records. When the results of
* a DescribeDataSharesForConsumer request exceed the value specified in MaxRecords
, Amazon Web
* Services returns a value in the Marker
field of the response. You can retrieve the next set of
* response records by providing the returned marker value in the Marker
parameter and retrying the
* request.
*
* Shows the results of datashares available for consumers. *
* * @return Shows the results of datashares available for consumers. */ public java.util.List* Shows the results of datashares available for consumers. *
* * @param dataShares * Shows the results of datashares available for consumers. */ public void setDataShares(java.util.Collection* Shows the results of datashares available for consumers. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDataShares(java.util.Collection)} or {@link #withDataShares(java.util.Collection)} if you want to * override the existing values. *
* * @param dataShares * Shows the results of datashares available for consumers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDataSharesForConsumerResult withDataShares(DataShare... dataShares) { if (this.dataShares == null) { setDataShares(new com.amazonaws.internal.SdkInternalList* Shows the results of datashares available for consumers. *
* * @param dataShares * Shows the results of datashares available for consumers. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDataSharesForConsumerResult withDataShares(java.util.Collection
* An optional parameter that specifies the starting point to return a set of response records. When the results of
* a DescribeDataSharesForConsumer request exceed the value specified in MaxRecords
, Amazon Web
* Services returns a value in the Marker
field of the response. You can retrieve the next set of
* response records by providing the returned marker value in the Marker
parameter and retrying the
* request.
*
MaxRecords
, Amazon Web Services returns a value in the Marker
field of the
* response. You can retrieve the next set of response records by providing the returned marker value in the
* Marker
parameter and retrying the request.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* An optional parameter that specifies the starting point to return a set of response records. When the results of
* a DescribeDataSharesForConsumer request exceed the value specified in MaxRecords
, Amazon Web
* Services returns a value in the Marker
field of the response. You can retrieve the next set of
* response records by providing the returned marker value in the Marker
parameter and retrying the
* request.
*
MaxRecords
, Amazon Web Services returns a value in the Marker
field of the
* response. You can retrieve the next set of response records by providing the returned marker value in the
* Marker
parameter and retrying the request.
*/
public String getMarker() {
return this.marker;
}
/**
*
* An optional parameter that specifies the starting point to return a set of response records. When the results of
* a DescribeDataSharesForConsumer request exceed the value specified in MaxRecords
, Amazon Web
* Services returns a value in the Marker
field of the response. You can retrieve the next set of
* response records by providing the returned marker value in the Marker
parameter and retrying the
* request.
*
MaxRecords
, Amazon Web Services returns a value in the Marker
field of the
* response. You can retrieve the next set of response records by providing the returned marker value in the
* Marker
parameter and retrying the request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeDataSharesForConsumerResult 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 (getDataShares() != null)
sb.append("DataShares: ").append(getDataShares()).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 DescribeDataSharesForConsumerResult == false)
return false;
DescribeDataSharesForConsumerResult other = (DescribeDataSharesForConsumerResult) obj;
if (other.getDataShares() == null ^ this.getDataShares() == null)
return false;
if (other.getDataShares() != null && other.getDataShares().equals(this.getDataShares()) == 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 + ((getDataShares() == null) ? 0 : getDataShares().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
return hashCode;
}
@Override
public DescribeDataSharesForConsumerResult clone() {
try {
return (DescribeDataSharesForConsumerResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}