
com.amazonaws.services.route53.model.ListHostedZonesRequest 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;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* To retrieve a list of your public and private hosted zones, send a
* GET
request to the /2013-04-01/hostedzone
resource.
* The response to this request includes a HostedZone child element for each
* hosted zone that was created by the current AWS account.
*
*
* Amazon Route 53 returns a maximum of 100 items in each response. If you have
* a lot of hosted zones, you can use the maxitems parameter to list them in
* groups of up to 100. The response includes four values that help you navigate
* from one group of maxitems hosted zones to the next:
*
*
* -
*
* MaxItems
is the value that you specified for the
* maxitems
parameter in the request that produced the current
* response.
*
*
* -
*
* If the value of IsTruncated
in the response is true
* , there are more hosted zones associated with the current AWS account.
*
*
* If IsTruncated
is false
, this response includes the
* last hosted zone that is associated with the current account.
*
*
* -
*
* NextMarker
is the hosted zone ID of the next hosted zone that is
* associated with the current AWS account. If you want to list more hosted
* zones, make another call to ListHostedZones
, and specify the
* value of the NextMarker
element in the marker parameter.
*
*
* If IsTruncated
is false
, the
* NextMarker
element is omitted from the response.
*
*
* -
*
* If you're making the second or subsequent call to
* ListHostedZones
, the Marker
element matches the
* value that you specified in the marker
parameter in the previous
* request.
*
*
*
*/
public class ListHostedZonesRequest extends
com.amazonaws.AmazonWebServiceRequest implements Serializable,
Cloneable {
/**
*
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only the
* first maxitems
hosted zones. To get the next group of
* maxitems
hosted zones, submit another request to
* ListHostedZones
. For the value of marker, specify the value
* of the NextMarker
element that was returned in the previous
* response.
*
*
* Hosted zones are listed in the order in which they were created.
*
*/
private String marker;
/**
*
* (Optional) The maximum number of hosted zones to be included in the
* response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is true
,
* and the value of the NextMarker
element is the hosted zone
* ID of the first hosted zone in the next group of maxitems
* hosted zones.
*
*/
private String maxItems;
private String delegationSetId;
/**
*
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only the
* first maxitems
hosted zones. To get the next group of
* maxitems
hosted zones, submit another request to
* ListHostedZones
. For the value of marker, specify the value
* of the NextMarker
element that was returned in the previous
* response.
*
*
* Hosted zones are listed in the order in which they were created.
*
*
* @param marker
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only
* the first maxitems
hosted zones. To get the next
* group of maxitems
hosted zones, submit another
* request to ListHostedZones
. For the value of marker,
* specify the value of the NextMarker
element that was
* returned in the previous response.
*
* Hosted zones are listed in the order in which they were created.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only the
* first maxitems
hosted zones. To get the next group of
* maxitems
hosted zones, submit another request to
* ListHostedZones
. For the value of marker, specify the value
* of the NextMarker
element that was returned in the previous
* response.
*
*
* Hosted zones are listed in the order in which they were created.
*
*
* @return (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only
* the first maxitems
hosted zones. To get the next
* group of maxitems
hosted zones, submit another
* request to ListHostedZones
. For the value of marker,
* specify the value of the NextMarker
element that was
* returned in the previous response.
*
* Hosted zones are listed in the order in which they were created.
*/
public String getMarker() {
return this.marker;
}
/**
*
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only the
* first maxitems
hosted zones. To get the next group of
* maxitems
hosted zones, submit another request to
* ListHostedZones
. For the value of marker, specify the value
* of the NextMarker
element that was returned in the previous
* response.
*
*
* Hosted zones are listed in the order in which they were created.
*
*
* @param marker
* (Optional) If you have more hosted zones than the value of
* maxitems
, ListHostedZones
returns only
* the first maxitems
hosted zones. To get the next
* group of maxitems
hosted zones, submit another
* request to ListHostedZones
. For the value of marker,
* specify the value of the NextMarker
element that was
* returned in the previous response.
*
* Hosted zones are listed in the order in which they were created.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public ListHostedZonesRequest withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* (Optional) The maximum number of hosted zones to be included in the
* response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is true
,
* and the value of the NextMarker
element is the hosted zone
* ID of the first hosted zone in the next group of maxitems
* hosted zones.
*
*
* @param maxItems
* (Optional) The maximum number of hosted zones to be included in
* the response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is
* true
, and the value of the NextMarker
* element is the hosted zone ID of the first hosted zone in the next
* group of maxitems
hosted zones.
*/
public void setMaxItems(String maxItems) {
this.maxItems = maxItems;
}
/**
*
* (Optional) The maximum number of hosted zones to be included in the
* response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is true
,
* and the value of the NextMarker
element is the hosted zone
* ID of the first hosted zone in the next group of maxitems
* hosted zones.
*
*
* @return (Optional) The maximum number of hosted zones to be included in
* the response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is
* true
, and the value of the NextMarker
* element is the hosted zone ID of the first hosted zone in the
* next group of maxitems
hosted zones.
*/
public String getMaxItems() {
return this.maxItems;
}
/**
*
* (Optional) The maximum number of hosted zones to be included in the
* response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is true
,
* and the value of the NextMarker
element is the hosted zone
* ID of the first hosted zone in the next group of maxitems
* hosted zones.
*
*
* @param maxItems
* (Optional) The maximum number of hosted zones to be included in
* the response body for this request. If you have more than
* maxitems
hosted zones, the value of the
* IsTruncated
element in the response is
* true
, and the value of the NextMarker
* element is the hosted zone ID of the first hosted zone in the next
* group of maxitems
hosted zones.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public ListHostedZonesRequest withMaxItems(String maxItems) {
setMaxItems(maxItems);
return this;
}
/**
* @param delegationSetId
*/
public void setDelegationSetId(String delegationSetId) {
this.delegationSetId = delegationSetId;
}
/**
* @return
*/
public String getDelegationSetId() {
return this.delegationSetId;
}
/**
* @param delegationSetId
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public ListHostedZonesRequest withDelegationSetId(String delegationSetId) {
setDelegationSetId(delegationSetId);
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 (getMarker() != null)
sb.append("Marker: " + getMarker() + ",");
if (getMaxItems() != null)
sb.append("MaxItems: " + getMaxItems() + ",");
if (getDelegationSetId() != null)
sb.append("DelegationSetId: " + getDelegationSetId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListHostedZonesRequest == false)
return false;
ListHostedZonesRequest other = (ListHostedZonesRequest) obj;
if (other.getMarker() == null ^ this.getMarker() == null)
return false;
if (other.getMarker() != null
&& other.getMarker().equals(this.getMarker()) == false)
return false;
if (other.getMaxItems() == null ^ this.getMaxItems() == null)
return false;
if (other.getMaxItems() != null
&& other.getMaxItems().equals(this.getMaxItems()) == false)
return false;
if (other.getDelegationSetId() == null
^ this.getDelegationSetId() == null)
return false;
if (other.getDelegationSetId() != null
&& other.getDelegationSetId().equals(this.getDelegationSetId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode
+ ((getMarker() == null) ? 0 : getMarker().hashCode());
hashCode = prime * hashCode
+ ((getMaxItems() == null) ? 0 : getMaxItems().hashCode());
hashCode = prime
* hashCode
+ ((getDelegationSetId() == null) ? 0 : getDelegationSetId()
.hashCode());
return hashCode;
}
@Override
public ListHostedZonesRequest clone() {
return (ListHostedZonesRequest) super.clone();
}
}