/* * 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 DescribeSlotResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The unique identifier generated for the slot. *

*/ private String slotId; /** *

* The name specified for the slot. *

*/ private String slotName; /** *

* The description specified for the slot. *

*/ private String description; /** *

* The identifier of the slot type that determines the values entered into the slot. *

*/ private String slotTypeId; /** *

* Prompts that Amazon Lex uses to elicit a value for the slot. *

*/ private SlotValueElicitationSetting valueElicitationSetting; /** *

* Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual value of * the slot is shown in logs. *

*/ private ObfuscationSetting obfuscationSetting; /** *

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

*/ private String botId; /** *

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

*/ private String botVersion; /** *

* The language and locale specified for the slot. *

*/ private String localeId; /** *

* The identifier of the intent associated with the slot. *

*/ private String intentId; /** *

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

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

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

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

* Indicates whether the slot accepts multiple values in a single utterance. *

*

* If the multipleValuesSetting is not set, the default value is false. *

*/ private MultipleValuesSetting multipleValuesSetting; /** *

* Specifications for the constituent sub slots and the expression for the composite slot. *

*/ private SubSlotSetting subSlotSetting; /** *

* The unique identifier generated for the slot. *

* * @param slotId * The unique identifier generated for the slot. */ public void setSlotId(String slotId) { this.slotId = slotId; } /** *

* The unique identifier generated for the slot. *

* * @return The unique identifier generated for the slot. */ public String getSlotId() { return this.slotId; } /** *

* The unique identifier generated for the slot. *

* * @param slotId * The unique identifier generated for the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withSlotId(String slotId) { setSlotId(slotId); return this; } /** *

* The name specified for the slot. *

* * @param slotName * The name specified for the slot. */ public void setSlotName(String slotName) { this.slotName = slotName; } /** *

* The name specified for the slot. *

* * @return The name specified for the slot. */ public String getSlotName() { return this.slotName; } /** *

* The name specified for the slot. *

* * @param slotName * The name specified for the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withSlotName(String slotName) { setSlotName(slotName); return this; } /** *

* The description specified for the slot. *

* * @param description * The description specified for the slot. */ public void setDescription(String description) { this.description = description; } /** *

* The description specified for the slot. *

* * @return The description specified for the slot. */ public String getDescription() { return this.description; } /** *

* The description specified for the slot. *

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

* The identifier of the slot type that determines the values entered into the slot. *

* * @param slotTypeId * The identifier of the slot type that determines the values entered into the slot. */ public void setSlotTypeId(String slotTypeId) { this.slotTypeId = slotTypeId; } /** *

* The identifier of the slot type that determines the values entered into the slot. *

* * @return The identifier of the slot type that determines the values entered into the slot. */ public String getSlotTypeId() { return this.slotTypeId; } /** *

* The identifier of the slot type that determines the values entered into the slot. *

* * @param slotTypeId * The identifier of the slot type that determines the values entered into the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withSlotTypeId(String slotTypeId) { setSlotTypeId(slotTypeId); return this; } /** *

* Prompts that Amazon Lex uses to elicit a value for the slot. *

* * @param valueElicitationSetting * Prompts that Amazon Lex uses to elicit a value for the slot. */ public void setValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting) { this.valueElicitationSetting = valueElicitationSetting; } /** *

* Prompts that Amazon Lex uses to elicit a value for the slot. *

* * @return Prompts that Amazon Lex uses to elicit a value for the slot. */ public SlotValueElicitationSetting getValueElicitationSetting() { return this.valueElicitationSetting; } /** *

* Prompts that Amazon Lex uses to elicit a value for the slot. *

* * @param valueElicitationSetting * Prompts that Amazon Lex uses to elicit a value for the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withValueElicitationSetting(SlotValueElicitationSetting valueElicitationSetting) { setValueElicitationSetting(valueElicitationSetting); return this; } /** *

* Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual value of * the slot is shown in logs. *

* * @param obfuscationSetting * Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual * value of the slot is shown in logs. */ public void setObfuscationSetting(ObfuscationSetting obfuscationSetting) { this.obfuscationSetting = obfuscationSetting; } /** *

* Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual value of * the slot is shown in logs. *

* * @return Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual * value of the slot is shown in logs. */ public ObfuscationSetting getObfuscationSetting() { return this.obfuscationSetting; } /** *

* Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual value of * the slot is shown in logs. *

* * @param obfuscationSetting * Whether slot values are shown in Amazon CloudWatch logs. If the value is None, the actual * value of the slot is shown in logs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withObfuscationSetting(ObfuscationSetting obfuscationSetting) { setObfuscationSetting(obfuscationSetting); return this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

* The language and locale specified for the slot. *

* * @param localeId * The language and locale specified for the slot. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** *

* The language and locale specified for the slot. *

* * @return The language and locale specified for the slot. */ public String getLocaleId() { return this.localeId; } /** *

* The language and locale specified for the slot. *

* * @param localeId * The language and locale specified for the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** *

* The identifier of the intent associated with the slot. *

* * @param intentId * The identifier of the intent associated with the slot. */ public void setIntentId(String intentId) { this.intentId = intentId; } /** *

* The identifier of the intent associated with the slot. *

* * @return The identifier of the intent associated with the slot. */ public String getIntentId() { return this.intentId; } /** *

* The identifier of the intent associated with the slot. *

* * @param intentId * The identifier of the intent associated with the slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withIntentId(String intentId) { setIntentId(intentId); return this; } /** *

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

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

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

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

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

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

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

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

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

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

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

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

* Indicates whether the slot accepts multiple values in a single utterance. *

*

* If the multipleValuesSetting is not set, the default value is false. *

* * @param multipleValuesSetting * Indicates whether the slot accepts multiple values in a single utterance.

*

* If the multipleValuesSetting is not set, the default value is false. */ public void setMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting) { this.multipleValuesSetting = multipleValuesSetting; } /** *

* Indicates whether the slot accepts multiple values in a single utterance. *

*

* If the multipleValuesSetting is not set, the default value is false. *

* * @return Indicates whether the slot accepts multiple values in a single utterance.

*

* If the multipleValuesSetting is not set, the default value is false. */ public MultipleValuesSetting getMultipleValuesSetting() { return this.multipleValuesSetting; } /** *

* Indicates whether the slot accepts multiple values in a single utterance. *

*

* If the multipleValuesSetting is not set, the default value is false. *

* * @param multipleValuesSetting * Indicates whether the slot accepts multiple values in a single utterance.

*

* If the multipleValuesSetting is not set, the default value is false. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withMultipleValuesSetting(MultipleValuesSetting multipleValuesSetting) { setMultipleValuesSetting(multipleValuesSetting); return this; } /** *

* Specifications for the constituent sub slots and the expression for the composite slot. *

* * @param subSlotSetting * Specifications for the constituent sub slots and the expression for the composite slot. */ public void setSubSlotSetting(SubSlotSetting subSlotSetting) { this.subSlotSetting = subSlotSetting; } /** *

* Specifications for the constituent sub slots and the expression for the composite slot. *

* * @return Specifications for the constituent sub slots and the expression for the composite slot. */ public SubSlotSetting getSubSlotSetting() { return this.subSlotSetting; } /** *

* Specifications for the constituent sub slots and the expression for the composite slot. *

* * @param subSlotSetting * Specifications for the constituent sub slots and the expression for the composite slot. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSlotResult withSubSlotSetting(SubSlotSetting subSlotSetting) { setSubSlotSetting(subSlotSetting); 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 (getSlotId() != null) sb.append("SlotId: ").append(getSlotId()).append(","); if (getSlotName() != null) sb.append("SlotName: ").append(getSlotName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSlotTypeId() != null) sb.append("SlotTypeId: ").append(getSlotTypeId()).append(","); if (getValueElicitationSetting() != null) sb.append("ValueElicitationSetting: ").append(getValueElicitationSetting()).append(","); if (getObfuscationSetting() != null) sb.append("ObfuscationSetting: ").append(getObfuscationSetting()).append(","); if (getBotId() != null) sb.append("BotId: ").append(getBotId()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getLocaleId() != null) sb.append("LocaleId: ").append(getLocaleId()).append(","); if (getIntentId() != null) sb.append("IntentId: ").append(getIntentId()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getLastUpdatedDateTime() != null) sb.append("LastUpdatedDateTime: ").append(getLastUpdatedDateTime()).append(","); if (getMultipleValuesSetting() != null) sb.append("MultipleValuesSetting: ").append(getMultipleValuesSetting()).append(","); if (getSubSlotSetting() != null) sb.append("SubSlotSetting: ").append(getSubSlotSetting()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSlotResult == false) return false; DescribeSlotResult other = (DescribeSlotResult) obj; if (other.getSlotId() == null ^ this.getSlotId() == null) return false; if (other.getSlotId() != null && other.getSlotId().equals(this.getSlotId()) == false) return false; if (other.getSlotName() == null ^ this.getSlotName() == null) return false; if (other.getSlotName() != null && other.getSlotName().equals(this.getSlotName()) == 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.getSlotTypeId() == null ^ this.getSlotTypeId() == null) return false; if (other.getSlotTypeId() != null && other.getSlotTypeId().equals(this.getSlotTypeId()) == false) return false; if (other.getValueElicitationSetting() == null ^ this.getValueElicitationSetting() == null) return false; if (other.getValueElicitationSetting() != null && other.getValueElicitationSetting().equals(this.getValueElicitationSetting()) == false) return false; if (other.getObfuscationSetting() == null ^ this.getObfuscationSetting() == null) return false; if (other.getObfuscationSetting() != null && other.getObfuscationSetting().equals(this.getObfuscationSetting()) == 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.getBotVersion() == null ^ this.getBotVersion() == null) return false; if (other.getBotVersion() != null && other.getBotVersion().equals(this.getBotVersion()) == 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.getIntentId() == null ^ this.getIntentId() == null) return false; if (other.getIntentId() != null && other.getIntentId().equals(this.getIntentId()) == 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.getMultipleValuesSetting() == null ^ this.getMultipleValuesSetting() == null) return false; if (other.getMultipleValuesSetting() != null && other.getMultipleValuesSetting().equals(this.getMultipleValuesSetting()) == false) return false; if (other.getSubSlotSetting() == null ^ this.getSubSlotSetting() == null) return false; if (other.getSubSlotSetting() != null && other.getSubSlotSetting().equals(this.getSubSlotSetting()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSlotId() == null) ? 0 : getSlotId().hashCode()); hashCode = prime * hashCode + ((getSlotName() == null) ? 0 : getSlotName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSlotTypeId() == null) ? 0 : getSlotTypeId().hashCode()); hashCode = prime * hashCode + ((getValueElicitationSetting() == null) ? 0 : getValueElicitationSetting().hashCode()); hashCode = prime * hashCode + ((getObfuscationSetting() == null) ? 0 : getObfuscationSetting().hashCode()); hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getLocaleId() == null) ? 0 : getLocaleId().hashCode()); hashCode = prime * hashCode + ((getIntentId() == null) ? 0 : getIntentId().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedDateTime() == null) ? 0 : getLastUpdatedDateTime().hashCode()); hashCode = prime * hashCode + ((getMultipleValuesSetting() == null) ? 0 : getMultipleValuesSetting().hashCode()); hashCode = prime * hashCode + ((getSubSlotSetting() == null) ? 0 : getSubSlotSetting().hashCode()); return hashCode; } @Override public DescribeSlotResult clone() { try { return (DescribeSlotResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }