/*
* 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
* The unique identifier generated for the slot.
*
* The name specified for the slot.
*
* The description specified for the slot.
*
* The identifier of the slot type that determines the values entered into the slot.
*
* Prompts that Amazon Lex uses to elicit a value for the slot.
*
* Whether slot values are shown in Amazon CloudWatch logs. If the value is
* The identifier of the bot associated with the slot.
*
* The version of the bot associated with the slot.
*
* The language and locale specified for the slot.
*
* The identifier of the intent associated with the slot.
*
* A timestamp of the date and time that the slot was created.
*
* A timestamp of the date and time that the slot was last updated.
*
* Indicates whether the slot accepts multiple values in a single utterance.
*
* If the
* Specifications for the constituent sub slots and the expression for the composite slot.
*
* The unique identifier generated for the slot.
*
* The unique identifier generated for the slot.
*
* The unique identifier generated for the slot.
*
* The name specified for the slot.
*
* The name specified for the slot.
*
* The name specified for the slot.
*
* The description specified for the slot.
*
* The description specified for the slot.
*
* The description specified for the slot.
*
* The identifier of the slot type that determines the values entered into the slot.
*
* The identifier of the slot type that determines the values entered into the slot.
*
* The identifier of the slot type that determines the values entered into the slot.
*
* Prompts that Amazon Lex uses to elicit a value for the slot.
*
* Prompts that Amazon Lex uses to elicit a value for the slot.
*
* Prompts that Amazon Lex uses to elicit a value for the slot.
*
* Whether slot values are shown in Amazon CloudWatch logs. If the value is
* Whether slot values are shown in Amazon CloudWatch logs. If the value is
* Whether slot values are shown in Amazon CloudWatch logs. If the value is
* The identifier of the bot associated with the slot.
*
* The identifier of the bot associated with the slot.
*
* The identifier of the bot associated with the slot.
*
* The version of the bot associated with the slot.
*
* The version of the bot associated with the slot.
*
* The version of the bot associated with the slot.
*
* The language and locale specified for the slot.
*
* The language and locale specified for the slot.
*
* The language and locale specified for the slot.
*
* The identifier of the intent associated with the slot.
*
* The identifier of the intent associated with the slot.
*
* The identifier of the intent associated with the slot.
*
* A timestamp of the date and time that the slot was created.
*
* A timestamp of the date and time that the slot was created.
*
* A timestamp of the date and time that the slot was created.
*
* A timestamp of the date and time that the slot was last updated.
*
* A timestamp of the date and time that the slot was last updated.
*
* A timestamp of the date and time that the slot was last updated.
*
* Indicates whether the slot accepts multiple values in a single utterance.
*
* If the None
, the actual value of
* the slot is shown in logs.
* multipleValuesSetting
is not set, the default value is false
.
* None
, the actual value of
* the slot is shown in logs.
* None
, the actual
* value of the slot is shown in logs.
*/
public void setObfuscationSetting(ObfuscationSetting obfuscationSetting) {
this.obfuscationSetting = obfuscationSetting;
}
/**
* None
, the actual value of
* the slot is shown in logs.
* None
, the actual
* value of the slot is shown in logs.
*/
public ObfuscationSetting getObfuscationSetting() {
return this.obfuscationSetting;
}
/**
* None
, the actual value of
* the slot is shown in logs.
* 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;
}
/**
* multipleValuesSetting
is not set, the default value is false
.
*
* 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
.
*
* 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
.
*
* 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); } } }