@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getCallerReference() == null) ? 0 : getCallerReference().hashCode()); hashCode = prime * hashCode + ((getNameServers() == null) ? 0 : getNameServers().hashCode()); return hashCode; }
/** * <p> * The value that you specified for <code>CallerReference</code> when you created the reusable delegation set. * </p> * * @param callerReference * The value that you specified for <code>CallerReference</code> when you created the reusable delegation * set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withCallerReference(String callerReference) { setCallerReference(callerReference); return this; }
public DelegationSet unmarshall(StaxUnmarshallerContext context) throws Exception { DelegationSet delegationSet = new DelegationSet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; delegationSet.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; delegationSet.setCallerReference(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; delegationSet.withNameServers(new ArrayList<String>()); continue; delegationSet.withNameServers(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
ObjectNode toJson(GetHostedZoneResult hzResult) { HostedZone hz = hzResult.getHostedZone(); ObjectNode n = mapper.createObjectNode(); n.put("aws_account", getAccountId()); n.put("aws_id", hz.getId()); n.put("aws_name", hz.getName()); n.put("aws_callerReference", hz.getCallerReference()); n.put("aws_resourceRecordSetCount", hz.getResourceRecordSetCount()); n.put("aws_comment", hz.getConfig().getComment()); n.put("aws_privateZone", hz.getConfig().getPrivateZone()); n.put("aws_arn", "arn:aws:route53:::hostedzone/" + hz.getId()); ArrayNode an = mapper.createArrayNode(); if (hzResult.getDelegationSet() != null) { hzResult.getDelegationSet().getNameServers().forEach(ns -> { an.add(ns); }); } n.set("aws_nameServers", an); return n; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDelegationSet() == null) ? 0 : getDelegationSet().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetReusableDelegationSetResult == false) return false; GetReusableDelegationSetResult other = (GetReusableDelegationSetResult) obj; if (other.getDelegationSet() == null ^ this.getDelegationSet() == null) return false; if (other.getDelegationSet() != null && other.getDelegationSet().equals(this.getDelegationSet()) == false) return false; return true; }
/** * Constructs a new DelegationSet object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. */ public DelegationSet(java.util.List<String> nameServers) { setNameServers(nameServers); }
/** * <p> * The ID that Amazon Route 53 assigns to a reusable delegation set. * </p> * * @param id * The ID that Amazon Route 53 assigns to a reusable delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withId(String id) { setId(id); return this; }
nameServers = createHostedZoneResult.getDelegationSet().getNameServers(); hostedZoneId = createHostedZoneResult.getHostedZone().getId(); getLogger().info("HostedZone {} ({} - {}) is created.", hostedZoneId, hostedZoneName, callerReference);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDelegationSet() == null) ? 0 : getDelegationSet().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateReusableDelegationSetResult == false) return false; CreateReusableDelegationSetResult other = (CreateReusableDelegationSetResult) obj; if (other.getDelegationSet() == null ^ this.getDelegationSet() == null) return false; if (other.getDelegationSet() != null && other.getDelegationSet().equals(this.getDelegationSet()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; return true; }
/** * <p> * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * </p> * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(java.util.Collection<String> nameServers) { setNameServers(nameServers); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DelegationSet == false) return false; DelegationSet other = (DelegationSet) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getCallerReference() == null ^ this.getCallerReference() == null) return false; if (other.getCallerReference() != null && other.getCallerReference().equals(this.getCallerReference()) == false) return false; if (other.getNameServers() == null ^ this.getNameServers() == null) return false; if (other.getNameServers() != null && other.getNameServers().equals(this.getNameServers()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZone() == null) ? 0 : getHostedZone().hashCode()); hashCode = prime * hashCode + ((getDelegationSet() == null) ? 0 : getDelegationSet().hashCode()); hashCode = prime * hashCode + ((getVPCs() == null) ? 0 : getVPCs().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetHostedZoneResult == false) return false; GetHostedZoneResult other = (GetHostedZoneResult) obj; if (other.getHostedZone() == null ^ this.getHostedZone() == null) return false; if (other.getHostedZone() != null && other.getHostedZone().equals(this.getHostedZone()) == false) return false; if (other.getDelegationSet() == null ^ this.getDelegationSet() == null) return false; if (other.getDelegationSet() != null && other.getDelegationSet().equals(this.getDelegationSet()) == 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; }
/** * <p> * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setNameServers(java.util.Collection)} or {@link #withNameServers(java.util.Collection)} if you want to * override the existing values. * </p> * * @param nameServers * A complex type that contains a list of the authoritative name servers for a hosted zone or for a reusable * delegation set. * @return Returns a reference to this object so that method calls can be chained together. */ public DelegationSet withNameServers(String... nameServers) { if (this.nameServers == null) { setNameServers(new com.amazonaws.internal.SdkInternalList<String>(nameServers.length)); } for (String ele : nameServers) { this.nameServers.add(ele); } return this; }
/** * 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getCallerReference() != null) sb.append("CallerReference: ").append(getCallerReference()).append(","); if (getNameServers() != null) sb.append("NameServers: ").append(getNameServers()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZone() == null) ? 0 : getHostedZone().hashCode()); hashCode = prime * hashCode + ((getChangeInfo() == null) ? 0 : getChangeInfo().hashCode()); hashCode = prime * hashCode + ((getDelegationSet() == null) ? 0 : getDelegationSet().hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); return hashCode; }
if (other.getDelegationSet() == null ^ this.getDelegationSet() == null) return false; if (other.getDelegationSet() != null && other.getDelegationSet().equals(this.getDelegationSet()) == false) return false; if (other.getVPC() == null ^ this.getVPC() == null)