@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLogsLogGroupArn() == null) ? 0 : getCloudWatchLogsLogGroupArn().hashCode()); return hashCode; }
/** * <p> * The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is publishing logs to. * </p> * * @param cloudWatchLogsLogGroupArn * The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is publishing logs * to. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLoggingConfig withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn) { setCloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn); return this; }
/** * <p> * The ID of the hosted zone that CloudWatch Logs is logging queries for. * </p> * * @param hostedZoneId * The ID of the hosted zone that CloudWatch Logs is logging queries for. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLoggingConfig withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
public QueryLoggingConfig unmarshall(StaxUnmarshallerContext context) throws Exception { QueryLoggingConfig queryLoggingConfig = new QueryLoggingConfig(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return queryLoggingConfig; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Id", targetDepth)) { queryLoggingConfig.setId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("HostedZoneId", targetDepth)) { queryLoggingConfig.setHostedZoneId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("CloudWatchLogsLogGroupArn", targetDepth)) { queryLoggingConfig.setCloudWatchLogsLogGroupArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return queryLoggingConfig; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueryLoggingConfig() == null) ? 0 : getQueryLoggingConfig().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetQueryLoggingConfigResult == false) return false; GetQueryLoggingConfigResult other = (GetQueryLoggingConfigResult) obj; if (other.getQueryLoggingConfig() == null ^ this.getQueryLoggingConfig() == null) return false; if (other.getQueryLoggingConfig() != null && other.getQueryLoggingConfig().equals(this.getQueryLoggingConfig()) == false) return false; return true; }
/** * <p> * The ID for a configuration for DNS query logging. * </p> * * @param id * The ID for a configuration for DNS query logging. * @return Returns a reference to this object so that method calls can be chained together. */ public QueryLoggingConfig withId(String id) { setId(id); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueryLoggingConfig() == null) ? 0 : getQueryLoggingConfig().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 CreateQueryLoggingConfigResult == false) return false; CreateQueryLoggingConfigResult other = (CreateQueryLoggingConfigResult) obj; if (other.getQueryLoggingConfig() == null ^ this.getQueryLoggingConfig() == null) return false; if (other.getQueryLoggingConfig() != null && other.getQueryLoggingConfig().equals(this.getQueryLoggingConfig()) == 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; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof QueryLoggingConfig == false) return false; QueryLoggingConfig other = (QueryLoggingConfig) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == 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.getCloudWatchLogsLogGroupArn() == null ^ this.getCloudWatchLogsLogGroupArn() == null) return false; if (other.getCloudWatchLogsLogGroupArn() != null && other.getCloudWatchLogsLogGroupArn().equals(this.getCloudWatchLogsLogGroupArn()) == 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getCloudWatchLogsLogGroupArn() != null) sb.append("CloudWatchLogsLogGroupArn: ").append(getCloudWatchLogsLogGroupArn()); sb.append("}"); return sb.toString(); }