com.amazonaws.services.qconnect.model.QuickResponseData Maven / Gradle / Ivy
Show all versions of aws-java-sdk-qconnect Show documentation
/*
* 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about the quick response.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class QuickResponseData implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Connect contact channels this quick response applies to. The supported contact channel types include
* Chat
.
*
*/
private java.util.List channels;
/**
*
* 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 contents of the quick response.
*
*/
private QuickResponseContents contents;
/**
*
* The timestamp when the quick response was created.
*
*/
private java.util.Date createdTime;
/**
*
* The description of the quick response.
*
*/
private String description;
/**
*
* The configuration information of the user groups that the quick response is accessible to.
*
*/
private GroupingConfiguration groupingConfiguration;
/**
*
* Whether the quick response is active.
*
*/
private Boolean isActive;
/**
*
* The Amazon Resource Name (ARN) of the knowledge base.
*
*/
private String knowledgeBaseArn;
/**
*
* 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.
*
*/
private String language;
/**
*
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*
*/
private String lastModifiedBy;
/**
*
* The timestamp when the quick response data was last modified.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The name of the quick response.
*
*/
private String name;
/**
*
* The Amazon Resource Name (ARN) of the quick response.
*
*/
private String quickResponseArn;
/**
*
* The identifier of the quick response.
*
*/
private String quickResponseId;
/**
*
* The shortcut key of the quick response. The value should be unique across the knowledge base.
*
*/
private String shortcutKey;
/**
*
* The status of the quick response data.
*
*/
private String status;
/**
*
* The tags used to organize, track, or control access for this resource.
*
*/
private java.util.Map tags;
/**
*
* 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 QuickResponseData 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 QuickResponseData withChannels(java.util.Collection channels) {
setChannels(channels);
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 QuickResponseData withContentType(String contentType) {
setContentType(contentType);
return this;
}
/**
*
* The contents of the quick response.
*
*
* @param contents
* The contents of the quick response.
*/
public void setContents(QuickResponseContents contents) {
this.contents = contents;
}
/**
*
* The contents of the quick response.
*
*
* @return The contents of the quick response.
*/
public QuickResponseContents getContents() {
return this.contents;
}
/**
*
* The contents of the quick response.
*
*
* @param contents
* The contents of the quick response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withContents(QuickResponseContents contents) {
setContents(contents);
return this;
}
/**
*
* The timestamp when the quick response was created.
*
*
* @param createdTime
* The timestamp when the quick response was created.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* The timestamp when the quick response was created.
*
*
* @return The timestamp when the quick response was created.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* The timestamp when the quick response was created.
*
*
* @param createdTime
* The timestamp when the quick response was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The description of the quick response.
*
*
* @param description
* The description of the quick response.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description of the quick response.
*
*
* @return The description of the quick response.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description of the quick response.
*
*
* @param description
* The description of the quick response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The configuration information of the user groups that the quick response is accessible to.
*
*
* @param groupingConfiguration
* The configuration information of the user groups that the quick response is accessible to.
*/
public void setGroupingConfiguration(GroupingConfiguration groupingConfiguration) {
this.groupingConfiguration = groupingConfiguration;
}
/**
*
* The configuration information of the user groups that the quick response is accessible to.
*
*
* @return The configuration information of the user groups that the quick response is accessible to.
*/
public GroupingConfiguration getGroupingConfiguration() {
return this.groupingConfiguration;
}
/**
*
* The configuration information of the user groups that the quick response is accessible to.
*
*
* @param groupingConfiguration
* The configuration information of the user groups that the quick response is accessible to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData 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 QuickResponseData 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 Amazon Resource Name (ARN) of the knowledge base.
*
*
* @param knowledgeBaseArn
* The Amazon Resource Name (ARN) of the knowledge base.
*/
public void setKnowledgeBaseArn(String knowledgeBaseArn) {
this.knowledgeBaseArn = knowledgeBaseArn;
}
/**
*
* The Amazon Resource Name (ARN) of the knowledge base.
*
*
* @return The Amazon Resource Name (ARN) of the knowledge base.
*/
public String getKnowledgeBaseArn() {
return this.knowledgeBaseArn;
}
/**
*
* The Amazon Resource Name (ARN) of the knowledge base.
*
*
* @param knowledgeBaseArn
* The Amazon Resource Name (ARN) of the knowledge base.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withKnowledgeBaseArn(String knowledgeBaseArn) {
setKnowledgeBaseArn(knowledgeBaseArn);
return this;
}
/**
*
* 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 QuickResponseData withKnowledgeBaseId(String knowledgeBaseId) {
setKnowledgeBaseId(knowledgeBaseId);
return this;
}
/**
*
* The language code value for the language in which the quick response is written.
*
*
* @param language
* The language code value for the language in which the quick response is written.
*/
public void setLanguage(String language) {
this.language = language;
}
/**
*
* The language code value for the language in which the quick response is written.
*
*
* @return The language code value for the language in which the quick response is written.
*/
public String getLanguage() {
return this.language;
}
/**
*
* The language code value for the language in which the quick response is written.
*
*
* @param language
* The language code value for the language in which the quick response is written.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withLanguage(String language) {
setLanguage(language);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*
*
* @param lastModifiedBy
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*/
public void setLastModifiedBy(String lastModifiedBy) {
this.lastModifiedBy = lastModifiedBy;
}
/**
*
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*
*
* @return The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*/
public String getLastModifiedBy() {
return this.lastModifiedBy;
}
/**
*
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
*
*
* @param lastModifiedBy
* The Amazon Resource Name (ARN) of the user who last updated the quick response data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withLastModifiedBy(String lastModifiedBy) {
setLastModifiedBy(lastModifiedBy);
return this;
}
/**
*
* The timestamp when the quick response data was last modified.
*
*
* @param lastModifiedTime
* The timestamp when the quick response data was last modified.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* The timestamp when the quick response data was last modified.
*
*
* @return The timestamp when the quick response data was last modified.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* The timestamp when the quick response data was last modified.
*
*
* @param lastModifiedTime
* The timestamp when the quick response data was last modified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
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 QuickResponseData withName(String name) {
setName(name);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the quick response.
*
*
* @param quickResponseArn
* The Amazon Resource Name (ARN) of the quick response.
*/
public void setQuickResponseArn(String quickResponseArn) {
this.quickResponseArn = quickResponseArn;
}
/**
*
* The Amazon Resource Name (ARN) of the quick response.
*
*
* @return The Amazon Resource Name (ARN) of the quick response.
*/
public String getQuickResponseArn() {
return this.quickResponseArn;
}
/**
*
* The Amazon Resource Name (ARN) of the quick response.
*
*
* @param quickResponseArn
* The Amazon Resource Name (ARN) of the quick response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withQuickResponseArn(String quickResponseArn) {
setQuickResponseArn(quickResponseArn);
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 QuickResponseData withQuickResponseId(String quickResponseId) {
setQuickResponseId(quickResponseId);
return this;
}
/**
*
* 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 QuickResponseData withShortcutKey(String shortcutKey) {
setShortcutKey(shortcutKey);
return this;
}
/**
*
* The status of the quick response data.
*
*
* @param status
* The status of the quick response data.
* @see QuickResponseStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the quick response data.
*
*
* @return The status of the quick response data.
* @see QuickResponseStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the quick response data.
*
*
* @param status
* The status of the quick response data.
* @return Returns a reference to this object so that method calls can be chained together.
* @see QuickResponseStatus
*/
public QuickResponseData withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the quick response data.
*
*
* @param status
* The status of the quick response data.
* @return Returns a reference to this object so that method calls can be chained together.
* @see QuickResponseStatus
*/
public QuickResponseData withStatus(QuickResponseStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The tags used to organize, track, or control access for this resource.
*
*
* @return The tags used to organize, track, or control access for this resource.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The tags used to organize, track, or control access for this resource.
*
*
* @param tags
* The tags used to organize, track, or control access for this resource.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The tags used to organize, track, or control access for this resource.
*
*
* @param tags
* The tags used to organize, track, or control access for this resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see QuickResponseData#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public QuickResponseData clearTagsEntries() {
this.tags = null;
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 (getContentType() != null)
sb.append("ContentType: ").append(getContentType()).append(",");
if (getContents() != null)
sb.append("Contents: ").append(getContents()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).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 (getKnowledgeBaseArn() != null)
sb.append("KnowledgeBaseArn: ").append(getKnowledgeBaseArn()).append(",");
if (getKnowledgeBaseId() != null)
sb.append("KnowledgeBaseId: ").append(getKnowledgeBaseId()).append(",");
if (getLanguage() != null)
sb.append("Language: ").append(getLanguage()).append(",");
if (getLastModifiedBy() != null)
sb.append("LastModifiedBy: ").append(getLastModifiedBy()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getQuickResponseArn() != null)
sb.append("QuickResponseArn: ").append(getQuickResponseArn()).append(",");
if (getQuickResponseId() != null)
sb.append("QuickResponseId: ").append(getQuickResponseId()).append(",");
if (getShortcutKey() != null)
sb.append("ShortcutKey: ").append(getShortcutKey()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof QuickResponseData == false)
return false;
QuickResponseData other = (QuickResponseData) obj;
if (other.getChannels() == null ^ this.getChannels() == null)
return false;
if (other.getChannels() != null && other.getChannels().equals(this.getChannels()) == 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.getContents() == null ^ this.getContents() == null)
return false;
if (other.getContents() != null && other.getContents().equals(this.getContents()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == 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.getKnowledgeBaseArn() == null ^ this.getKnowledgeBaseArn() == null)
return false;
if (other.getKnowledgeBaseArn() != null && other.getKnowledgeBaseArn().equals(this.getKnowledgeBaseArn()) == 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.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null)
return false;
if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == 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.getQuickResponseArn() == null ^ this.getQuickResponseArn() == null)
return false;
if (other.getQuickResponseArn() != null && other.getQuickResponseArn().equals(this.getQuickResponseArn()) == 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.getShortcutKey() == null ^ this.getShortcutKey() == null)
return false;
if (other.getShortcutKey() != null && other.getShortcutKey().equals(this.getShortcutKey()) == 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.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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 + ((getContentType() == null) ? 0 : getContentType().hashCode());
hashCode = prime * hashCode + ((getContents() == null) ? 0 : getContents().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().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 + ((getKnowledgeBaseArn() == null) ? 0 : getKnowledgeBaseArn().hashCode());
hashCode = prime * hashCode + ((getKnowledgeBaseId() == null) ? 0 : getKnowledgeBaseId().hashCode());
hashCode = prime * hashCode + ((getLanguage() == null) ? 0 : getLanguage().hashCode());
hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getQuickResponseArn() == null) ? 0 : getQuickResponseArn().hashCode());
hashCode = prime * hashCode + ((getQuickResponseId() == null) ? 0 : getQuickResponseId().hashCode());
hashCode = prime * hashCode + ((getShortcutKey() == null) ? 0 : getShortcutKey().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
}
@Override
public QuickResponseData clone() {
try {
return (QuickResponseData) 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.qconnect.model.transform.QuickResponseDataMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}