/** * 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 (getAuditLogGroup() != null) sb.append("AuditLogGroup: ").append(getAuditLogGroup()).append(","); if (getGeneral() != null) sb.append("General: ").append(getGeneral()).append(","); if (getGeneralLogGroup() != null) sb.append("GeneralLogGroup: ").append(getGeneralLogGroup()).append(","); if (getPending() != null) sb.append("Pending: ").append(getPending()); sb.append("}"); return sb.toString(); }
@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; }
/** * Marshall the given parameter object. */ public void marshall(LogsSummary logsSummary, ProtocolMarshaller protocolMarshaller) { if (logsSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(logsSummary.getAudit(), AUDIT_BINDING); protocolMarshaller.marshall(logsSummary.getAuditLogGroup(), AUDITLOGGROUP_BINDING); protocolMarshaller.marshall(logsSummary.getGeneral(), GENERAL_BINDING); protocolMarshaller.marshall(logsSummary.getGeneralLogGroup(), GENERALLOGGROUP_BINDING); protocolMarshaller.marshall(logsSummary.getPending(), PENDING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getGeneralLogGroup() != null && other.getGeneralLogGroup().equals(this.getGeneralLogGroup()) == false) return false; if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == 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 (getAuditLogGroup() != null) sb.append("AuditLogGroup: ").append(getAuditLogGroup()).append(","); if (getGeneral() != null) sb.append("General: ").append(getGeneral()).append(","); if (getGeneralLogGroup() != null) sb.append("GeneralLogGroup: ").append(getGeneralLogGroup()).append(","); if (getPending() != null) sb.append("Pending: ").append(getPending()); sb.append("}"); return sb.toString(); }
@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; }
/** * Marshall the given parameter object. */ public void marshall(LogsSummary logsSummary, ProtocolMarshaller protocolMarshaller) { if (logsSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(logsSummary.getAudit(), AUDIT_BINDING); protocolMarshaller.marshall(logsSummary.getAuditLogGroup(), AUDITLOGGROUP_BINDING); protocolMarshaller.marshall(logsSummary.getGeneral(), GENERAL_BINDING); protocolMarshaller.marshall(logsSummary.getGeneralLogGroup(), GENERALLOGGROUP_BINDING); protocolMarshaller.marshall(logsSummary.getPending(), PENDING_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getGeneralLogGroup() != null && other.getGeneralLogGroup().equals(this.getGeneralLogGroup()) == false) return false; if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; return true;