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

com.amazonaws.services.ssmincidents.model.UpdateIncidentRecordRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show 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.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 UpdateIncidentRecordRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Name (ARN) of the incident record you are updating. *

*/ private String arn; /** *

* The Chatbot chat channel where responders can collaborate. *

*/ private ChatChannel chatChannel; /** *

* A token that ensures that a client calls the operation only once with the specified details. *

*/ private String clientToken; /** *

* Defines the impact of the incident to customers and applications. If you provide an impact for an incident, it * overwrites the impact provided by the response plan. *

*

* Supported impact codes *

*
    *
  • *

    * 1 - Critical *

    *
  • *
  • *

    * 2 - High *

    *
  • *
  • *

    * 3 - Medium *

    *
  • *
  • *

    * 4 - Low *

    *
  • *
  • *

    * 5 - No Impact *

    *
  • *
*/ private Integer impact; /** *

* The Amazon SNS targets that Incident Manager notifies when a client updates an incident. *

*

* Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. *

*/ private java.util.List notificationTargets; /** *

* The status of the incident. Possible statuses are Open or Resolved. *

*/ private String status; /** *

* A longer description of what occurred during the incident. *

*/ private String summary; /** *

* A brief description of the incident. *

*/ private String title; /** *

* The Amazon Resource Name (ARN) of the incident record you are updating. *

* * @param arn * The Amazon Resource Name (ARN) of the incident record you are updating. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of the incident record you are updating. *

* * @return The Amazon Resource Name (ARN) of the incident record you are updating. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of the incident record you are updating. *

* * @param arn * The Amazon Resource Name (ARN) of the incident record you are updating. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withArn(String arn) { setArn(arn); return this; } /** *

* The Chatbot chat channel where responders can collaborate. *

* * @param chatChannel * The Chatbot chat channel where responders can collaborate. */ public void setChatChannel(ChatChannel chatChannel) { this.chatChannel = chatChannel; } /** *

* The Chatbot chat channel where responders can collaborate. *

* * @return The Chatbot chat channel where responders can collaborate. */ public ChatChannel getChatChannel() { return this.chatChannel; } /** *

* The Chatbot chat channel where responders can collaborate. *

* * @param chatChannel * The Chatbot chat channel where responders can collaborate. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withChatChannel(ChatChannel chatChannel) { setChatChannel(chatChannel); return this; } /** *

* A token that ensures that a client calls the operation only once with the specified details. *

* * @param clientToken * A token that ensures that a client calls the operation only once with the specified details. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A token that ensures that a client calls the operation only once with the specified details. *

* * @return A token that ensures that a client calls the operation only once with the specified details. */ public String getClientToken() { return this.clientToken; } /** *

* A token that ensures that a client calls the operation only once with the specified details. *

* * @param clientToken * A token that ensures that a client calls the operation only once with the specified details. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* Defines the impact of the incident to customers and applications. If you provide an impact for an incident, it * overwrites the impact provided by the response plan. *

*

* Supported impact codes *

*
    *
  • *

    * 1 - Critical *

    *
  • *
  • *

    * 2 - High *

    *
  • *
  • *

    * 3 - Medium *

    *
  • *
  • *

    * 4 - Low *

    *
  • *
  • *

    * 5 - No Impact *

    *
  • *
* * @param impact * Defines the impact of the incident to customers and applications. If you provide an impact for an * incident, it overwrites the impact provided by the response plan.

*

* Supported impact codes *

*
    *
  • *

    * 1 - Critical *

    *
  • *
  • *

    * 2 - High *

    *
  • *
  • *

    * 3 - Medium *

    *
  • *
  • *

    * 4 - Low *

    *
  • *
  • *

    * 5 - No Impact *

    *
  • */ public void setImpact(Integer impact) { this.impact = impact; } /** *

    * Defines the impact of the incident to customers and applications. If you provide an impact for an incident, it * overwrites the impact provided by the response plan. *

    *

    * Supported impact codes *

    *
      *
    • *

      * 1 - Critical *

      *
    • *
    • *

      * 2 - High *

      *
    • *
    • *

      * 3 - Medium *

      *
    • *
    • *

      * 4 - Low *

      *
    • *
    • *

      * 5 - No Impact *

      *
    • *
    * * @return Defines the impact of the incident to customers and applications. If you provide an impact for an * incident, it overwrites the impact provided by the response plan.

    *

    * Supported impact codes *

    *
      *
    • *

      * 1 - Critical *

      *
    • *
    • *

      * 2 - High *

      *
    • *
    • *

      * 3 - Medium *

      *
    • *
    • *

      * 4 - Low *

      *
    • *
    • *

      * 5 - No Impact *

      *
    • */ public Integer getImpact() { return this.impact; } /** *

      * Defines the impact of the incident to customers and applications. If you provide an impact for an incident, it * overwrites the impact provided by the response plan. *

      *

      * Supported impact codes *

      *
        *
      • *

        * 1 - Critical *

        *
      • *
      • *

        * 2 - High *

        *
      • *
      • *

        * 3 - Medium *

        *
      • *
      • *

        * 4 - Low *

        *
      • *
      • *

        * 5 - No Impact *

        *
      • *
      * * @param impact * Defines the impact of the incident to customers and applications. If you provide an impact for an * incident, it overwrites the impact provided by the response plan.

      *

      * Supported impact codes *

      *
        *
      • *

        * 1 - Critical *

        *
      • *
      • *

        * 2 - High *

        *
      • *
      • *

        * 3 - Medium *

        *
      • *
      • *

        * 4 - Low *

        *
      • *
      • *

        * 5 - No Impact *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withImpact(Integer impact) { setImpact(impact); return this; } /** *

        * The Amazon SNS targets that Incident Manager notifies when a client updates an incident. *

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. *

        * * @return The Amazon SNS targets that Incident Manager notifies when a client updates an incident.

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. */ public java.util.List getNotificationTargets() { return notificationTargets; } /** *

        * The Amazon SNS targets that Incident Manager notifies when a client updates an incident. *

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. *

        * * @param notificationTargets * The Amazon SNS targets that Incident Manager notifies when a client updates an incident.

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. */ public void setNotificationTargets(java.util.Collection notificationTargets) { if (notificationTargets == null) { this.notificationTargets = null; return; } this.notificationTargets = new java.util.ArrayList(notificationTargets); } /** *

        * The Amazon SNS targets that Incident Manager notifies when a client updates an incident. *

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. *

        *

        * NOTE: This method appends the values to the existing list (if any). Use * {@link #setNotificationTargets(java.util.Collection)} or {@link #withNotificationTargets(java.util.Collection)} * if you want to override the existing values. *

        * * @param notificationTargets * The Amazon SNS targets that Incident Manager notifies when a client updates an incident.

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withNotificationTargets(NotificationTargetItem... notificationTargets) { if (this.notificationTargets == null) { setNotificationTargets(new java.util.ArrayList(notificationTargets.length)); } for (NotificationTargetItem ele : notificationTargets) { this.notificationTargets.add(ele); } return this; } /** *

        * The Amazon SNS targets that Incident Manager notifies when a client updates an incident. *

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. *

        * * @param notificationTargets * The Amazon SNS targets that Incident Manager notifies when a client updates an incident.

        *

        * Using multiple SNS topics creates redundancy in the event that a Region is down during the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withNotificationTargets(java.util.Collection notificationTargets) { setNotificationTargets(notificationTargets); return this; } /** *

        * The status of the incident. Possible statuses are Open or Resolved. *

        * * @param status * The status of the incident. Possible statuses are Open or Resolved. * @see IncidentRecordStatus */ public void setStatus(String status) { this.status = status; } /** *

        * The status of the incident. Possible statuses are Open or Resolved. *

        * * @return The status of the incident. Possible statuses are Open or Resolved. * @see IncidentRecordStatus */ public String getStatus() { return this.status; } /** *

        * The status of the incident. Possible statuses are Open or Resolved. *

        * * @param status * The status of the incident. Possible statuses are Open or Resolved. * @return Returns a reference to this object so that method calls can be chained together. * @see IncidentRecordStatus */ public UpdateIncidentRecordRequest withStatus(String status) { setStatus(status); return this; } /** *

        * The status of the incident. Possible statuses are Open or Resolved. *

        * * @param status * The status of the incident. Possible statuses are Open or Resolved. * @return Returns a reference to this object so that method calls can be chained together. * @see IncidentRecordStatus */ public UpdateIncidentRecordRequest withStatus(IncidentRecordStatus status) { this.status = status.toString(); return this; } /** *

        * A longer description of what occurred during the incident. *

        * * @param summary * A longer description of what occurred during the incident. */ public void setSummary(String summary) { this.summary = summary; } /** *

        * A longer description of what occurred during the incident. *

        * * @return A longer description of what occurred during the incident. */ public String getSummary() { return this.summary; } /** *

        * A longer description of what occurred during the incident. *

        * * @param summary * A longer description of what occurred during the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withSummary(String summary) { setSummary(summary); return this; } /** *

        * A brief description of the incident. *

        * * @param title * A brief description of the incident. */ public void setTitle(String title) { this.title = title; } /** *

        * A brief description of the incident. *

        * * @return A brief description of the incident. */ public String getTitle() { return this.title; } /** *

        * A brief description of the incident. *

        * * @param title * A brief description of the incident. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateIncidentRecordRequest withTitle(String title) { setTitle(title); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getChatChannel() != null) sb.append("ChatChannel: ").append(getChatChannel()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getImpact() != null) sb.append("Impact: ").append(getImpact()).append(","); if (getNotificationTargets() != null) sb.append("NotificationTargets: ").append(getNotificationTargets()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getSummary() != null) sb.append("Summary: ").append(getSummary()).append(","); if (getTitle() != null) sb.append("Title: ").append(getTitle()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateIncidentRecordRequest == false) return false; UpdateIncidentRecordRequest other = (UpdateIncidentRecordRequest) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getChatChannel() == null ^ this.getChatChannel() == null) return false; if (other.getChatChannel() != null && other.getChatChannel().equals(this.getChatChannel()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getImpact() == null ^ this.getImpact() == null) return false; if (other.getImpact() != null && other.getImpact().equals(this.getImpact()) == false) return false; if (other.getNotificationTargets() == null ^ this.getNotificationTargets() == null) return false; if (other.getNotificationTargets() != null && other.getNotificationTargets().equals(this.getNotificationTargets()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getSummary() == null ^ this.getSummary() == null) return false; if (other.getSummary() != null && other.getSummary().equals(this.getSummary()) == false) return false; if (other.getTitle() == null ^ this.getTitle() == null) return false; if (other.getTitle() != null && other.getTitle().equals(this.getTitle()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getChatChannel() == null) ? 0 : getChatChannel().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getImpact() == null) ? 0 : getImpact().hashCode()); hashCode = prime * hashCode + ((getNotificationTargets() == null) ? 0 : getNotificationTargets().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getSummary() == null) ? 0 : getSummary().hashCode()); hashCode = prime * hashCode + ((getTitle() == null) ? 0 : getTitle().hashCode()); return hashCode; } @Override public UpdateIncidentRecordRequest clone() { return (UpdateIncidentRecordRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy