@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicyInstances() == null) ? 0 : getTrafficPolicyInstances().hashCode()); hashCode = prime * hashCode + ((getHostedZoneIdMarker() == null) ? 0 : getHostedZoneIdMarker().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> * If <code>IsTruncated</code> is <code>true</code>, <code>HostedZoneIdMarker</code> is the ID of the hosted zone of * the first traffic policy instance that Route 53 will return if you submit another * <code>ListTrafficPolicyInstances</code> request. * </p> * * @param hostedZoneIdMarker * If <code>IsTruncated</code> is <code>true</code>, <code>HostedZoneIdMarker</code> is the ID of the hosted * zone of the first traffic policy instance that Route 53 will return if you submit another * <code>ListTrafficPolicyInstances</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesResult withHostedZoneIdMarker(String hostedZoneIdMarker) { setHostedZoneIdMarker(hostedZoneIdMarker); return this; }
/** * <p> * A flag that indicates whether there are more traffic policy instances to be listed. If the response was * truncated, you can get more traffic policy instances by calling <code>ListTrafficPolicyInstances</code> again and * specifying the values of the <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 more traffic policy instances by calling <code>ListTrafficPolicyInstances</code> * again and specifying the values of the <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 ListTrafficPolicyInstancesResult withIsTruncated(Boolean isTruncated) { setIsTruncated(isTruncated); return this; }
public ListTrafficPolicyInstancesResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListTrafficPolicyInstancesResult listTrafficPolicyInstancesResult = new ListTrafficPolicyInstancesResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listTrafficPolicyInstancesResult.withTrafficPolicyInstances(new ArrayList<TrafficPolicyInstance>()); continue; listTrafficPolicyInstancesResult.withTrafficPolicyInstances(TrafficPolicyInstanceStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesResult.setHostedZoneIdMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesResult.setTrafficPolicyInstanceNameMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesResult.setTrafficPolicyInstanceTypeMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesResult.setIsTruncated(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyInstancesResult.setMaxItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The value that you specified for the <code>MaxItems</code> parameter in the call to * <code>ListTrafficPolicyInstances</code> that produced the current response. * </p> * * @param maxItems * The value that you specified for the <code>MaxItems</code> parameter in the call to * <code>ListTrafficPolicyInstances</code> that produced the current response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesResult withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
return false; ListTrafficPolicyInstancesResult other = (ListTrafficPolicyInstancesResult) obj; if (other.getTrafficPolicyInstances() == null ^ this.getTrafficPolicyInstances() == null) return false; if (other.getTrafficPolicyInstances() != null && other.getTrafficPolicyInstances().equals(this.getTrafficPolicyInstances()) == false) return false; if (other.getHostedZoneIdMarker() == null ^ this.getHostedZoneIdMarker() == null) return false; if (other.getHostedZoneIdMarker() != null && other.getHostedZoneIdMarker().equals(this.getHostedZoneIdMarker()) == 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 (getHostedZoneIdMarker() != null) sb.append("HostedZoneIdMarker: ").append(getHostedZoneIdMarker()).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(); }