@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicyInstances() == null) ? 0 : getTrafficPolicyInstances().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyInstanceNameMarker() == null) ? 0 : getTrafficPolicyInstanceNameMarker().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyInstanceTypeMarker() == null) ? 0 : getTrafficPolicyInstanceTypeMarker().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * <p> * A flag that indicates whether there are more traffic policy instances to be listed. If the response was * truncated, you can get the next group of traffic policy instances by submitting another * <code>ListTrafficPolicyInstancesByHostedZone</code> request and specifying the values of * <code>HostedZoneIdMarker</code>, <code>TrafficPolicyInstanceNameMarker</code>, and * <code>TrafficPolicyInstanceTypeMarker</code> in the corresponding request parameters. * </p> * * @param isTruncated * A flag that indicates whether there are more traffic policy instances to be listed. If the response was * truncated, you can get the next group of traffic policy instances by submitting another * <code>ListTrafficPolicyInstancesByHostedZone</code> request and specifying the values of * <code>HostedZoneIdMarker</code>, <code>TrafficPolicyInstanceNameMarker</code>, and * <code>TrafficPolicyInstanceTypeMarker</code> in the corresponding request parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByHostedZoneResult withIsTruncated(Boolean isTruncated) { setIsTruncated(isTruncated); return this; }
/** * <p> * The value that you specified for the <code>MaxItems</code> parameter in the * <code>ListTrafficPolicyInstancesByHostedZone</code> request that produced the current response. * </p> * * @param maxItems * The value that you specified for the <code>MaxItems</code> parameter in the * <code>ListTrafficPolicyInstancesByHostedZone</code> request that produced the current response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByHostedZoneResult withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
public ListTrafficPolicyInstancesByHostedZoneResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListTrafficPolicyInstancesByHostedZoneResult listTrafficPolicyInstancesByHostedZoneResult = new ListTrafficPolicyInstancesByHostedZoneResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listTrafficPolicyInstancesByHostedZoneResult.withTrafficPolicyInstances(new ArrayList<TrafficPolicyInstance>()); continue; listTrafficPolicyInstancesByHostedZoneResult.withTrafficPolicyInstances(TrafficPolicyInstanceStaxUnmarshaller.getInstance().unmarshall( context)); continue; listTrafficPolicyInstancesByHostedZoneResult.setTrafficPolicyInstanceNameMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesByHostedZoneResult.setTrafficPolicyInstanceTypeMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesByHostedZoneResult.setIsTruncated(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesByHostedZoneResult.setMaxItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * If <code>IsTruncated</code> is <code>true</code>, <code>TrafficPolicyInstanceNameMarker</code> is the name of the * first traffic policy instance in the next group of traffic policy instances. * </p> * * @param trafficPolicyInstanceNameMarker * If <code>IsTruncated</code> is <code>true</code>, <code>TrafficPolicyInstanceNameMarker</code> is the name * of the first traffic policy instance in the next group of traffic policy instances. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByHostedZoneResult withTrafficPolicyInstanceNameMarker(String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); return this; }
/** * <p> * If <code>IsTruncated</code> is true, <code>TrafficPolicyInstanceTypeMarker</code> is the DNS type of the resource * record sets that are associated with the first traffic policy instance in the next group of traffic policy * instances. * </p> * * @param trafficPolicyInstanceTypeMarker * If <code>IsTruncated</code> is true, <code>TrafficPolicyInstanceTypeMarker</code> is the DNS type of the * resource record sets that are associated with the first traffic policy instance in the next group of * traffic policy instances. * @return Returns a reference to this object so that method calls can be chained together. * @see RRType */ public ListTrafficPolicyInstancesByHostedZoneResult withTrafficPolicyInstanceTypeMarker(String trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); return this; }
return false; ListTrafficPolicyInstancesByHostedZoneResult other = (ListTrafficPolicyInstancesByHostedZoneResult) obj; if (other.getTrafficPolicyInstances() == null ^ this.getTrafficPolicyInstances() == null) return false; if (other.getTrafficPolicyInstances() != null && other.getTrafficPolicyInstances().equals(this.getTrafficPolicyInstances()) == false) return false; if (other.getTrafficPolicyInstanceNameMarker() == null ^ this.getTrafficPolicyInstanceNameMarker() == null) return false; if (other.getTrafficPolicyInstanceNameMarker() != null && other.getTrafficPolicyInstanceNameMarker().equals(this.getTrafficPolicyInstanceNameMarker()) == false) return false; if (other.getTrafficPolicyInstanceTypeMarker() == null ^ this.getTrafficPolicyInstanceTypeMarker() == null) return false; if (other.getTrafficPolicyInstanceTypeMarker() != null && other.getTrafficPolicyInstanceTypeMarker().equals(this.getTrafficPolicyInstanceTypeMarker()) == 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.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true;
/** * 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 (getTrafficPolicyInstances() != null) sb.append("TrafficPolicyInstances: ").append(getTrafficPolicyInstances()).append(","); if (getTrafficPolicyInstanceNameMarker() != null) sb.append("TrafficPolicyInstanceNameMarker: ").append(getTrafficPolicyInstanceNameMarker()).append(","); if (getTrafficPolicyInstanceTypeMarker() != null) sb.append("TrafficPolicyInstanceTypeMarker: ").append(getTrafficPolicyInstanceTypeMarker()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }