/** * 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 (getConfigurationSet() != null) sb.append("ConfigurationSet: ").append(getConfigurationSet()).append(","); if (getEventDestinations() != null) sb.append("EventDestinations: ").append(getEventDestinations()).append(","); if (getTrackingOptions() != null) sb.append("TrackingOptions: ").append(getTrackingOptions()).append(","); if (getReputationOptions() != null) sb.append("ReputationOptions: ").append(getReputationOptions()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetResult == false) return false; DescribeConfigurationSetResult other = (DescribeConfigurationSetResult) obj; if (other.getConfigurationSet() == null ^ this.getConfigurationSet() == null) return false; if (other.getConfigurationSet() != null && other.getConfigurationSet().equals(this.getConfigurationSet()) == false) return false; if (other.getEventDestinations() == null ^ this.getEventDestinations() == null) return false; if (other.getEventDestinations() != null && other.getEventDestinations().equals(this.getEventDestinations()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; if (other.getReputationOptions() == null ^ this.getReputationOptions() == null) return false; if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == 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 (getConfigurationSet() != null) sb.append("ConfigurationSet: " + getConfigurationSet() + ","); if (getEventDestinations() != null) sb.append("EventDestinations: " + getEventDestinations() + ","); if (getTrackingOptions() != null) sb.append("TrackingOptions: " + getTrackingOptions() + ","); if (getReputationOptions() != null) sb.append("ReputationOptions: " + getReputationOptions()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
&& other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; if (other.getReputationOptions() == null ^ this.getReputationOptions() == null) return false; if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == 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 (getConfigurationSet() != null) sb.append("ConfigurationSet: ").append(getConfigurationSet()).append(","); if (getEventDestinations() != null) sb.append("EventDestinations: ").append(getEventDestinations()).append(","); if (getTrackingOptions() != null) sb.append("TrackingOptions: ").append(getTrackingOptions()).append(","); if (getReputationOptions() != null) sb.append("ReputationOptions: ").append(getReputationOptions()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConfigurationSet() == null) ? 0 : getConfigurationSet().hashCode()); hashCode = prime * hashCode + ((getEventDestinations() == null) ? 0 : getEventDestinations().hashCode()); hashCode = prime * hashCode + ((getTrackingOptions() == null) ? 0 : getTrackingOptions().hashCode()); hashCode = prime * hashCode + ((getReputationOptions() == null) ? 0 : getReputationOptions().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeConfigurationSetResult == false) return false; DescribeConfigurationSetResult other = (DescribeConfigurationSetResult) obj; if (other.getConfigurationSet() == null ^ this.getConfigurationSet() == null) return false; if (other.getConfigurationSet() != null && other.getConfigurationSet().equals(this.getConfigurationSet()) == false) return false; if (other.getEventDestinations() == null ^ this.getEventDestinations() == null) return false; if (other.getEventDestinations() != null && other.getEventDestinations().equals(this.getEventDestinations()) == false) return false; if (other.getTrackingOptions() == null ^ this.getTrackingOptions() == null) return false; if (other.getTrackingOptions() != null && other.getTrackingOptions().equals(this.getTrackingOptions()) == false) return false; if (other.getReputationOptions() == null ^ this.getReputationOptions() == null) return false; if (other.getReputationOptions() != null && other.getReputationOptions().equals(this.getReputationOptions()) == false) return false; return true; }