@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAudit() == null) ? 0 : getAudit().hashCode()); hashCode = prime * hashCode + ((getGeneral() == null) ? 0 : getGeneral().hashCode()); return hashCode; }
/** * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. * * @param audit * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingLogs withAudit(Boolean audit) { setAudit(audit); return this; }
/** * Enables general logging. * * @param general * Enables general logging. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingLogs withGeneral(Boolean general) { setGeneral(general); return this; }
public PendingLogs unmarshall(JsonUnmarshallerContext context) throws Exception { PendingLogs pendingLogs = new PendingLogs(); if (context.testExpression("audit", targetDepth)) { context.nextToken(); pendingLogs.setAudit(context.getUnmarshaller(Boolean.class).unmarshall(context)); pendingLogs.setGeneral(context.getUnmarshaller(Boolean.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAudit() == null) ? 0 : getAudit().hashCode()); hashCode = prime * hashCode + ((getAuditLogGroup() == null) ? 0 : getAuditLogGroup().hashCode()); hashCode = prime * hashCode + ((getGeneral() == null) ? 0 : getGeneral().hashCode()); hashCode = prime * hashCode + ((getGeneralLogGroup() == null) ? 0 : getGeneralLogGroup().hashCode()); hashCode = prime * hashCode + ((getPending() == null) ? 0 : getPending().hashCode()); return hashCode; }
if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; return true;
public PendingLogs unmarshall(JsonUnmarshallerContext context) throws Exception { PendingLogs pendingLogs = new PendingLogs(); if (context.testExpression("audit", targetDepth)) { context.nextToken(); pendingLogs.setAudit(context.getUnmarshaller(Boolean.class).unmarshall(context)); pendingLogs.setGeneral(context.getUnmarshaller(Boolean.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAudit() == null) ? 0 : getAudit().hashCode()); hashCode = prime * hashCode + ((getAuditLogGroup() == null) ? 0 : getAuditLogGroup().hashCode()); hashCode = prime * hashCode + ((getGeneral() == null) ? 0 : getGeneral().hashCode()); hashCode = prime * hashCode + ((getGeneralLogGroup() == null) ? 0 : getGeneralLogGroup().hashCode()); hashCode = prime * hashCode + ((getPending() == null) ? 0 : getPending().hashCode()); return hashCode; }
if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; return true;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PendingLogs == false) return false; PendingLogs other = (PendingLogs) obj; if (other.getAudit() == null ^ this.getAudit() == null) return false; if (other.getAudit() != null && other.getAudit().equals(this.getAudit()) == false) return false; if (other.getGeneral() == null ^ this.getGeneral() == null) return false; if (other.getGeneral() != null && other.getGeneral().equals(this.getGeneral()) == false) return false; return true; }
/** * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. * * @param audit * Enables audit logging. Every user management action made using JMX or the ActiveMQ Web Console is logged. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingLogs withAudit(Boolean audit) { setAudit(audit); return this; }
/** * Enables general logging. * * @param general * Enables general logging. * @return Returns a reference to this object so that method calls can be chained together. */ public PendingLogs withGeneral(Boolean general) { setGeneral(general); 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 (getAudit() != null) sb.append("Audit: ").append(getAudit()).append(","); if (getGeneral() != null) sb.append("General: ").append(getGeneral()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(PendingLogs pendingLogs, ProtocolMarshaller protocolMarshaller) { if (pendingLogs == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pendingLogs.getAudit(), AUDIT_BINDING); protocolMarshaller.marshall(pendingLogs.getGeneral(), GENERAL_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 + ((getAudit() == null) ? 0 : getAudit().hashCode()); hashCode = prime * hashCode + ((getGeneral() == null) ? 0 : getGeneral().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PendingLogs == false) return false; PendingLogs other = (PendingLogs) obj; if (other.getAudit() == null ^ this.getAudit() == null) return false; if (other.getAudit() != null && other.getAudit().equals(this.getAudit()) == false) return false; if (other.getGeneral() == null ^ this.getGeneral() == null) return false; if (other.getGeneral() != null && other.getGeneral().equals(this.getGeneral()) == 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 (getAudit() != null) sb.append("Audit: ").append(getAudit()).append(","); if (getGeneral() != null) sb.append("General: ").append(getGeneral()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(PendingLogs pendingLogs, ProtocolMarshaller protocolMarshaller) { if (pendingLogs == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pendingLogs.getAudit(), AUDIT_BINDING); protocolMarshaller.marshall(pendingLogs.getGeneral(), GENERAL_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }