/* * 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 UpdateResponsePlanRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The actions that this response plan takes at the beginning of an incident. *
*/ private java.util.List* The Amazon Resource Name (ARN) of the response plan. *
*/ private String arn; /** ** The Chatbot chat channel used for collaboration during an incident. *
** Use the empty structure to remove the chat channel from the response plan. *
*/ private ChatChannel chatChannel; /** ** A token ensuring that the operation is called only once with the specified details. *
*/ private String clientToken; /** ** The long format name of the response plan. The display name can't 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* The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the * same account. *
*/ private String incidentTemplateDedupeString; /** ** Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan. *
** Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* The Amazon SNS targets that are notified when updates are made to an incident. *
*/ private java.util.List* A brief summary of the incident. This typically contains what has happened, what's currently happening, and next * steps. *
*/ private String incidentTemplateSummary; /** *
* Tags to assign to the template. When the StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have permission to
* call the TagResource
API action for the incident record resource.
*
* The short format name of the incident. The title can't contain spaces. *
*/ private String incidentTemplateTitle; /** ** Information about third-party services integrated into the response plan. *
*/ private java.util.List* The actions that this response plan takes at the beginning of an incident. *
* * @return The actions that this response plan takes at the beginning of an incident. */ public java.util.List* The actions that this response plan takes at the beginning of an incident. *
* * @param actions * The actions that this response plan takes at the beginning of an incident. */ public void setActions(java.util.Collection* The actions that this response plan takes 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 this response plan takes at the beginning of an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withActions(Action... actions) { if (this.actions == null) { setActions(new java.util.ArrayList* The actions that this response plan takes at the beginning of an incident. *
* * @param actions * The actions that this response plan takes at the beginning of an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withActions(java.util.Collection* The Amazon Resource Name (ARN) of the response plan. *
* * @param arn * The Amazon Resource Name (ARN) of the response plan. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the response plan. *
* * @return The Amazon Resource Name (ARN) of the response plan. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the response plan. *
* * @param arn * The Amazon Resource Name (ARN) of the response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withArn(String arn) { setArn(arn); return this; } /** ** The Chatbot chat channel used for collaboration during an incident. *
** Use the empty structure to remove the chat channel from the response plan. *
* * @param chatChannel * The Chatbot chat channel used for collaboration during an incident. ** Use the empty structure to remove the chat channel from the response plan. */ public void setChatChannel(ChatChannel chatChannel) { this.chatChannel = chatChannel; } /** *
* The Chatbot chat channel used for collaboration during an incident. *
** Use the empty structure to remove the chat channel from the response plan. *
* * @return The Chatbot chat channel used for collaboration during an incident. ** Use the empty structure to remove the chat channel from the response plan. */ public ChatChannel getChatChannel() { return this.chatChannel; } /** *
* The Chatbot chat channel used for collaboration during an incident. *
** Use the empty structure to remove the chat channel from the response plan. *
* * @param chatChannel * The Chatbot chat channel used for collaboration during an incident. ** Use the empty structure to remove the chat channel from the response plan. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest 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 UpdateResponsePlanRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** ** The long format name of the response plan. The display name can't contain spaces. *
* * @param displayName * The long format name of the response plan. The display name can't contain spaces. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** ** The long format name of the response plan. The display name can't contain spaces. *
* * @return The long format name of the response plan. The display name can't contain spaces. */ public String getDisplayName() { return this.displayName; } /** ** The long format name of the response plan. The display name can't contain spaces. *
* * @param displayName * The long format name of the response plan. The display name can't contain spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest 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 UpdateResponsePlanRequest 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 UpdateResponsePlanRequest withEngagements(java.util.Collection* The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the * same account. *
* * @param incidentTemplateDedupeString * The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in * the same account. */ public void setIncidentTemplateDedupeString(String incidentTemplateDedupeString) { this.incidentTemplateDedupeString = incidentTemplateDedupeString; } /** ** The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the * same account. *
* * @return The string Incident Manager uses to prevent duplicate incidents from being created by the same incident * in the same account. */ public String getIncidentTemplateDedupeString() { return this.incidentTemplateDedupeString; } /** ** The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in the * same account. *
* * @param incidentTemplateDedupeString * The string Incident Manager uses to prevent duplicate incidents from being created by the same incident in * the same account. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withIncidentTemplateDedupeString(String incidentTemplateDedupeString) { setIncidentTemplateDedupeString(incidentTemplateDedupeString); return this; } /** ** Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan. *
** Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan. *
** Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* Defines the impact to the customers. Providing an impact overwrites the impact provided by a response plan. *
** Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* Possible impacts: *
*
* 5
- Severe impact
*
* 4
- High impact
*
* 3
- Medium impact
*
* 2
- Low impact
*
* 1
- No impact
*
* The Amazon SNS targets that are notified when updates are made to an incident. *
* * @return The Amazon SNS targets that are notified when updates are made to an incident. */ public java.util.List* The Amazon SNS targets that are notified when updates are made to an incident. *
* * @param incidentTemplateNotificationTargets * The Amazon SNS targets that are notified when updates are made to an incident. */ public void setIncidentTemplateNotificationTargets(java.util.Collection* The Amazon SNS targets that are notified when updates are made to an incident. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncidentTemplateNotificationTargets(java.util.Collection)} or * {@link #withIncidentTemplateNotificationTargets(java.util.Collection)} if you want to override the existing * values. *
* * @param incidentTemplateNotificationTargets * The Amazon SNS targets that are notified when updates are made to an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withIncidentTemplateNotificationTargets(NotificationTargetItem... incidentTemplateNotificationTargets) { if (this.incidentTemplateNotificationTargets == null) { setIncidentTemplateNotificationTargets(new java.util.ArrayList* The Amazon SNS targets that are notified when updates are made to an incident. *
* * @param incidentTemplateNotificationTargets * The Amazon SNS targets that are notified when updates are made to an incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withIncidentTemplateNotificationTargets(java.util.Collection* A brief summary of the incident. This typically contains what has happened, what's currently happening, and next * steps. *
* * @param incidentTemplateSummary * A brief summary of the incident. This typically contains what has happened, what's currently happening, * and next steps. */ public void setIncidentTemplateSummary(String incidentTemplateSummary) { this.incidentTemplateSummary = incidentTemplateSummary; } /** ** A brief summary of the incident. This typically contains what has happened, what's currently happening, and next * steps. *
* * @return A brief summary of the incident. This typically contains what has happened, what's currently happening, * and next steps. */ public String getIncidentTemplateSummary() { return this.incidentTemplateSummary; } /** ** A brief summary of the incident. This typically contains what has happened, what's currently happening, and next * steps. *
* * @param incidentTemplateSummary * A brief summary of the incident. This typically contains what has happened, what's currently happening, * and next steps. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withIncidentTemplateSummary(String incidentTemplateSummary) { setIncidentTemplateSummary(incidentTemplateSummary); return this; } /** *
* Tags to assign to the template. When the StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have permission to
* call the TagResource
API action for the incident record resource.
*
StartIncident
API action is called, Incident
* Manager assigns the tags specified in the template to the incident. To call this action, you must also
* have permission to call the TagResource
API action for the incident record resource.
*/
public java.util.Map
* Tags to assign to the template. When the StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have permission to
* call the TagResource
API action for the incident record resource.
*
StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have
* permission to call the TagResource
API action for the incident record resource.
*/
public void setIncidentTemplateTags(java.util.Map
* Tags to assign to the template. When the StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have permission to
* call the TagResource
API action for the incident record resource.
*
StartIncident
API action is called, Incident Manager
* assigns the tags specified in the template to the incident. To call this action, you must also have
* permission to call the TagResource
API action for the incident record resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateResponsePlanRequest withIncidentTemplateTags(java.util.Map* The short format name of the incident. The title can't contain spaces. *
* * @param incidentTemplateTitle * The short format name of the incident. The title can't contain spaces. */ public void setIncidentTemplateTitle(String incidentTemplateTitle) { this.incidentTemplateTitle = incidentTemplateTitle; } /** ** The short format name of the incident. The title can't contain spaces. *
* * @return The short format name of the incident. The title can't contain spaces. */ public String getIncidentTemplateTitle() { return this.incidentTemplateTitle; } /** ** The short format name of the incident. The title can't contain spaces. *
* * @param incidentTemplateTitle * The short format name of the incident. The title can't contain spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResponsePlanRequest withIncidentTemplateTitle(String incidentTemplateTitle) { setIncidentTemplateTitle(incidentTemplateTitle); 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 UpdateResponsePlanRequest 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 UpdateResponsePlanRequest withIntegrations(java.util.Collection