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

com.amazonaws.services.support.model.CaseDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Support module holds the client classes that are used for communicating with AWS Support 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.support.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A JSON-formatted object that contains the metadata for a support case. It is contained in the response from a * DescribeCases request. CaseDetails contains the following fields: *

*
    *
  • *

    * caseId - The support case ID requested or returned in the call. The case ID is an alphanumeric string * formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47. *

    *
  • *
  • *

    * categoryCode - The category of problem for the support case. Corresponds to the CategoryCode * values returned by a call to DescribeServices. *

    *
  • *
  • *

    * displayId - The identifier for the case on pages in the Amazon Web Services Support Center. *

    *
  • *
  • *

    * language - The language in which Amazon Web Services Support handles the case. Amazon Web Services Support * currently supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 * code for the language parameter if you want support in that language. *

    *
  • *
  • *

    * nextToken - A resumption point for pagination. *

    *
  • *
  • *

    * recentCommunications - One or more Communication objects. Fields of these objects are * attachments, body, caseId, submittedBy, and * timeCreated. *

    *
  • *
  • *

    * serviceCode - The identifier for the Amazon Web Services service that corresponds to the service code defined * in the call to DescribeServices. *

    *
  • *
  • *

    * severityCode - The severity code assigned to the case. Contains one of the values returned by the call to * DescribeSeverityLevels. The possible values are: low, normal, high, * urgent, and critical. *

    *
  • *
  • *

    * status - The status of the case in the Amazon Web Services Support Center. Valid values: *

    *
      *
    • *

      * opened *

      *
    • *
    • *

      * pending-customer-action *

      *
    • *
    • *

      * reopened *

      *
    • *
    • *

      * resolved *

      *
    • *
    • *

      * unassigned *

      *
    • *
    • *

      * work-in-progress *

      *
    • *
    *
  • *
  • *

    * subject - The subject line of the case. *

    *
  • *
  • *

    * submittedBy - The email address of the account that submitted the case. *

    *
  • *
  • *

    * timeCreated - The time the case was created, in ISO-8601 format. *

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

* The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown * in this example: case-12345678910-2013-c4c1d2bf33c5cf47 *

*/ private String caseId; /** *

* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. *

*/ private String displayId; /** *

* The subject line for the case in the Amazon Web Services Support Center. *

*/ private String subject; /** *

* The status of the case. *

*

* Valid values: *

*
    *
  • *

    * opened *

    *
  • *
  • *

    * pending-customer-action *

    *
  • *
  • *

    * reopened *

    *
  • *
  • *

    * resolved *

    *
  • *
  • *

    * unassigned *

    *
  • *
  • *

    * work-in-progress *

    *
  • *
*/ private String status; /** *

* The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by * calling DescribeServices. *

*/ private String serviceCode; /** *

* The category of problem for the support case. *

*/ private String categoryCode; /** *

* The code for the severity level returned by the call to DescribeSeverityLevels. *

*/ private String severityCode; /** *

* The email address of the account that submitted the case. *

*/ private String submittedBy; /** *

* The time that the case was created in the Amazon Web Services Support Center. *

*/ private String timeCreated; /** *

* The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any * attachments to the communications. Also includes a nextToken that you can use to retrieve earlier * communications. *

*/ private RecentCaseCommunications recentCommunications; /** *

* The email addresses that receive copies of communication about the case. *

*/ private com.amazonaws.internal.SdkInternalList ccEmailAddresses; /** *

* The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code * for the language parameter if you want support in that language. *

*/ private String language; /** *

* The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown * in this example: case-12345678910-2013-c4c1d2bf33c5cf47 *

* * @param caseId * The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 */ public void setCaseId(String caseId) { this.caseId = caseId; } /** *

* The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown * in this example: case-12345678910-2013-c4c1d2bf33c5cf47 *

* * @return The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 */ public String getCaseId() { return this.caseId; } /** *

* The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as shown * in this example: case-12345678910-2013-c4c1d2bf33c5cf47 *

* * @param caseId * The support case ID requested or returned in the call. The case ID is an alphanumeric string formatted as * shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47 * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withCaseId(String caseId) { setCaseId(caseId); return this; } /** *

* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. *

* * @param displayId * The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. */ public void setDisplayId(String displayId) { this.displayId = displayId; } /** *

* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. *

* * @return The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. */ public String getDisplayId() { return this.displayId; } /** *

* The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. *

* * @param displayId * The ID displayed for the case in the Amazon Web Services Support Center. This is a numeric string. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withDisplayId(String displayId) { setDisplayId(displayId); return this; } /** *

* The subject line for the case in the Amazon Web Services Support Center. *

* * @param subject * The subject line for the case in the Amazon Web Services Support Center. */ public void setSubject(String subject) { this.subject = subject; } /** *

* The subject line for the case in the Amazon Web Services Support Center. *

* * @return The subject line for the case in the Amazon Web Services Support Center. */ public String getSubject() { return this.subject; } /** *

* The subject line for the case in the Amazon Web Services Support Center. *

* * @param subject * The subject line for the case in the Amazon Web Services Support Center. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withSubject(String subject) { setSubject(subject); return this; } /** *

* The status of the case. *

*

* Valid values: *

*
    *
  • *

    * opened *

    *
  • *
  • *

    * pending-customer-action *

    *
  • *
  • *

    * reopened *

    *
  • *
  • *

    * resolved *

    *
  • *
  • *

    * unassigned *

    *
  • *
  • *

    * work-in-progress *

    *
  • *
* * @param status * The status of the case.

*

* Valid values: *

*
    *
  • *

    * opened *

    *
  • *
  • *

    * pending-customer-action *

    *
  • *
  • *

    * reopened *

    *
  • *
  • *

    * resolved *

    *
  • *
  • *

    * unassigned *

    *
  • *
  • *

    * work-in-progress *

    *
  • */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the case. *

    *

    * Valid values: *

    *
      *
    • *

      * opened *

      *
    • *
    • *

      * pending-customer-action *

      *
    • *
    • *

      * reopened *

      *
    • *
    • *

      * resolved *

      *
    • *
    • *

      * unassigned *

      *
    • *
    • *

      * work-in-progress *

      *
    • *
    * * @return The status of the case.

    *

    * Valid values: *

    *
      *
    • *

      * opened *

      *
    • *
    • *

      * pending-customer-action *

      *
    • *
    • *

      * reopened *

      *
    • *
    • *

      * resolved *

      *
    • *
    • *

      * unassigned *

      *
    • *
    • *

      * work-in-progress *

      *
    • */ public String getStatus() { return this.status; } /** *

      * The status of the case. *

      *

      * Valid values: *

      *
        *
      • *

        * opened *

        *
      • *
      • *

        * pending-customer-action *

        *
      • *
      • *

        * reopened *

        *
      • *
      • *

        * resolved *

        *
      • *
      • *

        * unassigned *

        *
      • *
      • *

        * work-in-progress *

        *
      • *
      * * @param status * The status of the case.

      *

      * Valid values: *

      *
        *
      • *

        * opened *

        *
      • *
      • *

        * pending-customer-action *

        *
      • *
      • *

        * reopened *

        *
      • *
      • *

        * resolved *

        *
      • *
      • *

        * unassigned *

        *
      • *
      • *

        * work-in-progress *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withStatus(String status) { setStatus(status); return this; } /** *

        * The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by * calling DescribeServices. *

        * * @param serviceCode * The code for the Amazon Web Services service. You can get a list of codes and the corresponding service * names by calling DescribeServices. */ public void setServiceCode(String serviceCode) { this.serviceCode = serviceCode; } /** *

        * The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by * calling DescribeServices. *

        * * @return The code for the Amazon Web Services service. You can get a list of codes and the corresponding service * names by calling DescribeServices. */ public String getServiceCode() { return this.serviceCode; } /** *

        * The code for the Amazon Web Services service. You can get a list of codes and the corresponding service names by * calling DescribeServices. *

        * * @param serviceCode * The code for the Amazon Web Services service. You can get a list of codes and the corresponding service * names by calling DescribeServices. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withServiceCode(String serviceCode) { setServiceCode(serviceCode); return this; } /** *

        * The category of problem for the support case. *

        * * @param categoryCode * The category of problem for the support case. */ public void setCategoryCode(String categoryCode) { this.categoryCode = categoryCode; } /** *

        * The category of problem for the support case. *

        * * @return The category of problem for the support case. */ public String getCategoryCode() { return this.categoryCode; } /** *

        * The category of problem for the support case. *

        * * @param categoryCode * The category of problem for the support case. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withCategoryCode(String categoryCode) { setCategoryCode(categoryCode); return this; } /** *

        * The code for the severity level returned by the call to DescribeSeverityLevels. *

        * * @param severityCode * The code for the severity level returned by the call to DescribeSeverityLevels. */ public void setSeverityCode(String severityCode) { this.severityCode = severityCode; } /** *

        * The code for the severity level returned by the call to DescribeSeverityLevels. *

        * * @return The code for the severity level returned by the call to DescribeSeverityLevels. */ public String getSeverityCode() { return this.severityCode; } /** *

        * The code for the severity level returned by the call to DescribeSeverityLevels. *

        * * @param severityCode * The code for the severity level returned by the call to DescribeSeverityLevels. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withSeverityCode(String severityCode) { setSeverityCode(severityCode); return this; } /** *

        * The email address of the account that submitted the case. *

        * * @param submittedBy * The email address of the account that submitted the case. */ public void setSubmittedBy(String submittedBy) { this.submittedBy = submittedBy; } /** *

        * The email address of the account that submitted the case. *

        * * @return The email address of the account that submitted the case. */ public String getSubmittedBy() { return this.submittedBy; } /** *

        * The email address of the account that submitted the case. *

        * * @param submittedBy * The email address of the account that submitted the case. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withSubmittedBy(String submittedBy) { setSubmittedBy(submittedBy); return this; } /** *

        * The time that the case was created in the Amazon Web Services Support Center. *

        * * @param timeCreated * The time that the case was created in the Amazon Web Services Support Center. */ public void setTimeCreated(String timeCreated) { this.timeCreated = timeCreated; } /** *

        * The time that the case was created in the Amazon Web Services Support Center. *

        * * @return The time that the case was created in the Amazon Web Services Support Center. */ public String getTimeCreated() { return this.timeCreated; } /** *

        * The time that the case was created in the Amazon Web Services Support Center. *

        * * @param timeCreated * The time that the case was created in the Amazon Web Services Support Center. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withTimeCreated(String timeCreated) { setTimeCreated(timeCreated); return this; } /** *

        * The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any * attachments to the communications. Also includes a nextToken that you can use to retrieve earlier * communications. *

        * * @param recentCommunications * The five most recent communications between you and Amazon Web Services Support Center, including the IDs * of any attachments to the communications. Also includes a nextToken that you can use to * retrieve earlier communications. */ public void setRecentCommunications(RecentCaseCommunications recentCommunications) { this.recentCommunications = recentCommunications; } /** *

        * The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any * attachments to the communications. Also includes a nextToken that you can use to retrieve earlier * communications. *

        * * @return The five most recent communications between you and Amazon Web Services Support Center, including the IDs * of any attachments to the communications. Also includes a nextToken that you can use to * retrieve earlier communications. */ public RecentCaseCommunications getRecentCommunications() { return this.recentCommunications; } /** *

        * The five most recent communications between you and Amazon Web Services Support Center, including the IDs of any * attachments to the communications. Also includes a nextToken that you can use to retrieve earlier * communications. *

        * * @param recentCommunications * The five most recent communications between you and Amazon Web Services Support Center, including the IDs * of any attachments to the communications. Also includes a nextToken that you can use to * retrieve earlier communications. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withRecentCommunications(RecentCaseCommunications recentCommunications) { setRecentCommunications(recentCommunications); return this; } /** *

        * The email addresses that receive copies of communication about the case. *

        * * @return The email addresses that receive copies of communication about the case. */ public java.util.List getCcEmailAddresses() { if (ccEmailAddresses == null) { ccEmailAddresses = new com.amazonaws.internal.SdkInternalList(); } return ccEmailAddresses; } /** *

        * The email addresses that receive copies of communication about the case. *

        * * @param ccEmailAddresses * The email addresses that receive copies of communication about the case. */ public void setCcEmailAddresses(java.util.Collection ccEmailAddresses) { if (ccEmailAddresses == null) { this.ccEmailAddresses = null; return; } this.ccEmailAddresses = new com.amazonaws.internal.SdkInternalList(ccEmailAddresses); } /** *

        * The email addresses that receive copies of communication about the case. *

        *

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

        * * @param ccEmailAddresses * The email addresses that receive copies of communication about the case. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withCcEmailAddresses(String... ccEmailAddresses) { if (this.ccEmailAddresses == null) { setCcEmailAddresses(new com.amazonaws.internal.SdkInternalList(ccEmailAddresses.length)); } for (String ele : ccEmailAddresses) { this.ccEmailAddresses.add(ele); } return this; } /** *

        * The email addresses that receive copies of communication about the case. *

        * * @param ccEmailAddresses * The email addresses that receive copies of communication about the case. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withCcEmailAddresses(java.util.Collection ccEmailAddresses) { setCcEmailAddresses(ccEmailAddresses); return this; } /** *

        * The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code * for the language parameter if you want support in that language. *

        * * @param language * The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 * code for the language parameter if you want support in that language. */ public void setLanguage(String language) { this.language = language; } /** *

        * The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code * for the language parameter if you want support in that language. *

        * * @return The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO * 639-1 code for the language parameter if you want support in that language. */ public String getLanguage() { return this.language; } /** *

        * The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 code * for the language parameter if you want support in that language. *

        * * @param language * The language in which Amazon Web Services Support handles the case. Amazon Web Services Support currently * supports Chinese (“zh”), English ("en"), Japanese ("ja") and Korean (“ko”). You must specify the ISO 639-1 * code for the language parameter if you want support in that language. * @return Returns a reference to this object so that method calls can be chained together. */ public CaseDetails withLanguage(String language) { setLanguage(language); 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 (getCaseId() != null) sb.append("CaseId: ").append(getCaseId()).append(","); if (getDisplayId() != null) sb.append("DisplayId: ").append(getDisplayId()).append(","); if (getSubject() != null) sb.append("Subject: ").append(getSubject()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getServiceCode() != null) sb.append("ServiceCode: ").append(getServiceCode()).append(","); if (getCategoryCode() != null) sb.append("CategoryCode: ").append(getCategoryCode()).append(","); if (getSeverityCode() != null) sb.append("SeverityCode: ").append(getSeverityCode()).append(","); if (getSubmittedBy() != null) sb.append("SubmittedBy: ").append(getSubmittedBy()).append(","); if (getTimeCreated() != null) sb.append("TimeCreated: ").append(getTimeCreated()).append(","); if (getRecentCommunications() != null) sb.append("RecentCommunications: ").append(getRecentCommunications()).append(","); if (getCcEmailAddresses() != null) sb.append("CcEmailAddresses: ").append(getCcEmailAddresses()).append(","); if (getLanguage() != null) sb.append("Language: ").append(getLanguage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CaseDetails == false) return false; CaseDetails other = (CaseDetails) obj; if (other.getCaseId() == null ^ this.getCaseId() == null) return false; if (other.getCaseId() != null && other.getCaseId().equals(this.getCaseId()) == false) return false; if (other.getDisplayId() == null ^ this.getDisplayId() == null) return false; if (other.getDisplayId() != null && other.getDisplayId().equals(this.getDisplayId()) == false) return false; if (other.getSubject() == null ^ this.getSubject() == null) return false; if (other.getSubject() != null && other.getSubject().equals(this.getSubject()) == 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.getServiceCode() == null ^ this.getServiceCode() == null) return false; if (other.getServiceCode() != null && other.getServiceCode().equals(this.getServiceCode()) == false) return false; if (other.getCategoryCode() == null ^ this.getCategoryCode() == null) return false; if (other.getCategoryCode() != null && other.getCategoryCode().equals(this.getCategoryCode()) == false) return false; if (other.getSeverityCode() == null ^ this.getSeverityCode() == null) return false; if (other.getSeverityCode() != null && other.getSeverityCode().equals(this.getSeverityCode()) == false) return false; if (other.getSubmittedBy() == null ^ this.getSubmittedBy() == null) return false; if (other.getSubmittedBy() != null && other.getSubmittedBy().equals(this.getSubmittedBy()) == false) return false; if (other.getTimeCreated() == null ^ this.getTimeCreated() == null) return false; if (other.getTimeCreated() != null && other.getTimeCreated().equals(this.getTimeCreated()) == false) return false; if (other.getRecentCommunications() == null ^ this.getRecentCommunications() == null) return false; if (other.getRecentCommunications() != null && other.getRecentCommunications().equals(this.getRecentCommunications()) == false) return false; if (other.getCcEmailAddresses() == null ^ this.getCcEmailAddresses() == null) return false; if (other.getCcEmailAddresses() != null && other.getCcEmailAddresses().equals(this.getCcEmailAddresses()) == false) return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCaseId() == null) ? 0 : getCaseId().hashCode()); hashCode = prime * hashCode + ((getDisplayId() == null) ? 0 : getDisplayId().hashCode()); hashCode = prime * hashCode + ((getSubject() == null) ? 0 : getSubject().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getServiceCode() == null) ? 0 : getServiceCode().hashCode()); hashCode = prime * hashCode + ((getCategoryCode() == null) ? 0 : getCategoryCode().hashCode()); hashCode = prime * hashCode + ((getSeverityCode() == null) ? 0 : getSeverityCode().hashCode()); hashCode = prime * hashCode + ((getSubmittedBy() == null) ? 0 : getSubmittedBy().hashCode()); hashCode = prime * hashCode + ((getTimeCreated() == null) ? 0 : getTimeCreated().hashCode()); hashCode = prime * hashCode + ((getRecentCommunications() == null) ? 0 : getRecentCommunications().hashCode()); hashCode = prime * hashCode + ((getCcEmailAddresses() == null) ? 0 : getCcEmailAddresses().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); return hashCode; } @Override public CaseDetails clone() { try { return (CaseDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.support.model.transform.CaseDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy