@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 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; }
/** * 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(); }
/** * Marshall the given parameter object. */ public void marshall(LoggingOptionsPayload loggingOptionsPayload, ProtocolMarshaller protocolMarshaller) { if (loggingOptionsPayload == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loggingOptionsPayload.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(loggingOptionsPayload.getLogLevel(), LOGLEVEL_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@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; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getRoleArn() + ","); if (getLogLevel() != null) sb.append("logLevel: " + getLogLevel()); sb.append("}"); return sb.toString(); }
@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 void marshall(LoggingOptionsPayload loggingOptionsPayload, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (loggingOptionsPayload.getRoleArn() != null) { String roleArn = loggingOptionsPayload.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn); } if (loggingOptionsPayload.getLogLevel() != null) { String logLevel = loggingOptionsPayload.getLogLevel(); jsonWriter.name("logLevel"); jsonWriter.value(logLevel); } jsonWriter.endObject(); }
@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 + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getLogLevel() == null) ? 0 : getLogLevel().hashCode()); return hashCode; }
@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; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getRoleArn() + ","); if (getLogLevel() != null) sb.append("logLevel: " + getLogLevel()); sb.append("}"); return sb.toString(); }
/** * 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(); }
@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; } }
/** * Marshall the given parameter object. */ public void marshall(LoggingOptionsPayload loggingOptionsPayload, ProtocolMarshaller protocolMarshaller) { if (loggingOptionsPayload == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(loggingOptionsPayload.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(loggingOptionsPayload.getLogLevel(), LOGLEVEL_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public void marshall(LoggingOptionsPayload loggingOptionsPayload, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (loggingOptionsPayload.getRoleArn() != null) { String roleArn = loggingOptionsPayload.getRoleArn(); jsonWriter.name("roleArn"); jsonWriter.value(roleArn); } if (loggingOptionsPayload.getLogLevel() != null) { String logLevel = loggingOptionsPayload.getLogLevel(); jsonWriter.name("logLevel"); jsonWriter.value(logLevel); } jsonWriter.endObject(); }