AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
Intent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace LexModelBuildingService {
20namespace Model {
21
27class Intent {
28 public:
29 AWS_LEXMODELBUILDINGSERVICE_API Intent() = default;
30 AWS_LEXMODELBUILDINGSERVICE_API Intent(Aws::Utils::Json::JsonView jsonValue);
31 AWS_LEXMODELBUILDINGSERVICE_API Intent& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetIntentName() const { return m_intentName; }
39 inline bool IntentNameHasBeenSet() const { return m_intentNameHasBeenSet; }
40 template <typename IntentNameT = Aws::String>
41 void SetIntentName(IntentNameT&& value) {
42 m_intentNameHasBeenSet = true;
43 m_intentName = std::forward<IntentNameT>(value);
44 }
45 template <typename IntentNameT = Aws::String>
46 Intent& WithIntentName(IntentNameT&& value) {
47 SetIntentName(std::forward<IntentNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIntentVersion() const { return m_intentVersion; }
57 inline bool IntentVersionHasBeenSet() const { return m_intentVersionHasBeenSet; }
58 template <typename IntentVersionT = Aws::String>
59 void SetIntentVersion(IntentVersionT&& value) {
60 m_intentVersionHasBeenSet = true;
61 m_intentVersion = std::forward<IntentVersionT>(value);
62 }
63 template <typename IntentVersionT = Aws::String>
64 Intent& WithIntentVersion(IntentVersionT&& value) {
65 SetIntentVersion(std::forward<IntentVersionT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_intentName;
71
72 Aws::String m_intentVersion;
73 bool m_intentNameHasBeenSet = false;
74 bool m_intentVersionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace LexModelBuildingService
79} // namespace Aws
Intent & WithIntentVersion(IntentVersionT &&value)
Definition Intent.h:64
AWS_LEXMODELBUILDINGSERVICE_API Intent(Aws::Utils::Json::JsonView jsonValue)
Intent & WithIntentName(IntentNameT &&value)
Definition Intent.h:46
AWS_LEXMODELBUILDINGSERVICE_API Intent & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIntentName(IntentNameT &&value)
Definition Intent.h:41
const Aws::String & GetIntentName() const
Definition Intent.h:38
const Aws::String & GetIntentVersion() const
Definition Intent.h:56
AWS_LEXMODELBUILDINGSERVICE_API Intent()=default
void SetIntentVersion(IntentVersionT &&value)
Definition Intent.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue