@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getLogLevel() == null) ? 0 : getLogLevel().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingOptionsPayload() == null) ? 0 : getLoggingOptionsPayload().hashCode()); return hashCode; }
/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public LoggingOptionsPayload withLogLevel(String logLevel) { setLogLevel(logLevel); return this; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); loggingOptionsPayload.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); loggingOptionsPayload.setLogLevel(context.getUnmarshaller(String.class).unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetLoggingOptionsRequest == false) return false; SetLoggingOptionsRequest other = (SetLoggingOptionsRequest) obj; if (other.getLoggingOptionsPayload() == null ^ this.getLoggingOptionsPayload() == null) return false; if (other.getLoggingOptionsPayload() != null && other.getLoggingOptionsPayload().equals(this.getLoggingOptionsPayload()) == false) return false; return true; }
/** * <p> * The ARN of the IAM role that grants access. * </p> * * @param roleArn * The ARN of the IAM role that grants access. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingOptionsPayload withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @see LogLevel */ public void setLogLevel(LogLevel logLevel) { withLogLevel(logLevel); }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetLoggingOptionsRequest == false) return false; SetLoggingOptionsRequest other = (SetLoggingOptionsRequest) obj; if (other.getLoggingOptionsPayload() == null ^ this.getLoggingOptionsPayload() == null) return false; if (other.getLoggingOptionsPayload() != null && other.getLoggingOptionsPayload().equals(this.getLoggingOptionsPayload()) == false) return false; return true; } }
/** * <p> * The ARN of the IAM role that grants access. * </p> * * @param roleArn * The ARN of the IAM role that grants access. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingOptionsPayload withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @see LogLevel */ public void setLogLevel(LogLevel logLevel) { withLogLevel(logLevel); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LoggingOptionsPayload == false) return false; LoggingOptionsPayload other = (LoggingOptionsPayload) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getLogLevel() == null ^ this.getLogLevel() == null) return false; if (other.getLogLevel() != null && other.getLogLevel().equals(this.getLogLevel()) == false) return false; return true; }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { loggingOptionsPayload.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("logLevel")) { loggingOptionsPayload.setLogLevel(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return loggingOptionsPayload; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingOptionsPayload() == null) ? 0 : getLoggingOptionsPayload().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetLoggingOptionsRequest == false) return false; SetLoggingOptionsRequest other = (SetLoggingOptionsRequest) obj; if (other.getLoggingOptionsPayload() == null ^ this.getLoggingOptionsPayload() == null) return false; if (other.getLoggingOptionsPayload() != null && other.getLoggingOptionsPayload().equals(this.getLoggingOptionsPayload()) == false) return false; return true; }
/** * <p> * The log level. * </p> * * @param logLevel * The log level. * @return Returns a reference to this object so that method calls can be chained together. * @see LogLevel */ public LoggingOptionsPayload withLogLevel(String logLevel) { setLogLevel(logLevel); 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 (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getLogLevel() != null) sb.append("LogLevel: ").append(getLogLevel()); sb.append("}"); return sb.toString(); }
public LoggingOptionsPayload unmarshall(JsonUnmarshallerContext context) throws Exception { LoggingOptionsPayload loggingOptionsPayload = new LoggingOptionsPayload(); if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); loggingOptionsPayload.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); loggingOptionsPayload.setLogLevel(context.getUnmarshaller(String.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLoggingOptionsPayload() == null) ? 0 : getLoggingOptionsPayload().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SetLoggingOptionsRequest == false) return false; SetLoggingOptionsRequest other = (SetLoggingOptionsRequest) obj; if (other.getLoggingOptionsPayload() == null ^ this.getLoggingOptionsPayload() == null) return false; if (other.getLoggingOptionsPayload() != null && other.getLoggingOptionsPayload().equals(this.getLoggingOptionsPayload()) == false) return false; return true; } }