
com.amazonaws.services.route53.model.ListReusableDelegationSetsResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-route53 Show documentation
/*
* Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.route53.model;
import java.io.Serializable;
/**
*
* A complex type that contains information about the reusable delegation sets that are associated with the current AWS
* account.
*
*/
public class ListReusableDelegationSetsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* A complex type that contains one DelegationSet
element for each reusable delegation set that was
* created by the current AWS account.
*
*/
private com.amazonaws.internal.SdkInternalList delegationSets;
/**
*
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the value
* that you specified for the marker parameter in the request that produced the current response.
*
*/
private String marker;
/**
*
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is truncated,
* you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
element in
* the marker
parameter.
*
*/
private Boolean isTruncated;
/**
*
* If IsTruncated
is true
, the value of NextMarker
identifies the first
* reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*
*/
private String nextMarker;
/**
*
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*
*/
private String maxItems;
/**
*
* A complex type that contains one DelegationSet
element for each reusable delegation set that was
* created by the current AWS account.
*
*
* @return A complex type that contains one DelegationSet
element for each reusable delegation set that
* was created by the current AWS account.
*/
public java.util.List getDelegationSets() {
if (delegationSets == null) {
delegationSets = new com.amazonaws.internal.SdkInternalList();
}
return delegationSets;
}
/**
*
* A complex type that contains one DelegationSet
element for each reusable delegation set that was
* created by the current AWS account.
*
*
* @param delegationSets
* A complex type that contains one DelegationSet
element for each reusable delegation set that
* was created by the current AWS account.
*/
public void setDelegationSets(java.util.Collection delegationSets) {
if (delegationSets == null) {
this.delegationSets = null;
return;
}
this.delegationSets = new com.amazonaws.internal.SdkInternalList(delegationSets);
}
/**
*
* A complex type that contains one DelegationSet
element for each reusable delegation set that was
* created by the current AWS account.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDelegationSets(java.util.Collection)} or {@link #withDelegationSets(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param delegationSets
* A complex type that contains one DelegationSet
element for each reusable delegation set that
* was created by the current AWS account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withDelegationSets(DelegationSet... delegationSets) {
if (this.delegationSets == null) {
setDelegationSets(new com.amazonaws.internal.SdkInternalList(delegationSets.length));
}
for (DelegationSet ele : delegationSets) {
this.delegationSets.add(ele);
}
return this;
}
/**
*
* A complex type that contains one DelegationSet
element for each reusable delegation set that was
* created by the current AWS account.
*
*
* @param delegationSets
* A complex type that contains one DelegationSet
element for each reusable delegation set that
* was created by the current AWS account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withDelegationSets(java.util.Collection delegationSets) {
setDelegationSets(delegationSets);
return this;
}
/**
*
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the value
* that you specified for the marker parameter in the request that produced the current response.
*
*
* @param marker
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the
* value that you specified for the marker parameter in the request that produced the current response.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the value
* that you specified for the marker parameter in the request that produced the current response.
*
*
* @return For the second and subsequent calls to ListReusableDelegationSets
, Marker
is
* the value that you specified for the marker parameter in the request that produced the current response.
*/
public String getMarker() {
return this.marker;
}
/**
*
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the value
* that you specified for the marker parameter in the request that produced the current response.
*
*
* @param marker
* For the second and subsequent calls to ListReusableDelegationSets
, Marker
is the
* value that you specified for the marker parameter in the request that produced the current response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is truncated,
* you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
element in
* the marker
parameter.
*
*
* @param isTruncated
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is
* truncated, you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
* element in the marker
parameter.
*/
public void setIsTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
}
/**
*
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is truncated,
* you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
element in
* the marker
parameter.
*
*
* @return A flag that indicates whether there are more reusable delegation sets to be listed. If the response is
* truncated, you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
* element in the marker
parameter.
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
*
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is truncated,
* you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
element in
* the marker
parameter.
*
*
* @param isTruncated
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is
* truncated, you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
* element in the marker
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withIsTruncated(Boolean isTruncated) {
setIsTruncated(isTruncated);
return this;
}
/**
*
* A flag that indicates whether there are more reusable delegation sets to be listed. If the response is truncated,
* you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
element in
* the marker
parameter.
*
*
* @return A flag that indicates whether there are more reusable delegation sets to be listed. If the response is
* truncated, you can get the next group of maxitems
reusable delegation sets by calling
* ListReusableDelegationSets
again and specifying the value of the NextMarker
* element in the marker
parameter.
*/
public Boolean isTruncated() {
return this.isTruncated;
}
/**
*
* If IsTruncated
is true
, the value of NextMarker
identifies the first
* reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*
*
* @param nextMarker
* If IsTruncated
is true
, the value of NextMarker
identifies the
* first reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*/
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
/**
*
* If IsTruncated
is true
, the value of NextMarker
identifies the first
* reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*
*
* @return If IsTruncated
is true
, the value of NextMarker
identifies the
* first reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*/
public String getNextMarker() {
return this.nextMarker;
}
/**
*
* If IsTruncated
is true
, the value of NextMarker
identifies the first
* reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
*
*
* @param nextMarker
* If IsTruncated
is true
, the value of NextMarker
identifies the
* first reusable delegation set in the next group of maxitems
reusable delegation sets. Call
* ListReusableDelegationSets
again and specify the value of NextMarker
in the
* marker
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withNextMarker(String nextMarker) {
setNextMarker(nextMarker);
return this;
}
/**
*
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*
*
* @param maxItems
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*/
public void setMaxItems(String maxItems) {
this.maxItems = maxItems;
}
/**
*
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*
*
* @return The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*/
public String getMaxItems() {
return this.maxItems;
}
/**
*
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
*
*
* @param maxItems
* The value that you specified for the maxitems
parameter in the call to
* ListReusableDelegationSets
that produced the current response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListReusableDelegationSetsResult withMaxItems(String maxItems) {
setMaxItems(maxItems);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getDelegationSets() != null)
sb.append("DelegationSets: " + getDelegationSets() + ",");
if (getMarker() != null)
sb.append("Marker: " + getMarker() + ",");
if (getIsTruncated() != null)
sb.append("IsTruncated: " + getIsTruncated() + ",");
if (getNextMarker() != null)
sb.append("NextMarker: " + getNextMarker() + ",");
if (getMaxItems() != null)
sb.append("MaxItems: " + getMaxItems());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListReusableDelegationSetsResult == false)
return false;
ListReusableDelegationSetsResult other = (ListReusableDelegationSetsResult) obj;
if (other.getDelegationSets() == null ^ this.getDelegationSets() == null)
return false;
if (other.getDelegationSets() != null && other.getDelegationSets().equals(this.getDelegationSets()) == false)
return false;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false)
return false;
if (other.getIsTruncated() == null ^ this.getIsTruncated() == null)
return false;
if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == false)
return false;
if (other.getNextMarker() == null ^ this.getNextMarker() == null)
return false;
if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false)
return false;
if (other.getMaxItems() == null ^ this.getMaxItems() == null)
return false;
if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDelegationSets() == null) ? 0 : getDelegationSets().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode());
hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode());
hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode());
return hashCode;
}
@Override
public ListReusableDelegationSetsResult clone() {
try {
return (ListReusableDelegationSetsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}