/* * 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.lexmodelbuilding.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Provides metadata for a built-in intent. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BuiltinIntentMetadata implements Serializable, Cloneable, StructuredPojo { /** ** A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. *
*/ private String signature; /** ** A list of identifiers for the locales that the intent supports. *
*/ private java.util.List* A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. *
* * @param signature * A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. */ public void setSignature(String signature) { this.signature = signature; } /** ** A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. *
* * @return A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. */ public String getSignature() { return this.signature; } /** ** A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. *
* * @param signature * A unique identifier for the built-in intent. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit. * @return Returns a reference to this object so that method calls can be chained together. */ public BuiltinIntentMetadata withSignature(String signature) { setSignature(signature); return this; } /** ** A list of identifiers for the locales that the intent supports. *
* * @return A list of identifiers for the locales that the intent supports. * @see Locale */ public java.util.List* A list of identifiers for the locales that the intent supports. *
* * @param supportedLocales * A list of identifiers for the locales that the intent supports. * @see Locale */ public void setSupportedLocales(java.util.Collection* A list of identifiers for the locales that the intent supports. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSupportedLocales(java.util.Collection)} or {@link #withSupportedLocales(java.util.Collection)} if you * want to override the existing values. *
* * @param supportedLocales * A list of identifiers for the locales that the intent supports. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public BuiltinIntentMetadata withSupportedLocales(String... supportedLocales) { if (this.supportedLocales == null) { setSupportedLocales(new java.util.ArrayList* A list of identifiers for the locales that the intent supports. *
* * @param supportedLocales * A list of identifiers for the locales that the intent supports. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public BuiltinIntentMetadata withSupportedLocales(java.util.Collection* A list of identifiers for the locales that the intent supports. *
* * @param supportedLocales * A list of identifiers for the locales that the intent supports. * @return Returns a reference to this object so that method calls can be chained together. * @see Locale */ public BuiltinIntentMetadata withSupportedLocales(Locale... supportedLocales) { java.util.ArrayList