/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeBotAliasResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The identifier of the bot alias. *

*/ private String botAliasId; /** *

* The name of the bot alias. *

*/ private String botAliasName; /** *

* The description of the bot alias. *

*/ private String description; /** *

* The version of the bot associated with the bot alias. *

*/ private String botVersion; /** *

* The locale settings that are unique to the alias. *

*/ private java.util.Map botAliasLocaleSettings; /** *

* Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. *

*/ private ConversationLogSettings conversationLogSettings; private SentimentAnalysisSettings sentimentAnalysisSettings; /** *

* A list of events that affect a bot alias. For example, an event is recorded when the version that the alias * points to changes. *

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

* The current status of the alias. When the alias is Available, the alias is ready for use with your * bot. *

*/ private String botAliasStatus; /** *

* The identifier of the bot associated with the bot alias. *

*/ private String botId; /** *

* A timestamp of the date and time that the alias was created. *

*/ private java.util.Date creationDateTime; /** *

* A timestamp of the date and time that the alias was last updated. *

*/ private java.util.Date lastUpdatedDateTime; /** *

* A list of the networks to which the bot alias you described belongs. *

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

* The identifier of the bot alias. *

* * @param botAliasId * The identifier of the bot alias. */ public void setBotAliasId(String botAliasId) { this.botAliasId = botAliasId; } /** *

* The identifier of the bot alias. *

* * @return The identifier of the bot alias. */ public String getBotAliasId() { return this.botAliasId; } /** *

* The identifier of the bot alias. *

* * @param botAliasId * The identifier of the bot alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotAliasId(String botAliasId) { setBotAliasId(botAliasId); return this; } /** *

* The name of the bot alias. *

* * @param botAliasName * The name of the bot alias. */ public void setBotAliasName(String botAliasName) { this.botAliasName = botAliasName; } /** *

* The name of the bot alias. *

* * @return The name of the bot alias. */ public String getBotAliasName() { return this.botAliasName; } /** *

* The name of the bot alias. *

* * @param botAliasName * The name of the bot alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotAliasName(String botAliasName) { setBotAliasName(botAliasName); return this; } /** *

* The description of the bot alias. *

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

* The description of the bot alias. *

* * @return The description of the bot alias. */ public String getDescription() { return this.description; } /** *

* The description of the bot alias. *

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

* The version of the bot associated with the bot alias. *

* * @param botVersion * The version of the bot associated with the bot alias. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** *

* The version of the bot associated with the bot alias. *

* * @return The version of the bot associated with the bot alias. */ public String getBotVersion() { return this.botVersion; } /** *

* The version of the bot associated with the bot alias. *

* * @param botVersion * The version of the bot associated with the bot alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** *

* The locale settings that are unique to the alias. *

* * @return The locale settings that are unique to the alias. */ public java.util.Map getBotAliasLocaleSettings() { return botAliasLocaleSettings; } /** *

* The locale settings that are unique to the alias. *

* * @param botAliasLocaleSettings * The locale settings that are unique to the alias. */ public void setBotAliasLocaleSettings(java.util.Map botAliasLocaleSettings) { this.botAliasLocaleSettings = botAliasLocaleSettings; } /** *

* The locale settings that are unique to the alias. *

* * @param botAliasLocaleSettings * The locale settings that are unique to the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotAliasLocaleSettings(java.util.Map botAliasLocaleSettings) { setBotAliasLocaleSettings(botAliasLocaleSettings); return this; } /** * Add a single BotAliasLocaleSettings entry * * @see DescribeBotAliasResult#withBotAliasLocaleSettings * @returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult addBotAliasLocaleSettingsEntry(String key, BotAliasLocaleSettings value) { if (null == this.botAliasLocaleSettings) { this.botAliasLocaleSettings = new java.util.HashMap(); } if (this.botAliasLocaleSettings.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.botAliasLocaleSettings.put(key, value); return this; } /** * Removes all the entries added into BotAliasLocaleSettings. * * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult clearBotAliasLocaleSettingsEntries() { this.botAliasLocaleSettings = null; return this; } /** *

* Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. *

* * @param conversationLogSettings * Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. */ public void setConversationLogSettings(ConversationLogSettings conversationLogSettings) { this.conversationLogSettings = conversationLogSettings; } /** *

* Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. *

* * @return Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. */ public ConversationLogSettings getConversationLogSettings() { return this.conversationLogSettings; } /** *

* Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. *

* * @param conversationLogSettings * Specifics of how Amazon Lex logs text and audio conversations with the bot associated with the alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withConversationLogSettings(ConversationLogSettings conversationLogSettings) { setConversationLogSettings(conversationLogSettings); return this; } /** * @param sentimentAnalysisSettings */ public void setSentimentAnalysisSettings(SentimentAnalysisSettings sentimentAnalysisSettings) { this.sentimentAnalysisSettings = sentimentAnalysisSettings; } /** * @return */ public SentimentAnalysisSettings getSentimentAnalysisSettings() { return this.sentimentAnalysisSettings; } /** * @param sentimentAnalysisSettings * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withSentimentAnalysisSettings(SentimentAnalysisSettings sentimentAnalysisSettings) { setSentimentAnalysisSettings(sentimentAnalysisSettings); return this; } /** *

* A list of events that affect a bot alias. For example, an event is recorded when the version that the alias * points to changes. *

* * @return A list of events that affect a bot alias. For example, an event is recorded when the version that the * alias points to changes. */ public java.util.List getBotAliasHistoryEvents() { return botAliasHistoryEvents; } /** *

* A list of events that affect a bot alias. For example, an event is recorded when the version that the alias * points to changes. *

* * @param botAliasHistoryEvents * A list of events that affect a bot alias. For example, an event is recorded when the version that the * alias points to changes. */ public void setBotAliasHistoryEvents(java.util.Collection botAliasHistoryEvents) { if (botAliasHistoryEvents == null) { this.botAliasHistoryEvents = null; return; } this.botAliasHistoryEvents = new java.util.ArrayList(botAliasHistoryEvents); } /** *

* A list of events that affect a bot alias. For example, an event is recorded when the version that the alias * points to changes. *

*

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

* * @param botAliasHistoryEvents * A list of events that affect a bot alias. For example, an event is recorded when the version that the * alias points to changes. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotAliasHistoryEvents(BotAliasHistoryEvent... botAliasHistoryEvents) { if (this.botAliasHistoryEvents == null) { setBotAliasHistoryEvents(new java.util.ArrayList(botAliasHistoryEvents.length)); } for (BotAliasHistoryEvent ele : botAliasHistoryEvents) { this.botAliasHistoryEvents.add(ele); } return this; } /** *

* A list of events that affect a bot alias. For example, an event is recorded when the version that the alias * points to changes. *

* * @param botAliasHistoryEvents * A list of events that affect a bot alias. For example, an event is recorded when the version that the * alias points to changes. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotAliasHistoryEvents(java.util.Collection botAliasHistoryEvents) { setBotAliasHistoryEvents(botAliasHistoryEvents); return this; } /** *

* The current status of the alias. When the alias is Available, the alias is ready for use with your * bot. *

* * @param botAliasStatus * The current status of the alias. When the alias is Available, the alias is ready for use with * your bot. * @see BotAliasStatus */ public void setBotAliasStatus(String botAliasStatus) { this.botAliasStatus = botAliasStatus; } /** *

* The current status of the alias. When the alias is Available, the alias is ready for use with your * bot. *

* * @return The current status of the alias. When the alias is Available, the alias is ready for use * with your bot. * @see BotAliasStatus */ public String getBotAliasStatus() { return this.botAliasStatus; } /** *

* The current status of the alias. When the alias is Available, the alias is ready for use with your * bot. *

* * @param botAliasStatus * The current status of the alias. When the alias is Available, the alias is ready for use with * your bot. * @return Returns a reference to this object so that method calls can be chained together. * @see BotAliasStatus */ public DescribeBotAliasResult withBotAliasStatus(String botAliasStatus) { setBotAliasStatus(botAliasStatus); return this; } /** *

* The current status of the alias. When the alias is Available, the alias is ready for use with your * bot. *

* * @param botAliasStatus * The current status of the alias. When the alias is Available, the alias is ready for use with * your bot. * @return Returns a reference to this object so that method calls can be chained together. * @see BotAliasStatus */ public DescribeBotAliasResult withBotAliasStatus(BotAliasStatus botAliasStatus) { this.botAliasStatus = botAliasStatus.toString(); return this; } /** *

* The identifier of the bot associated with the bot alias. *

* * @param botId * The identifier of the bot associated with the bot alias. */ public void setBotId(String botId) { this.botId = botId; } /** *

* The identifier of the bot associated with the bot alias. *

* * @return The identifier of the bot associated with the bot alias. */ public String getBotId() { return this.botId; } /** *

* The identifier of the bot associated with the bot alias. *

* * @param botId * The identifier of the bot associated with the bot alias. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withBotId(String botId) { setBotId(botId); return this; } /** *

* A timestamp of the date and time that the alias was created. *

* * @param creationDateTime * A timestamp of the date and time that the alias was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** *

* A timestamp of the date and time that the alias was created. *

* * @return A timestamp of the date and time that the alias was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** *

* A timestamp of the date and time that the alias was created. *

* * @param creationDateTime * A timestamp of the date and time that the alias was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** *

* A timestamp of the date and time that the alias was last updated. *

* * @param lastUpdatedDateTime * A timestamp of the date and time that the alias was last updated. */ public void setLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { this.lastUpdatedDateTime = lastUpdatedDateTime; } /** *

* A timestamp of the date and time that the alias was last updated. *

* * @return A timestamp of the date and time that the alias was last updated. */ public java.util.Date getLastUpdatedDateTime() { return this.lastUpdatedDateTime; } /** *

* A timestamp of the date and time that the alias was last updated. *

* * @param lastUpdatedDateTime * A timestamp of the date and time that the alias was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withLastUpdatedDateTime(java.util.Date lastUpdatedDateTime) { setLastUpdatedDateTime(lastUpdatedDateTime); return this; } /** *

* A list of the networks to which the bot alias you described belongs. *

* * @return A list of the networks to which the bot alias you described belongs. */ public java.util.List getParentBotNetworks() { return parentBotNetworks; } /** *

* A list of the networks to which the bot alias you described belongs. *

* * @param parentBotNetworks * A list of the networks to which the bot alias you described belongs. */ public void setParentBotNetworks(java.util.Collection parentBotNetworks) { if (parentBotNetworks == null) { this.parentBotNetworks = null; return; } this.parentBotNetworks = new java.util.ArrayList(parentBotNetworks); } /** *

* A list of the networks to which the bot alias you described belongs. *

*

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

* * @param parentBotNetworks * A list of the networks to which the bot alias you described belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withParentBotNetworks(ParentBotNetwork... parentBotNetworks) { if (this.parentBotNetworks == null) { setParentBotNetworks(new java.util.ArrayList(parentBotNetworks.length)); } for (ParentBotNetwork ele : parentBotNetworks) { this.parentBotNetworks.add(ele); } return this; } /** *

* A list of the networks to which the bot alias you described belongs. *

* * @param parentBotNetworks * A list of the networks to which the bot alias you described belongs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeBotAliasResult withParentBotNetworks(java.util.Collection parentBotNetworks) { setParentBotNetworks(parentBotNetworks); 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 (getBotAliasId() != null) sb.append("BotAliasId: ").append(getBotAliasId()).append(","); if (getBotAliasName() != null) sb.append("BotAliasName: ").append(getBotAliasName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getBotAliasLocaleSettings() != null) sb.append("BotAliasLocaleSettings: ").append(getBotAliasLocaleSettings()).append(","); if (getConversationLogSettings() != null) sb.append("ConversationLogSettings: ").append(getConversationLogSettings()).append(","); if (getSentimentAnalysisSettings() != null) sb.append("SentimentAnalysisSettings: ").append(getSentimentAnalysisSettings()).append(","); if (getBotAliasHistoryEvents() != null) sb.append("BotAliasHistoryEvents: ").append(getBotAliasHistoryEvents()).append(","); if (getBotAliasStatus() != null) sb.append("BotAliasStatus: ").append(getBotAliasStatus()).append(","); if (getBotId() != null) sb.append("BotId: ").append(getBotId()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getLastUpdatedDateTime() != null) sb.append("LastUpdatedDateTime: ").append(getLastUpdatedDateTime()).append(","); if (getParentBotNetworks() != null) sb.append("ParentBotNetworks: ").append(getParentBotNetworks()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBotAliasResult == false) return false; DescribeBotAliasResult other = (DescribeBotAliasResult) obj; if (other.getBotAliasId() == null ^ this.getBotAliasId() == null) return false; if (other.getBotAliasId() != null && other.getBotAliasId().equals(this.getBotAliasId()) == false) return false; if (other.getBotAliasName() == null ^ this.getBotAliasName() == null) return false; if (other.getBotAliasName() != null && other.getBotAliasName().equals(this.getBotAliasName()) == 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.getBotVersion() == null ^ this.getBotVersion() == null) return false; if (other.getBotVersion() != null && other.getBotVersion().equals(this.getBotVersion()) == false) return false; if (other.getBotAliasLocaleSettings() == null ^ this.getBotAliasLocaleSettings() == null) return false; if (other.getBotAliasLocaleSettings() != null && other.getBotAliasLocaleSettings().equals(this.getBotAliasLocaleSettings()) == false) return false; if (other.getConversationLogSettings() == null ^ this.getConversationLogSettings() == null) return false; if (other.getConversationLogSettings() != null && other.getConversationLogSettings().equals(this.getConversationLogSettings()) == false) return false; if (other.getSentimentAnalysisSettings() == null ^ this.getSentimentAnalysisSettings() == null) return false; if (other.getSentimentAnalysisSettings() != null && other.getSentimentAnalysisSettings().equals(this.getSentimentAnalysisSettings()) == false) return false; if (other.getBotAliasHistoryEvents() == null ^ this.getBotAliasHistoryEvents() == null) return false; if (other.getBotAliasHistoryEvents() != null && other.getBotAliasHistoryEvents().equals(this.getBotAliasHistoryEvents()) == false) return false; if (other.getBotAliasStatus() == null ^ this.getBotAliasStatus() == null) return false; if (other.getBotAliasStatus() != null && other.getBotAliasStatus().equals(this.getBotAliasStatus()) == false) return false; if (other.getBotId() == null ^ this.getBotId() == null) return false; if (other.getBotId() != null && other.getBotId().equals(this.getBotId()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getLastUpdatedDateTime() == null ^ this.getLastUpdatedDateTime() == null) return false; if (other.getLastUpdatedDateTime() != null && other.getLastUpdatedDateTime().equals(this.getLastUpdatedDateTime()) == false) return false; if (other.getParentBotNetworks() == null ^ this.getParentBotNetworks() == null) return false; if (other.getParentBotNetworks() != null && other.getParentBotNetworks().equals(this.getParentBotNetworks()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBotAliasId() == null) ? 0 : getBotAliasId().hashCode()); hashCode = prime * hashCode + ((getBotAliasName() == null) ? 0 : getBotAliasName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getBotAliasLocaleSettings() == null) ? 0 : getBotAliasLocaleSettings().hashCode()); hashCode = prime * hashCode + ((getConversationLogSettings() == null) ? 0 : getConversationLogSettings().hashCode()); hashCode = prime * hashCode + ((getSentimentAnalysisSettings() == null) ? 0 : getSentimentAnalysisSettings().hashCode()); hashCode = prime * hashCode + ((getBotAliasHistoryEvents() == null) ? 0 : getBotAliasHistoryEvents().hashCode()); hashCode = prime * hashCode + ((getBotAliasStatus() == null) ? 0 : getBotAliasStatus().hashCode()); hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDateTime() == null) ? 0 : getLastUpdatedDateTime().hashCode()); hashCode = prime * hashCode + ((getParentBotNetworks() == null) ? 0 : getParentBotNetworks().hashCode()); return hashCode; } @Override public DescribeBotAliasResult clone() { try { return (DescribeBotAliasResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }