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

com.amazonaws.services.qconnect.model.UpdateQuickResponseRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Q Connect module holds the client classes that are used for communicating with Amazon Q Connect Service

The 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.qconnect.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 UpdateQuickResponseRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

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

* The updated content of the quick response. *

*/ private QuickResponseDataProvider content; /** *

* The media type of the quick response content. *

*
    *
  • *

    * Use application/x.quickresponse;format=plain for quick response written in plain text. *

    *
  • *
  • *

    * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

    *
  • *
*/ private String contentType; /** *

* The updated description of the quick response. *

*/ private String description; /** *

* The updated grouping configuration of the quick response. *

*/ private GroupingConfiguration groupingConfiguration; /** *

* Whether the quick response is active. *

*/ private Boolean isActive; /** *

* The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. *

*/ private String knowledgeBaseId; /** *

* The language code value for the language in which the quick response is written. The supported language codes * include de_DE, en_US, es_ES, fr_FR, id_ID, * it_IT, ja_JP, ko_KR, pt_BR, zh_CN, * zh_TW *

*/ private String language; /** *

* The name of the quick response. *

*/ private String name; /** *

* The identifier of the quick response. *

*/ private String quickResponseId; /** *

* Whether to remove the description from the quick response. *

*/ private Boolean removeDescription; /** *

* Whether to remove the grouping configuration of the quick response. *

*/ private Boolean removeGroupingConfiguration; /** *

* Whether to remove the shortcut key of the quick response. *

*/ private Boolean removeShortcutKey; /** *

* The shortcut key of the quick response. The value should be unique across the knowledge base. *

*/ private String shortcutKey; /** *

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

* * @return The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. */ public java.util.List getChannels() { return channels; } /** *

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

* * @param channels * The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. */ public void setChannels(java.util.Collection channels) { if (channels == null) { this.channels = null; return; } this.channels = new java.util.ArrayList(channels); } /** *

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

*

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

* * @param channels * The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withChannels(String... channels) { if (this.channels == null) { setChannels(new java.util.ArrayList(channels.length)); } for (String ele : channels) { this.channels.add(ele); } return this; } /** *

* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include * Chat. *

* * @param channels * The Amazon Connect contact channels this quick response applies to. The supported contact channel types * include Chat. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withChannels(java.util.Collection channels) { setChannels(channels); return this; } /** *

* The updated content of the quick response. *

* * @param content * The updated content of the quick response. */ public void setContent(QuickResponseDataProvider content) { this.content = content; } /** *

* The updated content of the quick response. *

* * @return The updated content of the quick response. */ public QuickResponseDataProvider getContent() { return this.content; } /** *

* The updated content of the quick response. *

* * @param content * The updated content of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withContent(QuickResponseDataProvider content) { setContent(content); return this; } /** *

* The media type of the quick response content. *

*
    *
  • *

    * Use application/x.quickresponse;format=plain for quick response written in plain text. *

    *
  • *
  • *

    * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

    *
  • *
* * @param contentType * The media type of the quick response content.

*
    *
  • *

    * Use application/x.quickresponse;format=plain for quick response written in plain text. *

    *
  • *
  • *

    * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

    *
  • */ public void setContentType(String contentType) { this.contentType = contentType; } /** *

    * The media type of the quick response content. *

    *
      *
    • *

      * Use application/x.quickresponse;format=plain for quick response written in plain text. *

      *
    • *
    • *

      * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

      *
    • *
    * * @return The media type of the quick response content.

    *
      *
    • *

      * Use application/x.quickresponse;format=plain for quick response written in plain text. *

      *
    • *
    • *

      * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

      *
    • */ public String getContentType() { return this.contentType; } /** *

      * The media type of the quick response content. *

      *
        *
      • *

        * Use application/x.quickresponse;format=plain for quick response written in plain text. *

        *
      • *
      • *

        * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

        *
      • *
      * * @param contentType * The media type of the quick response content.

      *
        *
      • *

        * Use application/x.quickresponse;format=plain for quick response written in plain text. *

        *
      • *
      • *

        * Use application/x.quickresponse;format=markdown for quick response written in richtext. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withContentType(String contentType) { setContentType(contentType); return this; } /** *

        * The updated description of the quick response. *

        * * @param description * The updated description of the quick response. */ public void setDescription(String description) { this.description = description; } /** *

        * The updated description of the quick response. *

        * * @return The updated description of the quick response. */ public String getDescription() { return this.description; } /** *

        * The updated description of the quick response. *

        * * @param description * The updated description of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withDescription(String description) { setDescription(description); return this; } /** *

        * The updated grouping configuration of the quick response. *

        * * @param groupingConfiguration * The updated grouping configuration of the quick response. */ public void setGroupingConfiguration(GroupingConfiguration groupingConfiguration) { this.groupingConfiguration = groupingConfiguration; } /** *

        * The updated grouping configuration of the quick response. *

        * * @return The updated grouping configuration of the quick response. */ public GroupingConfiguration getGroupingConfiguration() { return this.groupingConfiguration; } /** *

        * The updated grouping configuration of the quick response. *

        * * @param groupingConfiguration * The updated grouping configuration of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withGroupingConfiguration(GroupingConfiguration groupingConfiguration) { setGroupingConfiguration(groupingConfiguration); return this; } /** *

        * Whether the quick response is active. *

        * * @param isActive * Whether the quick response is active. */ public void setIsActive(Boolean isActive) { this.isActive = isActive; } /** *

        * Whether the quick response is active. *

        * * @return Whether the quick response is active. */ public Boolean getIsActive() { return this.isActive; } /** *

        * Whether the quick response is active. *

        * * @param isActive * Whether the quick response is active. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withIsActive(Boolean isActive) { setIsActive(isActive); return this; } /** *

        * Whether the quick response is active. *

        * * @return Whether the quick response is active. */ public Boolean isActive() { return this.isActive; } /** *

        * The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. *

        * * @param knowledgeBaseId * The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. */ public void setKnowledgeBaseId(String knowledgeBaseId) { this.knowledgeBaseId = knowledgeBaseId; } /** *

        * The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. *

        * * @return The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. */ public String getKnowledgeBaseId() { return this.knowledgeBaseId; } /** *

        * The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. *

        * * @param knowledgeBaseId * The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withKnowledgeBaseId(String knowledgeBaseId) { setKnowledgeBaseId(knowledgeBaseId); return this; } /** *

        * The language code value for the language in which the quick response is written. The supported language codes * include de_DE, en_US, es_ES, fr_FR, id_ID, * it_IT, ja_JP, ko_KR, pt_BR, zh_CN, * zh_TW *

        * * @param language * The language code value for the language in which the quick response is written. The supported language * codes include de_DE, en_US, es_ES, fr_FR, * id_ID, it_IT, ja_JP, ko_KR, pt_BR, * zh_CN, zh_TW */ public void setLanguage(String language) { this.language = language; } /** *

        * The language code value for the language in which the quick response is written. The supported language codes * include de_DE, en_US, es_ES, fr_FR, id_ID, * it_IT, ja_JP, ko_KR, pt_BR, zh_CN, * zh_TW *

        * * @return The language code value for the language in which the quick response is written. The supported language * codes include de_DE, en_US, es_ES, fr_FR, * id_ID, it_IT, ja_JP, ko_KR, pt_BR, * zh_CN, zh_TW */ public String getLanguage() { return this.language; } /** *

        * The language code value for the language in which the quick response is written. The supported language codes * include de_DE, en_US, es_ES, fr_FR, id_ID, * it_IT, ja_JP, ko_KR, pt_BR, zh_CN, * zh_TW *

        * * @param language * The language code value for the language in which the quick response is written. The supported language * codes include de_DE, en_US, es_ES, fr_FR, * id_ID, it_IT, ja_JP, ko_KR, pt_BR, * zh_CN, zh_TW * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withLanguage(String language) { setLanguage(language); return this; } /** *

        * The name of the quick response. *

        * * @param name * The name of the quick response. */ public void setName(String name) { this.name = name; } /** *

        * The name of the quick response. *

        * * @return The name of the quick response. */ public String getName() { return this.name; } /** *

        * The name of the quick response. *

        * * @param name * The name of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withName(String name) { setName(name); return this; } /** *

        * The identifier of the quick response. *

        * * @param quickResponseId * The identifier of the quick response. */ public void setQuickResponseId(String quickResponseId) { this.quickResponseId = quickResponseId; } /** *

        * The identifier of the quick response. *

        * * @return The identifier of the quick response. */ public String getQuickResponseId() { return this.quickResponseId; } /** *

        * The identifier of the quick response. *

        * * @param quickResponseId * The identifier of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withQuickResponseId(String quickResponseId) { setQuickResponseId(quickResponseId); return this; } /** *

        * Whether to remove the description from the quick response. *

        * * @param removeDescription * Whether to remove the description from the quick response. */ public void setRemoveDescription(Boolean removeDescription) { this.removeDescription = removeDescription; } /** *

        * Whether to remove the description from the quick response. *

        * * @return Whether to remove the description from the quick response. */ public Boolean getRemoveDescription() { return this.removeDescription; } /** *

        * Whether to remove the description from the quick response. *

        * * @param removeDescription * Whether to remove the description from the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withRemoveDescription(Boolean removeDescription) { setRemoveDescription(removeDescription); return this; } /** *

        * Whether to remove the description from the quick response. *

        * * @return Whether to remove the description from the quick response. */ public Boolean isRemoveDescription() { return this.removeDescription; } /** *

        * Whether to remove the grouping configuration of the quick response. *

        * * @param removeGroupingConfiguration * Whether to remove the grouping configuration of the quick response. */ public void setRemoveGroupingConfiguration(Boolean removeGroupingConfiguration) { this.removeGroupingConfiguration = removeGroupingConfiguration; } /** *

        * Whether to remove the grouping configuration of the quick response. *

        * * @return Whether to remove the grouping configuration of the quick response. */ public Boolean getRemoveGroupingConfiguration() { return this.removeGroupingConfiguration; } /** *

        * Whether to remove the grouping configuration of the quick response. *

        * * @param removeGroupingConfiguration * Whether to remove the grouping configuration of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withRemoveGroupingConfiguration(Boolean removeGroupingConfiguration) { setRemoveGroupingConfiguration(removeGroupingConfiguration); return this; } /** *

        * Whether to remove the grouping configuration of the quick response. *

        * * @return Whether to remove the grouping configuration of the quick response. */ public Boolean isRemoveGroupingConfiguration() { return this.removeGroupingConfiguration; } /** *

        * Whether to remove the shortcut key of the quick response. *

        * * @param removeShortcutKey * Whether to remove the shortcut key of the quick response. */ public void setRemoveShortcutKey(Boolean removeShortcutKey) { this.removeShortcutKey = removeShortcutKey; } /** *

        * Whether to remove the shortcut key of the quick response. *

        * * @return Whether to remove the shortcut key of the quick response. */ public Boolean getRemoveShortcutKey() { return this.removeShortcutKey; } /** *

        * Whether to remove the shortcut key of the quick response. *

        * * @param removeShortcutKey * Whether to remove the shortcut key of the quick response. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withRemoveShortcutKey(Boolean removeShortcutKey) { setRemoveShortcutKey(removeShortcutKey); return this; } /** *

        * Whether to remove the shortcut key of the quick response. *

        * * @return Whether to remove the shortcut key of the quick response. */ public Boolean isRemoveShortcutKey() { return this.removeShortcutKey; } /** *

        * The shortcut key of the quick response. The value should be unique across the knowledge base. *

        * * @param shortcutKey * The shortcut key of the quick response. The value should be unique across the knowledge base. */ public void setShortcutKey(String shortcutKey) { this.shortcutKey = shortcutKey; } /** *

        * The shortcut key of the quick response. The value should be unique across the knowledge base. *

        * * @return The shortcut key of the quick response. The value should be unique across the knowledge base. */ public String getShortcutKey() { return this.shortcutKey; } /** *

        * The shortcut key of the quick response. The value should be unique across the knowledge base. *

        * * @param shortcutKey * The shortcut key of the quick response. The value should be unique across the knowledge base. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateQuickResponseRequest withShortcutKey(String shortcutKey) { setShortcutKey(shortcutKey); 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 (getChannels() != null) sb.append("Channels: ").append("***Sensitive Data Redacted***").append(","); if (getContent() != null) sb.append("Content: ").append(getContent()).append(","); if (getContentType() != null) sb.append("ContentType: ").append(getContentType()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getGroupingConfiguration() != null) sb.append("GroupingConfiguration: ").append(getGroupingConfiguration()).append(","); if (getIsActive() != null) sb.append("IsActive: ").append(getIsActive()).append(","); if (getKnowledgeBaseId() != null) sb.append("KnowledgeBaseId: ").append(getKnowledgeBaseId()).append(","); if (getLanguage() != null) sb.append("Language: ").append(getLanguage()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getQuickResponseId() != null) sb.append("QuickResponseId: ").append(getQuickResponseId()).append(","); if (getRemoveDescription() != null) sb.append("RemoveDescription: ").append(getRemoveDescription()).append(","); if (getRemoveGroupingConfiguration() != null) sb.append("RemoveGroupingConfiguration: ").append(getRemoveGroupingConfiguration()).append(","); if (getRemoveShortcutKey() != null) sb.append("RemoveShortcutKey: ").append(getRemoveShortcutKey()).append(","); if (getShortcutKey() != null) sb.append("ShortcutKey: ").append(getShortcutKey()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateQuickResponseRequest == false) return false; UpdateQuickResponseRequest other = (UpdateQuickResponseRequest) obj; if (other.getChannels() == null ^ this.getChannels() == null) return false; if (other.getChannels() != null && other.getChannels().equals(this.getChannels()) == false) return false; if (other.getContent() == null ^ this.getContent() == null) return false; if (other.getContent() != null && other.getContent().equals(this.getContent()) == false) return false; if (other.getContentType() == null ^ this.getContentType() == null) return false; if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getGroupingConfiguration() == null ^ this.getGroupingConfiguration() == null) return false; if (other.getGroupingConfiguration() != null && other.getGroupingConfiguration().equals(this.getGroupingConfiguration()) == false) return false; if (other.getIsActive() == null ^ this.getIsActive() == null) return false; if (other.getIsActive() != null && other.getIsActive().equals(this.getIsActive()) == false) return false; if (other.getKnowledgeBaseId() == null ^ this.getKnowledgeBaseId() == null) return false; if (other.getKnowledgeBaseId() != null && other.getKnowledgeBaseId().equals(this.getKnowledgeBaseId()) == false) return false; if (other.getLanguage() == null ^ this.getLanguage() == null) return false; if (other.getLanguage() != null && other.getLanguage().equals(this.getLanguage()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getQuickResponseId() == null ^ this.getQuickResponseId() == null) return false; if (other.getQuickResponseId() != null && other.getQuickResponseId().equals(this.getQuickResponseId()) == false) return false; if (other.getRemoveDescription() == null ^ this.getRemoveDescription() == null) return false; if (other.getRemoveDescription() != null && other.getRemoveDescription().equals(this.getRemoveDescription()) == false) return false; if (other.getRemoveGroupingConfiguration() == null ^ this.getRemoveGroupingConfiguration() == null) return false; if (other.getRemoveGroupingConfiguration() != null && other.getRemoveGroupingConfiguration().equals(this.getRemoveGroupingConfiguration()) == false) return false; if (other.getRemoveShortcutKey() == null ^ this.getRemoveShortcutKey() == null) return false; if (other.getRemoveShortcutKey() != null && other.getRemoveShortcutKey().equals(this.getRemoveShortcutKey()) == false) return false; if (other.getShortcutKey() == null ^ this.getShortcutKey() == null) return false; if (other.getShortcutKey() != null && other.getShortcutKey().equals(this.getShortcutKey()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChannels() == null) ? 0 : getChannels().hashCode()); hashCode = prime * hashCode + ((getContent() == null) ? 0 : getContent().hashCode()); hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getGroupingConfiguration() == null) ? 0 : getGroupingConfiguration().hashCode()); hashCode = prime * hashCode + ((getIsActive() == null) ? 0 : getIsActive().hashCode()); hashCode = prime * hashCode + ((getKnowledgeBaseId() == null) ? 0 : getKnowledgeBaseId().hashCode()); hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getQuickResponseId() == null) ? 0 : getQuickResponseId().hashCode()); hashCode = prime * hashCode + ((getRemoveDescription() == null) ? 0 : getRemoveDescription().hashCode()); hashCode = prime * hashCode + ((getRemoveGroupingConfiguration() == null) ? 0 : getRemoveGroupingConfiguration().hashCode()); hashCode = prime * hashCode + ((getRemoveShortcutKey() == null) ? 0 : getRemoveShortcutKey().hashCode()); hashCode = prime * hashCode + ((getShortcutKey() == null) ? 0 : getShortcutKey().hashCode()); return hashCode; } @Override public UpdateQuickResponseRequest clone() { return (UpdateQuickResponseRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy