AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
BuiltinIntentMetadata.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/Locale.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelBuildingService {
22namespace Model {
23
30 public:
31 AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata() = default;
32 AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetSignature() const { return m_signature; }
44 inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; }
45 template <typename SignatureT = Aws::String>
46 void SetSignature(SignatureT&& value) {
47 m_signatureHasBeenSet = true;
48 m_signature = std::forward<SignatureT>(value);
49 }
50 template <typename SignatureT = Aws::String>
51 BuiltinIntentMetadata& WithSignature(SignatureT&& value) {
52 SetSignature(std::forward<SignatureT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<Locale>& GetSupportedLocales() const { return m_supportedLocales; }
62 inline bool SupportedLocalesHasBeenSet() const { return m_supportedLocalesHasBeenSet; }
63 template <typename SupportedLocalesT = Aws::Vector<Locale>>
64 void SetSupportedLocales(SupportedLocalesT&& value) {
65 m_supportedLocalesHasBeenSet = true;
66 m_supportedLocales = std::forward<SupportedLocalesT>(value);
67 }
68 template <typename SupportedLocalesT = Aws::Vector<Locale>>
69 BuiltinIntentMetadata& WithSupportedLocales(SupportedLocalesT&& value) {
70 SetSupportedLocales(std::forward<SupportedLocalesT>(value));
71 return *this;
72 }
74 m_supportedLocalesHasBeenSet = true;
75 m_supportedLocales.push_back(value);
76 return *this;
77 }
79 private:
80 Aws::String m_signature;
81
82 Aws::Vector<Locale> m_supportedLocales;
83 bool m_signatureHasBeenSet = false;
84 bool m_supportedLocalesHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace LexModelBuildingService
89} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
BuiltinIntentMetadata & WithSignature(SignatureT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API BuiltinIntentMetadata()=default
BuiltinIntentMetadata & WithSupportedLocales(SupportedLocalesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue