@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicies() == null) ? 0 : getTrafficPolicies().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersionMarker() == null) ? 0 : getTrafficPolicyVersionMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * <p> * A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, you * can get the next group of traffic policies by submitting another <code>ListTrafficPolicyVersions</code> request * and specifying the value of <code>NextMarker</code> in the <code>marker</code> parameter. * </p> * * @param isTruncated * A flag that indicates whether there are more traffic policies to be listed. If the response was truncated, * you can get the next group of traffic policies by submitting another * <code>ListTrafficPolicyVersions</code> request and specifying the value of <code>NextMarker</code> in the * <code>marker</code> parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyVersionsResult withIsTruncated(Boolean isTruncated) { setIsTruncated(isTruncated); return this; }
/** * <p> * The value that you specified for the <code>maxitems</code> parameter in the * <code>ListTrafficPolicyVersions</code> request that produced the current response. * </p> * * @param maxItems * The value that you specified for the <code>maxitems</code> parameter in the * <code>ListTrafficPolicyVersions</code> request that produced the current response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyVersionsResult withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
public ListTrafficPolicyVersionsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListTrafficPolicyVersionsResult listTrafficPolicyVersionsResult = new ListTrafficPolicyVersionsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listTrafficPolicyVersionsResult.withTrafficPolicies(new ArrayList<TrafficPolicy>()); continue; listTrafficPolicyVersionsResult.withTrafficPolicies(TrafficPolicyStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyVersionsResult.setIsTruncated(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyVersionsResult.setTrafficPolicyVersionMarker(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listTrafficPolicyVersionsResult.setMaxItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is associated * with the specified traffic policy. * </p> * * @param trafficPolicies * A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is * associated with the specified traffic policy. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyVersionsResult withTrafficPolicies(java.util.Collection<TrafficPolicy> trafficPolicies) { setTrafficPolicies(trafficPolicies); return this; }
/** * <p> * If <code>IsTruncated</code> is <code>true</code>, the value of <code>TrafficPolicyVersionMarker</code> identifies * the first traffic policy that Amazon Route 53 will return if you submit another request. Call * <code>ListTrafficPolicyVersions</code> again and specify the value of <code>TrafficPolicyVersionMarker</code> in * the <code>TrafficPolicyVersionMarker</code> request parameter. * </p> * <p> * This element is present only if <code>IsTruncated</code> is <code>true</code>. * </p> * * @param trafficPolicyVersionMarker * If <code>IsTruncated</code> is <code>true</code>, the value of <code>TrafficPolicyVersionMarker</code> * identifies the first traffic policy that Amazon Route 53 will return if you submit another request. Call * <code>ListTrafficPolicyVersions</code> again and specify the value of * <code>TrafficPolicyVersionMarker</code> in the <code>TrafficPolicyVersionMarker</code> request * parameter.</p> * <p> * This element is present only if <code>IsTruncated</code> is <code>true</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyVersionsResult withTrafficPolicyVersionMarker(String trafficPolicyVersionMarker) { setTrafficPolicyVersionMarker(trafficPolicyVersionMarker); return this; }
/** * <p> * A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is associated * with the specified traffic policy. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setTrafficPolicies(java.util.Collection)} or {@link #withTrafficPolicies(java.util.Collection)} if you * want to override the existing values. * </p> * * @param trafficPolicies * A list that contains one <code>TrafficPolicy</code> element for each traffic policy version that is * associated with the specified traffic policy. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyVersionsResult withTrafficPolicies(TrafficPolicy... trafficPolicies) { if (this.trafficPolicies == null) { setTrafficPolicies(new com.amazonaws.internal.SdkInternalList<TrafficPolicy>(trafficPolicies.length)); } for (TrafficPolicy ele : trafficPolicies) { this.trafficPolicies.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTrafficPolicyVersionsResult == false) return false; ListTrafficPolicyVersionsResult other = (ListTrafficPolicyVersionsResult) obj; if (other.getTrafficPolicies() == null ^ this.getTrafficPolicies() == null) return false; if (other.getTrafficPolicies() != null && other.getTrafficPolicies().equals(this.getTrafficPolicies()) == 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.getTrafficPolicyVersionMarker() == null ^ this.getTrafficPolicyVersionMarker() == null) return false; if (other.getTrafficPolicyVersionMarker() != null && other.getTrafficPolicyVersionMarker().equals(this.getTrafficPolicyVersionMarker()) == 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 (getTrafficPolicies() != null) sb.append("TrafficPolicies: ").append(getTrafficPolicies()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getTrafficPolicyVersionMarker() != null) sb.append("TrafficPolicyVersionMarker: ").append(getTrafficPolicyVersionMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }