@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; }
/** * <p> * A complex type that contains information about the <code>CreateHostedZone</code> request. * </p> * * @param changeInfo * A complex type that contains information about the <code>CreateHostedZone</code> request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHostedZoneResult withChangeInfo(ChangeInfo changeInfo) { setChangeInfo(changeInfo); return this; }
/** * <p> * A complex type that describes the name servers for this hosted zone. * </p> * * @param delegationSet * A complex type that describes the name servers for this hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHostedZoneResult withDelegationSet(DelegationSet delegationSet) { setDelegationSet(delegationSet); return this; }
public CreateHostedZoneResult unmarshall(StaxUnmarshallerContext context) throws Exception { CreateHostedZoneResult createHostedZoneResult = new CreateHostedZoneResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; createHostedZoneResult.setLocation(StringStaxUnmarshaller.getInstance().unmarshall(context)); createHostedZoneResult.setHostedZone(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; createHostedZoneResult.setChangeInfo(ChangeInfoStaxUnmarshaller.getInstance().unmarshall(context)); continue; createHostedZoneResult.setDelegationSet(DelegationSetStaxUnmarshaller.getInstance().unmarshall(context)); continue; createHostedZoneResult.setVPC(VPCStaxUnmarshaller.getInstance().unmarshall(context)); continue;
} else if (obj instanceof CreateHostedZoneResult) { CreateHostedZoneResult result = (CreateHostedZoneResult)obj; removePrefix(result.getChangeInfo()); removePrefix(result.getHostedZone()); removePrefix(result.getDelegationSet()); } else if (obj instanceof DeleteHostedZoneResult) { DeleteHostedZoneResult result = (DeleteHostedZoneResult)obj;
nameServers = createHostedZoneResult.getDelegationSet().getNameServers(); hostedZoneId = createHostedZoneResult.getHostedZone().getId(); getLogger().info("HostedZone {} ({} - {}) is created.", hostedZoneId, hostedZoneName, callerReference); nameServers.forEach(it -> {
); log_.info("Zone " + dnsName + " created as " + createResult.getHostedZone().getId()); return createResult.getHostedZone().getId();
/** * <p> * A complex type that contains general information about the hosted zone. * </p> * * @param hostedZone * A complex type that contains general information about the hosted zone. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHostedZoneResult withHostedZone(HostedZone hostedZone) { setHostedZone(hostedZone); return this; }
return false; CreateHostedZoneResult other = (CreateHostedZoneResult) obj; if (other.getHostedZone() == null ^ this.getHostedZone() == null) return false; if (other.getHostedZone() != null && other.getHostedZone().equals(this.getHostedZone()) == false) return false; if (other.getChangeInfo() == null ^ this.getChangeInfo() == null) return false; if (other.getChangeInfo() != null && other.getChangeInfo().equals(this.getChangeInfo()) == 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.getVPC() == null ^ this.getVPC() == null) return false; if (other.getVPC() != null && other.getVPC().equals(this.getVPC()) == 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;
/** * 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 (getHostedZone() != null) sb.append("HostedZone: ").append(getHostedZone()).append(","); if (getChangeInfo() != null) sb.append("ChangeInfo: ").append(getChangeInfo()).append(","); if (getDelegationSet() != null) sb.append("DelegationSet: ").append(getDelegationSet()).append(","); if (getVPC() != null) sb.append("VPC: ").append(getVPC()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()); sb.append("}"); return sb.toString(); }