AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentParameter.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_IOT_API DocumentParameter() = default;
44
45
47
51 inline const Aws::String& GetKey() const { return m_key; }
52 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 template<typename KeyT = Aws::String>
54 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
55 template<typename KeyT = Aws::String>
56 DocumentParameter& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
68 template<typename DescriptionT = Aws::String>
69 DocumentParameter& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
71
73
77 inline const Aws::String& GetRegex() const { return m_regex; }
78 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
79 template<typename RegexT = Aws::String>
80 void SetRegex(RegexT&& value) { m_regexHasBeenSet = true; m_regex = std::forward<RegexT>(value); }
81 template<typename RegexT = Aws::String>
82 DocumentParameter& WithRegex(RegexT&& value) { SetRegex(std::forward<RegexT>(value)); return *this;}
84
86
90 inline const Aws::String& GetExample() const { return m_example; }
91 inline bool ExampleHasBeenSet() const { return m_exampleHasBeenSet; }
92 template<typename ExampleT = Aws::String>
93 void SetExample(ExampleT&& value) { m_exampleHasBeenSet = true; m_example = std::forward<ExampleT>(value); }
94 template<typename ExampleT = Aws::String>
95 DocumentParameter& WithExample(ExampleT&& value) { SetExample(std::forward<ExampleT>(value)); return *this;}
97
99
103 inline bool GetOptional() const { return m_optional; }
104 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
105 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
106 inline DocumentParameter& WithOptional(bool value) { SetOptional(value); return *this;}
108 private:
109
110 Aws::String m_key;
111 bool m_keyHasBeenSet = false;
112
113 Aws::String m_description;
114 bool m_descriptionHasBeenSet = false;
115
116 Aws::String m_regex;
117 bool m_regexHasBeenSet = false;
118
119 Aws::String m_example;
120 bool m_exampleHasBeenSet = false;
121
122 bool m_optional{false};
123 bool m_optionalHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace IoT
128} // 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