AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
DocumentParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
34 public:
35 AWS_IOT_API DocumentParameter() = default;
39
41
45 inline const Aws::String& GetKey() const { return m_key; }
46 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
47 template <typename KeyT = Aws::String>
48 void SetKey(KeyT&& value) {
49 m_keyHasBeenSet = true;
50 m_key = std::forward<KeyT>(value);
51 }
52 template <typename KeyT = Aws::String>
53 DocumentParameter& WithKey(KeyT&& value) {
54 SetKey(std::forward<KeyT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetDescription() const { return m_description; }
65 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
66 template <typename DescriptionT = Aws::String>
67 void SetDescription(DescriptionT&& value) {
68 m_descriptionHasBeenSet = true;
69 m_description = std::forward<DescriptionT>(value);
70 }
71 template <typename DescriptionT = Aws::String>
72 DocumentParameter& WithDescription(DescriptionT&& value) {
73 SetDescription(std::forward<DescriptionT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetRegex() const { return m_regex; }
84 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
85 template <typename RegexT = Aws::String>
86 void SetRegex(RegexT&& value) {
87 m_regexHasBeenSet = true;
88 m_regex = std::forward<RegexT>(value);
89 }
90 template <typename RegexT = Aws::String>
91 DocumentParameter& WithRegex(RegexT&& value) {
92 SetRegex(std::forward<RegexT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetExample() const { return m_example; }
103 inline bool ExampleHasBeenSet() const { return m_exampleHasBeenSet; }
104 template <typename ExampleT = Aws::String>
105 void SetExample(ExampleT&& value) {
106 m_exampleHasBeenSet = true;
107 m_example = std::forward<ExampleT>(value);
108 }
109 template <typename ExampleT = Aws::String>
110 DocumentParameter& WithExample(ExampleT&& value) {
111 SetExample(std::forward<ExampleT>(value));
112 return *this;
113 }
115
117
121 inline bool GetOptional() const { return m_optional; }
122 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
123 inline void SetOptional(bool value) {
124 m_optionalHasBeenSet = true;
125 m_optional = value;
126 }
127 inline DocumentParameter& WithOptional(bool value) {
128 SetOptional(value);
129 return *this;
130 }
132 private:
133 Aws::String m_key;
134
135 Aws::String m_description;
136
137 Aws::String m_regex;
138
139 Aws::String m_example;
140
141 bool m_optional{false};
142 bool m_keyHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_regexHasBeenSet = false;
145 bool m_exampleHasBeenSet = false;
146 bool m_optionalHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace IoT
151} // namespace Aws
AWS_IOT_API DocumentParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API DocumentParameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
DocumentParameter & WithRegex(RegexT &&value)
DocumentParameter & WithExample(ExampleT &&value)
const Aws::String & GetExample() const
DocumentParameter & WithOptional(bool value)
AWS_IOT_API DocumentParameter()=default
const Aws::String & GetDescription() const
DocumentParameter & WithKey(KeyT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetRegex() const
DocumentParameter & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue