All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53.model.ListHostedZonesResult Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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 the response for the request. *

*/ public class ListHostedZonesResult implements Serializable { /** * A complex type that contains information about the hosted zones * associated with the current AWS account. */ private com.amazonaws.internal.ListWithAutoConstructFlag hostedZones; /** * If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. *

* Constraints:
* Length: 0 - 64
*/ private String marker; /** * A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false */ private Boolean isTruncated; /** * Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. *

* Constraints:
* Length: 0 - 64
*/ private String nextMarker; /** * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. */ private String maxItems; /** * A complex type that contains information about the hosted zones * associated with the current AWS account. * * @return A complex type that contains information about the hosted zones * associated with the current AWS account. */ public java.util.List getHostedZones() { if (hostedZones == null) { hostedZones = new com.amazonaws.internal.ListWithAutoConstructFlag(); hostedZones.setAutoConstruct(true); } return hostedZones; } /** * A complex type that contains information about the hosted zones * associated with the current AWS account. * * @param hostedZones A complex type that contains information about the hosted zones * associated with the current AWS account. */ public void setHostedZones(java.util.Collection hostedZones) { if (hostedZones == null) { this.hostedZones = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag hostedZonesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(hostedZones.size()); hostedZonesCopy.addAll(hostedZones); this.hostedZones = hostedZonesCopy; } /** * A complex type that contains information about the hosted zones * associated with the current AWS account. *

* Returns a reference to this object so that method calls can be chained together. * * @param hostedZones A complex type that contains information about the hosted zones * associated with the current AWS account. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withHostedZones(HostedZone... hostedZones) { if (getHostedZones() == null) setHostedZones(new java.util.ArrayList(hostedZones.length)); for (HostedZone value : hostedZones) { getHostedZones().add(value); } return this; } /** * A complex type that contains information about the hosted zones * associated with the current AWS account. *

* Returns a reference to this object so that method calls can be chained together. * * @param hostedZones A complex type that contains information about the hosted zones * associated with the current AWS account. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withHostedZones(java.util.Collection hostedZones) { if (hostedZones == null) { this.hostedZones = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag hostedZonesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(hostedZones.size()); hostedZonesCopy.addAll(hostedZones); this.hostedZones = hostedZonesCopy; } return this; } /** * If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. *

* Constraints:
* Length: 0 - 64
* * @return If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. */ public String getMarker() { return marker; } /** * If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. *

* Constraints:
* Length: 0 - 64
* * @param marker If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. */ public void setMarker(String marker) { this.marker = marker; } /** * If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 64
* * @param marker If the request returned more than one page of results, submit another * request and specify the value of NextMarker from the last * response in the marker parameter to get the next page of * results. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withMarker(String marker) { this.marker = marker; return this; } /** * A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false * * @return A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false */ public Boolean isTruncated() { return isTruncated; } /** * A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false * * @param isTruncated A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false */ public void setIsTruncated(Boolean isTruncated) { this.isTruncated = isTruncated; } /** * A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false *

* Returns a reference to this object so that method calls can be chained together. * * @param isTruncated A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withIsTruncated(Boolean isTruncated) { this.isTruncated = isTruncated; return this; } /** * A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false * * @return A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the Marker element. *

Valid Values: true | false */ public Boolean getIsTruncated() { return isTruncated; } /** * Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. *

* Constraints:
* Length: 0 - 64
* * @return Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. */ public String getNextMarker() { return nextMarker; } /** * Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. *

* Constraints:
* Length: 0 - 64
* * @param nextMarker Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. */ public void setNextMarker(String nextMarker) { this.nextMarker = nextMarker; } /** * Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Length: 0 - 64
* * @param nextMarker Indicates where to continue listing hosted zones. If * ListHostedZonesResponse$IsTruncated is true, make * another request to ListHostedZones and include the value * of the NextMarker element in the Marker * element to get the next page of results. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withNextMarker(String nextMarker) { this.nextMarker = nextMarker; return this; } /** * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. * * @return The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. */ public String getMaxItems() { return maxItems; } /** * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. * * @param maxItems The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. *

* Returns a reference to this object so that method calls can be chained together. * * @param maxItems The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS account * exceeds MaxItems, the value of * ListHostedZonesResponse$IsTruncated in the response is * true. Call ListHostedZones again and specify * the value of ListHostedZonesResponse$NextMarker in the * ListHostedZonesRequest$Marker element to get the next page of * results. * * @return A reference to this updated object so that method calls can be chained * together. */ public ListHostedZonesResult withMaxItems(String maxItems) { this.maxItems = 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 (getHostedZones() != null) sb.append("HostedZones: " + getHostedZones() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker() + ","); if (isTruncated() != null) sb.append("IsTruncated: " + isTruncated() + ","); if (getNextMarker() != null) sb.append("NextMarker: " + getNextMarker() + ","); if (getMaxItems() != null) sb.append("MaxItems: " + getMaxItems() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZones() == null) ? 0 : getHostedZones().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListHostedZonesResult == false) return false; ListHostedZonesResult other = (ListHostedZonesResult)obj; if (other.getHostedZones() == null ^ this.getHostedZones() == null) return false; if (other.getHostedZones() != null && other.getHostedZones().equals(this.getHostedZones()) == 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.isTruncated() == null ^ this.isTruncated() == null) return false; if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == 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; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy