/* * Copyright 2018-2023 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; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the stages and on-call rotation teams associated with an escalation plan or engagement plan. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Plan implements Serializable, Cloneable, StructuredPojo { /** ** A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. *
*/ private java.util.List* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. *
*/ private java.util.List* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. *
* * @return A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. */ public java.util.List* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. *
* * @param stages * A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. */ public void setStages(java.util.Collection* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStages(java.util.Collection)} or {@link #withStages(java.util.Collection)} if you want to override the * existing values. *
* * @param stages * A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. * @return Returns a reference to this object so that method calls can be chained together. */ public Plan withStages(Stage... stages) { if (this.stages == null) { setStages(new java.util.ArrayList* A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. *
* * @param stages * A list of stages that the escalation plan or engagement plan uses to engage contacts and contact methods. * @return Returns a reference to this object so that method calls can be chained together. */ public Plan withStages(java.util.Collection* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. *
* * @return The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. */ public java.util.List* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. *
* * @param rotationIds * The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. */ public void setRotationIds(java.util.Collection* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRotationIds(java.util.Collection)} or {@link #withRotationIds(java.util.Collection)} if you want to * override the existing values. *
* * @param rotationIds * The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. * @return Returns a reference to this object so that method calls can be chained together. */ public Plan withRotationIds(String... rotationIds) { if (this.rotationIds == null) { setRotationIds(new java.util.ArrayList* The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. *
* * @param rotationIds * The Amazon Resource Names (ARNs) of the on-call rotations associated with the plan. * @return Returns a reference to this object so that method calls can be chained together. */ public Plan withRotationIds(java.util.Collection