@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLoggingConfigurationResult == false) return false; GetLoggingConfigurationResult other = (GetLoggingConfigurationResult) obj; if (other.getLoggingConfiguration() == null ^ this.getLoggingConfiguration() == null) return false; if (other.getLoggingConfiguration() != null && other.getLoggingConfiguration().equals(this.getLoggingConfiguration()) == false) return false; return true; }
/** * <p> * The <a>LoggingConfiguration</a> for the specified web ACL. * </p> * * @param loggingConfiguration * The <a>LoggingConfiguration</a> for the specified web ACL. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLoggingConfigurationResult withLoggingConfiguration(LoggingConfiguration loggingConfiguration) { setLoggingConfiguration(loggingConfiguration); return this; }
public GetLoggingConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetLoggingConfigurationResult getLoggingConfigurationResult = new GetLoggingConfigurationResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return getLoggingConfigurationResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("LoggingConfiguration", targetDepth)) { context.nextToken(); getLoggingConfigurationResult.setLoggingConfiguration(LoggingConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getLoggingConfigurationResult; }
public GetLoggingConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception { GetLoggingConfigurationResult getLoggingConfigurationResult = new GetLoggingConfigurationResult(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return getLoggingConfigurationResult; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("LoggingConfiguration", targetDepth)) { context.nextToken(); getLoggingConfigurationResult.setLoggingConfiguration(LoggingConfigurationJsonUnmarshaller.getInstance().unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return getLoggingConfigurationResult; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingConfiguration() == null) ? 0 : getLoggingConfiguration().hashCode()); return hashCode; }
/** * 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 (getLoggingConfiguration() != null) sb.append("LoggingConfiguration: ").append(getLoggingConfiguration()); sb.append("}"); return sb.toString(); }