@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVPCs() == null) ? 0 : getVPCs().hashCode()); return hashCode; }
/** * <p> * The ID of the hosted zone that you can associate the listed VPCs with. * </p> * * @param hostedZoneId * The ID of the hosted zone that you can associate the listed VPCs with. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVPCAssociationAuthorizationsResult withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * <p> * When the response includes a <code>NextToken</code> element, there are more VPCs that can be associated with the * specified hosted zone. To get the next page of VPCs, submit another <code>ListVPCAssociationAuthorizations</code> * request, and include the value of the <code>NextToken</code> element from the response in the * <code>nexttoken</code> request parameter. * </p> * * @param nextToken * When the response includes a <code>NextToken</code> element, there are more VPCs that can be associated * with the specified hosted zone. To get the next page of VPCs, submit another * <code>ListVPCAssociationAuthorizations</code> request, and include the value of the <code>NextToken</code> * element from the response in the <code>nexttoken</code> request parameter. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVPCAssociationAuthorizationsResult withNextToken(String nextToken) { setNextToken(nextToken); return this; }
public ListVPCAssociationAuthorizationsResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListVPCAssociationAuthorizationsResult listVPCAssociationAuthorizationsResult = new ListVPCAssociationAuthorizationsResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listVPCAssociationAuthorizationsResult.setHostedZoneId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listVPCAssociationAuthorizationsResult.setNextToken(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listVPCAssociationAuthorizationsResult.withVPCs(new ArrayList<VPC>()); continue; listVPCAssociationAuthorizationsResult.withVPCs(VPCStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * The list of VPCs that are authorized to be associated with the specified hosted zone. * </p> * * @param vPCs * The list of VPCs that are authorized to be associated with the specified hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVPCAssociationAuthorizationsResult withVPCs(java.util.Collection<VPC> vPCs) { setVPCs(vPCs); return this; }
/** * <p> * The list of VPCs that are authorized to be associated with the specified hosted zone. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setVPCs(java.util.Collection)} or {@link #withVPCs(java.util.Collection)} if you want to override the * existing values. * </p> * * @param vPCs * The list of VPCs that are authorized to be associated with the specified hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public ListVPCAssociationAuthorizationsResult withVPCs(VPC... vPCs) { if (this.vPCs == null) { setVPCs(new com.amazonaws.internal.SdkInternalList<VPC>(vPCs.length)); } for (VPC ele : vPCs) { this.vPCs.add(ele); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListVPCAssociationAuthorizationsResult == false) return false; ListVPCAssociationAuthorizationsResult other = (ListVPCAssociationAuthorizationsResult) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getVPCs() == null ^ this.getVPCs() == null) return false; if (other.getVPCs() != null && other.getVPCs().equals(this.getVPCs()) == 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 (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getVPCs() != null) sb.append("VPCs: ").append(getVPCs()); sb.append("}"); return sb.toString(); }