@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZones() == null) ? 0 : getHostedZones().hashCode()); hashCode = prime * hashCode + ((getDNSName() == null) ? 0 : getDNSName().hashCode()); hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getNextDNSName() == null) ? 0 : getNextDNSName().hashCode()); hashCode = prime * hashCode + ((getNextHostedZoneId() == null) ? 0 : getNextHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * <p> * For the second and subsequent calls to <code>ListHostedZonesByName</code>, <code>DNSName</code> is the value that * you specified for the <code>dnsname</code> parameter in the request that produced the current response. * </p> * * @param dNSName * For the second and subsequent calls to <code>ListHostedZonesByName</code>, <code>DNSName</code> is the * value that you specified for the <code>dnsname</code> parameter in the request that produced the current * response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesByNameResult withDNSName(String dNSName) { setDNSName(dNSName); return this; }
/** * <p> * The ID that Amazon Route 53 assigned to the hosted zone when you created it. * </p> * * @param hostedZoneId * The ID that Amazon Route 53 assigned to the hosted zone when you created it. * @return Returns a reference to this object so that method calls can be chained together. */ public ListHostedZonesByNameResult withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
public ListHostedZonesByNameResult unmarshall(StaxUnmarshallerContext context) throws Exception { ListHostedZonesByNameResult listHostedZonesByNameResult = new ListHostedZonesByNameResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; listHostedZonesByNameResult.withHostedZones(new ArrayList<HostedZone>()); continue; listHostedZonesByNameResult.withHostedZones(HostedZoneStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setDNSName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setHostedZoneId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setIsTruncated(BooleanStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setNextDNSName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setNextHostedZoneId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; listHostedZonesByNameResult.setMaxItems(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
); List<HostedZone> zoneList = listResult.getHostedZones(); String zoneName = dnsName + ".";
return false; ListHostedZonesByNameResult other = (ListHostedZonesByNameResult) obj; if (other.getHostedZones() == null ^ this.getHostedZones() == null) return false; if (other.getHostedZones() != null && other.getHostedZones().equals(this.getHostedZones()) == false) return false; if (other.getDNSName() == null ^ this.getDNSName() == null) return false; if (other.getDNSName() != null && other.getDNSName().equals(this.getDNSName()) == false) return false; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == 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.getNextDNSName() == null ^ this.getNextDNSName() == null) return false; if (other.getNextDNSName() != null && other.getNextDNSName().equals(this.getNextDNSName()) == false) return false; if (other.getNextHostedZoneId() == null ^ this.getNextHostedZoneId() == null) return false; if (other.getNextHostedZoneId() != null && other.getNextHostedZoneId().equals(this.getNextHostedZoneId()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false)
/** * 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 (getHostedZones() != null) sb.append("HostedZones: ").append(getHostedZones()).append(","); if (getDNSName() != null) sb.append("DNSName: ").append(getDNSName()).append(","); if (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getNextDNSName() != null) sb.append("NextDNSName: ").append(getNextDNSName()).append(","); if (getNextHostedZoneId() != null) sb.append("NextHostedZoneId: ").append(getNextHostedZoneId()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }