* The Amazon Resource Name (ARN) of the on-call rotation. *
*/ private String rotationArn; /** ** The name of the on-call rotation. *
*/ private String name; /** ** The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. *
*/ private java.util.List* The specified start time for the on-call rotation. *
*/ private java.util.Date startTime; /** ** The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. *
*/ private String timeZoneId; /** ** Specifies how long a rotation lasts before restarting at the beginning of the shift order. *
*/ private RecurrenceSettings recurrence; /** ** The Amazon Resource Name (ARN) of the on-call rotation. *
* * @param rotationArn * The Amazon Resource Name (ARN) of the on-call rotation. */ public void setRotationArn(String rotationArn) { this.rotationArn = rotationArn; } /** ** The Amazon Resource Name (ARN) of the on-call rotation. *
* * @return The Amazon Resource Name (ARN) of the on-call rotation. */ public String getRotationArn() { return this.rotationArn; } /** ** The Amazon Resource Name (ARN) of the on-call rotation. *
* * @param rotationArn * The Amazon Resource Name (ARN) of the on-call rotation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withRotationArn(String rotationArn) { setRotationArn(rotationArn); return this; } /** ** The name of the on-call rotation. *
* * @param name * The name of the on-call rotation. */ public void setName(String name) { this.name = name; } /** ** The name of the on-call rotation. *
* * @return The name of the on-call rotation. */ public String getName() { return this.name; } /** ** The name of the on-call rotation. *
* * @param name * The name of the on-call rotation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withName(String name) { setName(name); return this; } /** ** The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. *
* * @return The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. */ public java.util.List* The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. *
* * @param contactIds * The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. */ public void setContactIds(java.util.Collection* The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setContactIds(java.util.Collection)} or {@link #withContactIds(java.util.Collection)} if you want to * override the existing values. *
* * @param contactIds * The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withContactIds(String... contactIds) { if (this.contactIds == null) { setContactIds(new java.util.ArrayList* The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. *
* * @param contactIds * The Amazon Resource Names (ARNs) of the contacts assigned to the on-call rotation team. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withContactIds(java.util.Collection* The specified start time for the on-call rotation. *
* * @param startTime * The specified start time for the on-call rotation. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** The specified start time for the on-call rotation. *
* * @return The specified start time for the on-call rotation. */ public java.util.Date getStartTime() { return this.startTime; } /** ** The specified start time for the on-call rotation. *
* * @param startTime * The specified start time for the on-call rotation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. *
* * @param timeZoneId * The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) * format. */ public void setTimeZoneId(String timeZoneId) { this.timeZoneId = timeZoneId; } /** ** The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. *
* * @return The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) * format. */ public String getTimeZoneId() { return this.timeZoneId; } /** ** The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) format. *
* * @param timeZoneId * The time zone that the rotation’s activity is based on, in Internet Assigned Numbers Authority (IANA) * format. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withTimeZoneId(String timeZoneId) { setTimeZoneId(timeZoneId); return this; } /** ** Specifies how long a rotation lasts before restarting at the beginning of the shift order. *
* * @param recurrence * Specifies how long a rotation lasts before restarting at the beginning of the shift order. */ public void setRecurrence(RecurrenceSettings recurrence) { this.recurrence = recurrence; } /** ** Specifies how long a rotation lasts before restarting at the beginning of the shift order. *
* * @return Specifies how long a rotation lasts before restarting at the beginning of the shift order. */ public RecurrenceSettings getRecurrence() { return this.recurrence; } /** ** Specifies how long a rotation lasts before restarting at the beginning of the shift order. *
* * @param recurrence * Specifies how long a rotation lasts before restarting at the beginning of the shift order. * @return Returns a reference to this object so that method calls can be chained together. */ public GetRotationResult withRecurrence(RecurrenceSettings recurrence) { setRecurrence(recurrence); 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 (getRotationArn() != null) sb.append("RotationArn: ").append(getRotationArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getContactIds() != null) sb.append("ContactIds: ").append(getContactIds()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getTimeZoneId() != null) sb.append("TimeZoneId: ").append(getTimeZoneId()).append(","); if (getRecurrence() != null) sb.append("Recurrence: ").append(getRecurrence()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetRotationResult == false) return false; GetRotationResult other = (GetRotationResult) obj; if (other.getRotationArn() == null ^ this.getRotationArn() == null) return false; if (other.getRotationArn() != null && other.getRotationArn().equals(this.getRotationArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getContactIds() == null ^ this.getContactIds() == null) return false; if (other.getContactIds() != null && other.getContactIds().equals(this.getContactIds()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getTimeZoneId() == null ^ this.getTimeZoneId() == null) return false; if (other.getTimeZoneId() != null && other.getTimeZoneId().equals(this.getTimeZoneId()) == false) return false; if (other.getRecurrence() == null ^ this.getRecurrence() == null) return false; if (other.getRecurrence() != null && other.getRecurrence().equals(this.getRecurrence()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRotationArn() == null) ? 0 : getRotationArn().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getContactIds() == null) ? 0 : getContactIds().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getTimeZoneId() == null) ? 0 : getTimeZoneId().hashCode()); hashCode = prime * hashCode + ((getRecurrence() == null) ? 0 : getRecurrence().hashCode()); return hashCode; } @Override public GetRotationResult clone() { try { return (GetRotationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }