
com.amazonaws.services.route53.model.ListChangeBatchesByRRSetResult 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;
/**
*
* The input for a ListChangeBatchesByRRSet request.
*
*/
@Deprecated
public class ListChangeBatchesByRRSetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The maximum number of items on a page.
*
*/
private String maxItems;
/**
*
* The page marker.
*
*/
private String marker;
/**
*
* A flag that indicates if there are more change batches to list.
*
*/
private Boolean isTruncated;
/**
*
* The change batches within the given hosted zone and time period.
*
*/
private com.amazonaws.internal.SdkInternalList changeBatchRecords;
/**
*
* The next page marker.
*
*/
private String nextMarker;
/**
*
* The maximum number of items on a page.
*
*
* @param maxItems
* The maximum number of items on a page.
*/
public void setMaxItems(String maxItems) {
this.maxItems = maxItems;
}
/**
*
* The maximum number of items on a page.
*
*
* @return The maximum number of items on a page.
*/
public String getMaxItems() {
return this.maxItems;
}
/**
*
* The maximum number of items on a page.
*
*
* @param maxItems
* The maximum number of items on a page.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withMaxItems(String maxItems) {
setMaxItems(maxItems);
return this;
}
/**
*
* The page marker.
*
*
* @param marker
* The page marker.
*/
public void setMarker(String marker) {
this.marker = marker;
}
/**
*
* The page marker.
*
*
* @return The page marker.
*/
public String getMarker() {
return this.marker;
}
/**
*
* The page marker.
*
*
* @param marker
* The page marker.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withMarker(String marker) {
setMarker(marker);
return this;
}
/**
*
* A flag that indicates if there are more change batches to list.
*
*
* @param isTruncated
* A flag that indicates if there are more change batches to list.
*/
public void setIsTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
}
/**
*
* A flag that indicates if there are more change batches to list.
*
*
* @return A flag that indicates if there are more change batches to list.
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
*
* A flag that indicates if there are more change batches to list.
*
*
* @param isTruncated
* A flag that indicates if there are more change batches to list.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withIsTruncated(Boolean isTruncated) {
setIsTruncated(isTruncated);
return this;
}
/**
*
* A flag that indicates if there are more change batches to list.
*
*
* @return A flag that indicates if there are more change batches to list.
*/
public Boolean isTruncated() {
return this.isTruncated;
}
/**
*
* The change batches within the given hosted zone and time period.
*
*
* @return The change batches within the given hosted zone and time period.
*/
public java.util.List getChangeBatchRecords() {
if (changeBatchRecords == null) {
changeBatchRecords = new com.amazonaws.internal.SdkInternalList();
}
return changeBatchRecords;
}
/**
*
* The change batches within the given hosted zone and time period.
*
*
* @param changeBatchRecords
* The change batches within the given hosted zone and time period.
*/
public void setChangeBatchRecords(java.util.Collection changeBatchRecords) {
if (changeBatchRecords == null) {
this.changeBatchRecords = null;
return;
}
this.changeBatchRecords = new com.amazonaws.internal.SdkInternalList(changeBatchRecords);
}
/**
*
* The change batches within the given hosted zone and time period.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setChangeBatchRecords(java.util.Collection)} or {@link #withChangeBatchRecords(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param changeBatchRecords
* The change batches within the given hosted zone and time period.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withChangeBatchRecords(ChangeBatchRecord... changeBatchRecords) {
if (this.changeBatchRecords == null) {
setChangeBatchRecords(new com.amazonaws.internal.SdkInternalList(changeBatchRecords.length));
}
for (ChangeBatchRecord ele : changeBatchRecords) {
this.changeBatchRecords.add(ele);
}
return this;
}
/**
*
* The change batches within the given hosted zone and time period.
*
*
* @param changeBatchRecords
* The change batches within the given hosted zone and time period.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withChangeBatchRecords(java.util.Collection changeBatchRecords) {
setChangeBatchRecords(changeBatchRecords);
return this;
}
/**
*
* The next page marker.
*
*
* @param nextMarker
* The next page marker.
*/
public void setNextMarker(String nextMarker) {
this.nextMarker = nextMarker;
}
/**
*
* The next page marker.
*
*
* @return The next page marker.
*/
public String getNextMarker() {
return this.nextMarker;
}
/**
*
* The next page marker.
*
*
* @param nextMarker
* The next page marker.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListChangeBatchesByRRSetResult withNextMarker(String nextMarker) {
setNextMarker(nextMarker);
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 (getMaxItems() != null)
sb.append("MaxItems: " + getMaxItems() + ",");
if (getMarker() != null)
sb.append("Marker: " + getMarker() + ",");
if (getIsTruncated() != null)
sb.append("IsTruncated: " + getIsTruncated() + ",");
if (getChangeBatchRecords() != null)
sb.append("ChangeBatchRecords: " + getChangeBatchRecords() + ",");
if (getNextMarker() != null)
sb.append("NextMarker: " + getNextMarker());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListChangeBatchesByRRSetResult == false)
return false;
ListChangeBatchesByRRSetResult other = (ListChangeBatchesByRRSetResult) obj;
if (other.getMaxItems() == null ^ this.getMaxItems() == null)
return false;
if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == 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.getChangeBatchRecords() == null ^ this.getChangeBatchRecords() == null)
return false;
if (other.getChangeBatchRecords() != null && other.getChangeBatchRecords().equals(this.getChangeBatchRecords()) == false)
return false;
if (other.getNextMarker() == null ^ this.getNextMarker() == null)
return false;
if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode());
hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode());
hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode());
hashCode = prime * hashCode + ((getChangeBatchRecords() == null) ? 0 : getChangeBatchRecords().hashCode());
hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode());
return hashCode;
}
@Override
public ListChangeBatchesByRRSetResult clone() {
try {
return (ListChangeBatchesByRRSetResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}