/* * 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.ssmincidents.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateResponsePlanRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The actions that the response plan starts at the beginning of an incident. *
*/ private java.util.List* The Chatbot chat channel used for collaboration during an incident. *
*/ private ChatChannel chatChannel; /** ** A token ensuring that the operation is called only once with the specified details. *
*/ private String clientToken; /** ** The long format of the response plan name. This field can contain spaces. *
*/ private String displayName; /** ** The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an * incident. *
*/ private java.util.List* Details used to create an incident when using this response plan. *
*/ private IncidentTemplate incidentTemplate; /** ** Information about third-party services integrated into the response plan. *
*/ private java.util.List* The short format name of the response plan. Can't include spaces. *
*/ private String name; /** ** A list of tags that you are adding to the response plan. *
*/ private java.util.Map* The actions that the response plan starts at the beginning of an incident. *
* * @return The actions that the response plan starts at the beginning of an incident. */ public java.util.List* The actions that the response plan starts at the beginning of an incident. *
* * @param actions * The actions that the response plan starts at the beginning of an incident. */ public void setActions(java.util.Collection* The actions that the response plan starts at the beginning of an incident. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. *
* * @param actions * The actions that the response plan starts at the beginning of an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withActions(Action... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* The actions that the response plan starts at the beginning of an incident. *
* * @param actions * The actions that the response plan starts at the beginning of an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withActions(java.util.Collection* The Chatbot chat channel used for collaboration during an incident. *
* * @param chatChannel * The Chatbot chat channel used for collaboration during an incident. */ public void setChatChannel(ChatChannel chatChannel) { this.chatChannel = chatChannel; } /** ** The Chatbot chat channel used for collaboration during an incident. *
* * @return The Chatbot chat channel used for collaboration during an incident. */ public ChatChannel getChatChannel() { return this.chatChannel; } /** ** The Chatbot chat channel used for collaboration during an incident. *
* * @param chatChannel * The Chatbot chat channel used for collaboration during an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withChatChannel(ChatChannel chatChannel) { setChatChannel(chatChannel); return this; } /** ** A token ensuring that the operation is called only once with the specified details. *
* * @param clientToken * A token ensuring that the operation is called only once with the specified details. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** A token ensuring that the operation is called only once with the specified details. *
* * @return A token ensuring that the operation is called only once with the specified details. */ public String getClientToken() { return this.clientToken; } /** ** A token ensuring that the operation is called only once with the specified details. *
* * @param clientToken * A token ensuring that the operation is called only once with the specified details. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The long format of the response plan name. This field can contain spaces. *
* * @param displayName * The long format of the response plan name. This field can contain spaces. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** ** The long format of the response plan name. This field can contain spaces. *
* * @return The long format of the response plan name. This field can contain spaces. */ public String getDisplayName() { return this.displayName; } /** ** The long format of the response plan name. This field can contain spaces. *
* * @param displayName * The long format of the response plan name. This field can contain spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** ** The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an * incident. *
* * @return The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages * during an incident. */ public java.util.List* The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an * incident. *
* * @param engagements * The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during * an incident. */ public void setEngagements(java.util.Collection* The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an * incident. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEngagements(java.util.Collection)} or {@link #withEngagements(java.util.Collection)} if you want to * override the existing values. *
* * @param engagements * The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during * an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withEngagements(String... engagements) { if (this.engagements == null) { setEngagements(new java.util.ArrayList* The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during an * incident. *
* * @param engagements * The Amazon Resource Name (ARN) for the contacts and escalation plans that the response plan engages during * an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withEngagements(java.util.Collection* Details used to create an incident when using this response plan. *
* * @param incidentTemplate * Details used to create an incident when using this response plan. */ public void setIncidentTemplate(IncidentTemplate incidentTemplate) { this.incidentTemplate = incidentTemplate; } /** ** Details used to create an incident when using this response plan. *
* * @return Details used to create an incident when using this response plan. */ public IncidentTemplate getIncidentTemplate() { return this.incidentTemplate; } /** ** Details used to create an incident when using this response plan. *
* * @param incidentTemplate * Details used to create an incident when using this response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withIncidentTemplate(IncidentTemplate incidentTemplate) { setIncidentTemplate(incidentTemplate); return this; } /** ** Information about third-party services integrated into the response plan. *
* * @return Information about third-party services integrated into the response plan. */ public java.util.List* Information about third-party services integrated into the response plan. *
* * @param integrations * Information about third-party services integrated into the response plan. */ public void setIntegrations(java.util.Collection* Information about third-party services integrated into the response plan. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIntegrations(java.util.Collection)} or {@link #withIntegrations(java.util.Collection)} if you want to * override the existing values. *
* * @param integrations * Information about third-party services integrated into the response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withIntegrations(Integration... integrations) { if (this.integrations == null) { setIntegrations(new java.util.ArrayList* Information about third-party services integrated into the response plan. *
* * @param integrations * Information about third-party services integrated into the response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withIntegrations(java.util.Collection* The short format name of the response plan. Can't include spaces. *
* * @param name * The short format name of the response plan. Can't include spaces. */ public void setName(String name) { this.name = name; } /** ** The short format name of the response plan. Can't include spaces. *
* * @return The short format name of the response plan. Can't include spaces. */ public String getName() { return this.name; } /** ** The short format name of the response plan. Can't include spaces. *
* * @param name * The short format name of the response plan. Can't include spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withName(String name) { setName(name); return this; } /** ** A list of tags that you are adding to the response plan. *
* * @return A list of tags that you are adding to the response plan. */ public java.util.Map* A list of tags that you are adding to the response plan. *
* * @param tags * A list of tags that you are adding to the response plan. */ public void setTags(java.util.Map* A list of tags that you are adding to the response plan. *
* * @param tags * A list of tags that you are adding to the response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateResponsePlanRequest withTags(java.util.Map