AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GuardrailTopicConfig.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qconnect/model/GuardrailTopicType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QCONNECT_API GuardrailTopicConfig() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 GuardrailTopicConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
63 template<typename DefinitionT = Aws::String>
64 GuardrailTopicConfig& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Aws::String>& GetExamples() const { return m_examples; }
73 inline bool ExamplesHasBeenSet() const { return m_examplesHasBeenSet; }
74 template<typename ExamplesT = Aws::Vector<Aws::String>>
75 void SetExamples(ExamplesT&& value) { m_examplesHasBeenSet = true; m_examples = std::forward<ExamplesT>(value); }
76 template<typename ExamplesT = Aws::Vector<Aws::String>>
77 GuardrailTopicConfig& WithExamples(ExamplesT&& value) { SetExamples(std::forward<ExamplesT>(value)); return *this;}
78 template<typename ExamplesT = Aws::String>
79 GuardrailTopicConfig& AddExamples(ExamplesT&& value) { m_examplesHasBeenSet = true; m_examples.emplace_back(std::forward<ExamplesT>(value)); return *this; }
81
83
86 inline GuardrailTopicType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(GuardrailTopicType value) { m_typeHasBeenSet = true; m_type = value; }
89 inline GuardrailTopicConfig& WithType(GuardrailTopicType value) { SetType(value); return *this;}
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_definition;
97 bool m_definitionHasBeenSet = false;
98
99 Aws::Vector<Aws::String> m_examples;
100 bool m_examplesHasBeenSet = false;
101
103 bool m_typeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace QConnect
108} // 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