AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GuardrailTopicConfig.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/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/GuardrailTopicType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
31 public:
32 AWS_QCONNECT_API GuardrailTopicConfig() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDefinition() const { return m_definition; }
60 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
61 template <typename DefinitionT = Aws::String>
62 void SetDefinition(DefinitionT&& value) {
63 m_definitionHasBeenSet = true;
64 m_definition = std::forward<DefinitionT>(value);
65 }
66 template <typename DefinitionT = Aws::String>
68 SetDefinition(std::forward<DefinitionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
79 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
80 template <typename ExamplesT = Aws::Vector<Aws::String>>
81 void SetExamples(ExamplesT&& value) {
82 m_examplesHasBeenSet = true;
83 m_examples = std::forward<ExamplesT>(value);
84 }
85 template <typename ExamplesT = Aws::Vector<Aws::String>>
87 SetExamples(std::forward<ExamplesT>(value));
88 return *this;
89 }
90 template <typename ExamplesT = Aws::String>
92 m_examplesHasBeenSet = true;
93 m_examples.emplace_back(std::forward<ExamplesT>(value));
94 return *this;
95 }
97
99
102 inline GuardrailTopicType GetType() const { return m_type; }
103 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
104 inline void SetType(GuardrailTopicType value) {
105 m_typeHasBeenSet = true;
106 m_type = value;
107 }
109 SetType(value);
110 return *this;
111 }
113 private:
114 Aws::String m_name;
115
116 Aws::String m_definition;
117
118 Aws::Vector<Aws::String> m_examples;
119
121 bool m_nameHasBeenSet = false;
122 bool m_definitionHasBeenSet = false;
123 bool m_examplesHasBeenSet = false;
124 bool m_typeHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace QConnect
129} // namespace Aws
AWS_QCONNECT_API GuardrailTopicConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicConfig & AddExamples(ExamplesT &&value)
AWS_QCONNECT_API GuardrailTopicConfig(Aws::Utils::Json::JsonView jsonValue)
GuardrailTopicConfig & WithType(GuardrailTopicType value)
GuardrailTopicConfig & WithExamples(ExamplesT &&value)
GuardrailTopicConfig & WithDefinition(DefinitionT &&value)
const Aws::Vector< Aws::String > & GetExamples() const
AWS_QCONNECT_API GuardrailTopicConfig()=default
GuardrailTopicConfig & WithName(NameT &&value)
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue