AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnumerationValue.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelBuildingService
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue();
40 AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetValue() const{ return m_value; }
50 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
52 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
53 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
54 inline EnumerationValue& WithValue(const Aws::String& value) { SetValue(value); return *this;}
55 inline EnumerationValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
56 inline EnumerationValue& WithValue(const char* value) { SetValue(value); return *this;}
58
60
63 inline const Aws::Vector<Aws::String>& GetSynonyms() const{ return m_synonyms; }
64 inline bool SynonymsHasBeenSet() const { return m_synonymsHasBeenSet; }
65 inline void SetSynonyms(const Aws::Vector<Aws::String>& value) { m_synonymsHasBeenSet = true; m_synonyms = value; }
66 inline void SetSynonyms(Aws::Vector<Aws::String>&& value) { m_synonymsHasBeenSet = true; m_synonyms = std::move(value); }
67 inline EnumerationValue& WithSynonyms(const Aws::Vector<Aws::String>& value) { SetSynonyms(value); return *this;}
68 inline EnumerationValue& WithSynonyms(Aws::Vector<Aws::String>&& value) { SetSynonyms(std::move(value)); return *this;}
69 inline EnumerationValue& AddSynonyms(const Aws::String& value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(value); return *this; }
70 inline EnumerationValue& AddSynonyms(Aws::String&& value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(std::move(value)); return *this; }
71 inline EnumerationValue& AddSynonyms(const char* value) { m_synonymsHasBeenSet = true; m_synonyms.push_back(value); return *this; }
73 private:
74
75 Aws::String m_value;
76 bool m_valueHasBeenSet = false;
77
78 Aws::Vector<Aws::String> m_synonyms;
79 bool m_synonymsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace LexModelBuildingService
84} // namespace Aws
EnumerationValue & AddSynonyms(const char *value)
AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue(Aws::Utils::Json::JsonView jsonValue)
EnumerationValue & WithValue(const char *value)
void SetSynonyms(Aws::Vector< Aws::String > &&value)
AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue()
void SetSynonyms(const Aws::Vector< Aws::String > &value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
EnumerationValue & WithValue(const Aws::String &value)
EnumerationValue & WithValue(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSynonyms() const
EnumerationValue & AddSynonyms(const Aws::String &value)
EnumerationValue & WithSynonyms(Aws::Vector< Aws::String > &&value)
EnumerationValue & AddSynonyms(Aws::String &&value)
EnumerationValue & WithSynonyms(const Aws::Vector< Aws::String > &value)
AWS_LEXMODELBUILDINGSERVICE_API EnumerationValue & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue