1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lexv2-models/LexModelsV2_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace LexModelsV2 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>A sample utterance that invokes an intent or respond to a slot elicitation 28 * prompt.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SampleUtterance">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_LEXMODELSV2_API SampleUtterance 33 { 34 public: 35 SampleUtterance(); 36 SampleUtterance(Aws::Utils::Json::JsonView jsonValue); 37 SampleUtterance& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 43 * to recognize intents.</p> 44 */ GetUtterance()45 inline const Aws::String& GetUtterance() const{ return m_utterance; } 46 47 /** 48 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 49 * to recognize intents.</p> 50 */ UtteranceHasBeenSet()51 inline bool UtteranceHasBeenSet() const { return m_utteranceHasBeenSet; } 52 53 /** 54 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 55 * to recognize intents.</p> 56 */ SetUtterance(const Aws::String & value)57 inline void SetUtterance(const Aws::String& value) { m_utteranceHasBeenSet = true; m_utterance = value; } 58 59 /** 60 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 61 * to recognize intents.</p> 62 */ SetUtterance(Aws::String && value)63 inline void SetUtterance(Aws::String&& value) { m_utteranceHasBeenSet = true; m_utterance = std::move(value); } 64 65 /** 66 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 67 * to recognize intents.</p> 68 */ SetUtterance(const char * value)69 inline void SetUtterance(const char* value) { m_utteranceHasBeenSet = true; m_utterance.assign(value); } 70 71 /** 72 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 73 * to recognize intents.</p> 74 */ WithUtterance(const Aws::String & value)75 inline SampleUtterance& WithUtterance(const Aws::String& value) { SetUtterance(value); return *this;} 76 77 /** 78 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 79 * to recognize intents.</p> 80 */ WithUtterance(Aws::String && value)81 inline SampleUtterance& WithUtterance(Aws::String&& value) { SetUtterance(std::move(value)); return *this;} 82 83 /** 84 * <p>The sample utterance that Amazon Lex uses to build its machine-learning model 85 * to recognize intents.</p> 86 */ WithUtterance(const char * value)87 inline SampleUtterance& WithUtterance(const char* value) { SetUtterance(value); return *this;} 88 89 private: 90 91 Aws::String m_utterance; 92 bool m_utteranceHasBeenSet; 93 }; 94 95 } // namespace Model 96 } // namespace LexModelsV2 97 } // namespace Aws 98