/*
* 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 CreateBotLocaleResult extends com.amazonaws.AmazonWebServiceResult
* The specified bot identifier.
*
* The specified bot version.
*
* The specified locale name.
*
* The specified locale identifier.
*
* The specified description of the bot locale.
*
* The specified confidence threshold for inserting the
* The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
*
* The status of the bot.
*
* When the status is
* If the status of the bot is
* If there was a problem with building the bot, the status is
* A timestamp specifying the date and time that the bot locale was created.
*
* The specified bot identifier.
*
* The specified bot identifier.
*
* The specified bot identifier.
*
* The specified bot version.
*
* The specified bot version.
*
* The specified bot version.
*
* The specified locale name.
*
* The specified locale name.
*
* The specified locale name.
*
* The specified locale identifier.
*
* The specified locale identifier.
*
* The specified locale identifier.
*
* The specified description of the bot locale.
*
* The specified description of the bot locale.
*
* The specified description of the bot locale.
*
* The specified confidence threshold for inserting the
* The specified confidence threshold for inserting the
* The specified confidence threshold for inserting the
* The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
*
* The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
*
* The Amazon Polly voice ID that Amazon Lex uses for voice interaction with the user.
*
* The status of the bot.
*
* When the status is
* If the status of the bot is
* If there was a problem with building the bot, the status is AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
* Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
* ReadyExpressTesting
, you can test the bot using the exact utterances
* specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
* Failed
. If the bot was saved but not
* built, the status is NotBuilt
.
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
*/
public void setNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold) {
this.nluIntentConfidenceThreshold = nluIntentConfidenceThreshold;
}
/**
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
*/
public Double getNluIntentConfidenceThreshold() {
return this.nluIntentConfidenceThreshold;
}
/**
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
* AMAZON.FallbackIntent
and
* AMAZON.KendraSearchIntent
intents.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateBotLocaleResult withNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold) {
setNluIntentConfidenceThreshold(nluIntentConfidenceThreshold);
return this;
}
/**
* Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
* ReadyExpressTesting
, you can test the bot using the exact utterances
* specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
* Failed
. If the bot was saved but not
* built, the status is NotBuilt
.
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact
* utterances specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but
* not built, the status is NotBuilt
.
* @see BotLocaleStatus
*/
public void setBotLocaleStatus(String botLocaleStatus) {
this.botLocaleStatus = botLocaleStatus;
}
/**
*
* The status of the bot. *
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact utterances
* specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but not
* built, the status is NotBuilt
.
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact
* utterances specified in the bots' intents. When the bot is ready for full testing or to run, the status
* is Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but
* not built, the status is NotBuilt
.
* @see BotLocaleStatus
*/
public String getBotLocaleStatus() {
return this.botLocaleStatus;
}
/**
*
* The status of the bot. *
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact utterances
* specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but not
* built, the status is NotBuilt
.
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact
* utterances specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but
* not built, the status is NotBuilt
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotLocaleStatus
*/
public CreateBotLocaleResult withBotLocaleStatus(String botLocaleStatus) {
setBotLocaleStatus(botLocaleStatus);
return this;
}
/**
*
* The status of the bot. *
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact utterances
* specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but not
* built, the status is NotBuilt
.
*
* When the status is Creating
the bot locale is being configured. When the status is
* Building
Amazon Lex is building the bot for testing and use.
*
* If the status of the bot is ReadyExpressTesting
, you can test the bot using the exact
* utterances specified in the bots' intents. When the bot is ready for full testing or to run, the status is
* Built
.
*
* If there was a problem with building the bot, the status is Failed
. If the bot was saved but
* not built, the status is NotBuilt
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BotLocaleStatus
*/
public CreateBotLocaleResult withBotLocaleStatus(BotLocaleStatus botLocaleStatus) {
this.botLocaleStatus = botLocaleStatus.toString();
return this;
}
/**
*
* A timestamp specifying the date and time that the bot locale was created. *
* * @param creationDateTime * A timestamp specifying the date and time that the bot locale was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** ** A timestamp specifying the date and time that the bot locale was created. *
* * @return A timestamp specifying the date and time that the bot locale was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** ** A timestamp specifying the date and time that the bot locale was created. *
* * @param creationDateTime * A timestamp specifying the date and time that the bot locale was created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateBotLocaleResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); 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 (getBotId() != null) sb.append("BotId: ").append(getBotId()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getLocaleName() != null) sb.append("LocaleName: ").append(getLocaleName()).append(","); if (getLocaleId() != null) sb.append("LocaleId: ").append(getLocaleId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getNluIntentConfidenceThreshold() != null) sb.append("NluIntentConfidenceThreshold: ").append(getNluIntentConfidenceThreshold()).append(","); if (getVoiceSettings() != null) sb.append("VoiceSettings: ").append(getVoiceSettings()).append(","); if (getBotLocaleStatus() != null) sb.append("BotLocaleStatus: ").append(getBotLocaleStatus()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBotLocaleResult == false) return false; CreateBotLocaleResult other = (CreateBotLocaleResult) obj; if (other.getBotId() == null ^ this.getBotId() == null) return false; if (other.getBotId() != null && other.getBotId().equals(this.getBotId()) == 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.getLocaleName() == null ^ this.getLocaleName() == null) return false; if (other.getLocaleName() != null && other.getLocaleName().equals(this.getLocaleName()) == false) return false; if (other.getLocaleId() == null ^ this.getLocaleId() == null) return false; if (other.getLocaleId() != null && other.getLocaleId().equals(this.getLocaleId()) == 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.getNluIntentConfidenceThreshold() == null ^ this.getNluIntentConfidenceThreshold() == null) return false; if (other.getNluIntentConfidenceThreshold() != null && other.getNluIntentConfidenceThreshold().equals(this.getNluIntentConfidenceThreshold()) == false) return false; if (other.getVoiceSettings() == null ^ this.getVoiceSettings() == null) return false; if (other.getVoiceSettings() != null && other.getVoiceSettings().equals(this.getVoiceSettings()) == false) return false; if (other.getBotLocaleStatus() == null ^ this.getBotLocaleStatus() == null) return false; if (other.getBotLocaleStatus() != null && other.getBotLocaleStatus().equals(this.getBotLocaleStatus()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getLocaleName() == null) ? 0 : getLocaleName().hashCode()); hashCode = prime * hashCode + ((getLocaleId() == null) ? 0 : getLocaleId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getNluIntentConfidenceThreshold() == null) ? 0 : getNluIntentConfidenceThreshold().hashCode()); hashCode = prime * hashCode + ((getVoiceSettings() == null) ? 0 : getVoiceSettings().hashCode()); hashCode = prime * hashCode + ((getBotLocaleStatus() == null) ? 0 : getBotLocaleStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); return hashCode; } @Override public CreateBotLocaleResult clone() { try { return (CreateBotLocaleResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }