All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ssmcontacts.model.GetRotationResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Systems Manager Incident Manager Contacts module holds the client classes that are used for communicating with AWS Systems Manager Incident Manager Contacts Service

The newest version!
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.ssmcontacts.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetRotationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* 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 contactIds; /** *

* 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 getContactIds() { return contactIds; } /** *

* 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 contactIds) { if (contactIds == null) { this.contactIds = null; return; } this.contactIds = new java.util.ArrayList(contactIds); } /** *

* 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(contactIds.length)); } for (String ele : contactIds) { this.contactIds.add(ele); } return this; } /** *

* 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 contactIds) { setContactIds(contactIds); return this; } /** *

* 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); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy