/** * 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 (getScheduleDefinitions() != null) sb.append("ScheduleDefinitions: ").append(getScheduleDefinitions()).append(","); if (getScheduleIdentifier() != null) sb.append("ScheduleIdentifier: ").append(getScheduleIdentifier()).append(","); if (getScheduleDescription() != null) sb.append("ScheduleDescription: ").append(getScheduleDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getNextInvocations() != null) sb.append("NextInvocations: ").append(getNextInvocations()).append(","); if (getAssociatedClusterCount() != null) sb.append("AssociatedClusterCount: ").append(getAssociatedClusterCount()).append(","); if (getAssociatedClusters() != null) sb.append("AssociatedClusters: ").append(getAssociatedClusters()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScheduleDefinitions() == null) ? 0 : getScheduleDefinitions().hashCode()); hashCode = prime * hashCode + ((getScheduleIdentifier() == null) ? 0 : getScheduleIdentifier().hashCode()); hashCode = prime * hashCode + ((getScheduleDescription() == null) ? 0 : getScheduleDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getNextInvocations() == null) ? 0 : getNextInvocations().hashCode()); hashCode = prime * hashCode + ((getAssociatedClusterCount() == null) ? 0 : getAssociatedClusterCount().hashCode()); hashCode = prime * hashCode + ((getAssociatedClusters() == null) ? 0 : getAssociatedClusters().hashCode()); return hashCode; }
return false; SnapshotSchedule other = (SnapshotSchedule) obj; if (other.getScheduleDefinitions() == null ^ this.getScheduleDefinitions() == null) return false; if (other.getScheduleDefinitions() != null && other.getScheduleDefinitions().equals(this.getScheduleDefinitions()) == false) return false; if (other.getScheduleIdentifier() == null ^ this.getScheduleIdentifier() == null)
/** * 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 (getScheduleDefinitions() != null) sb.append("ScheduleDefinitions: ").append(getScheduleDefinitions()).append(","); if (getScheduleIdentifier() != null) sb.append("ScheduleIdentifier: ").append(getScheduleIdentifier()).append(","); if (getScheduleDescription() != null) sb.append("ScheduleDescription: ").append(getScheduleDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getNextInvocations() != null) sb.append("NextInvocations: ").append(getNextInvocations()).append(","); if (getAssociatedClusterCount() != null) sb.append("AssociatedClusterCount: ").append(getAssociatedClusterCount()).append(","); if (getAssociatedClusters() != null) sb.append("AssociatedClusters: ").append(getAssociatedClusters()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScheduleDefinitions() == null) ? 0 : getScheduleDefinitions().hashCode()); hashCode = prime * hashCode + ((getScheduleIdentifier() == null) ? 0 : getScheduleIdentifier().hashCode()); hashCode = prime * hashCode + ((getScheduleDescription() == null) ? 0 : getScheduleDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getNextInvocations() == null) ? 0 : getNextInvocations().hashCode()); hashCode = prime * hashCode + ((getAssociatedClusterCount() == null) ? 0 : getAssociatedClusterCount().hashCode()); hashCode = prime * hashCode + ((getAssociatedClusters() == null) ? 0 : getAssociatedClusters().hashCode()); return hashCode; }
return false; SnapshotSchedule other = (SnapshotSchedule) obj; if (other.getScheduleDefinitions() == null ^ this.getScheduleDefinitions() == null) return false; if (other.getScheduleDefinitions() != null && other.getScheduleDefinitions().equals(this.getScheduleDefinitions()) == false) return false; if (other.getScheduleIdentifier() == null ^ this.getScheduleIdentifier() == null)