AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
51 inline const Aws::String& GetKey() const{ return m_key; }
52 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
53 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
54 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
55 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
56 inline DocumentParameter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
57 inline DocumentParameter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
58 inline DocumentParameter& WithKey(const char* value) { SetKey(value); return *this;}
60
62
66 inline const Aws::String& GetDescription() const{ return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
71 inline DocumentParameter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline DocumentParameter& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline DocumentParameter& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
81 inline const Aws::String& GetRegex() const{ return m_regex; }
82 inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
83 inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
84 inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
85 inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
86 inline DocumentParameter& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
87 inline DocumentParameter& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
88 inline DocumentParameter& WithRegex(const char* value) { SetRegex(value); return *this;}
90
92
96 inline const Aws::String& GetExample() const{ return m_example; }
97 inline bool ExampleHasBeenSet() const { return m_exampleHasBeenSet; }
98 inline void SetExample(const Aws::String& value) { m_exampleHasBeenSet = true; m_example = value; }
99 inline void SetExample(Aws::String&& value) { m_exampleHasBeenSet = true; m_example = std::move(value); }
100 inline void SetExample(const char* value) { m_exampleHasBeenSet = true; m_example.assign(value); }
101 inline DocumentParameter& WithExample(const Aws::String& value) { SetExample(value); return *this;}
102 inline DocumentParameter& WithExample(Aws::String&& value) { SetExample(std::move(value)); return *this;}
103 inline DocumentParameter& WithExample(const char* value) { SetExample(value); return *this;}
105
107
111 inline bool GetOptional() const{ return m_optional; }
112 inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; }
113 inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; }
114 inline DocumentParameter& WithOptional(bool value) { SetOptional(value); return *this;}
116 private:
117
118 Aws::String m_key;
119 bool m_keyHasBeenSet = false;
120
121 Aws::String m_description;
122 bool m_descriptionHasBeenSet = false;
123
124 Aws::String m_regex;
125 bool m_regexHasBeenSet = false;
126
127 Aws::String m_example;
128 bool m_exampleHasBeenSet = false;
129
130 bool m_optional;
131 bool m_optionalHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace IoT
136} // namespace Aws
DocumentParameter & WithDescription(Aws::String &&value)
DocumentParameter & WithRegex(const Aws::String &value)
AWS_IOT_API DocumentParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKey(const Aws::String &value)
void SetDescription(const Aws::String &value)
DocumentParameter & WithKey(Aws::String &&value)
DocumentParameter & WithExample(Aws::String &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegex(const Aws::String &value)
AWS_IOT_API DocumentParameter(Aws::Utils::Json::JsonView jsonValue)
DocumentParameter & WithExample(const Aws::String &value)
void SetExample(Aws::String &&value)
DocumentParameter & WithDescription(const char *value)
DocumentParameter & WithRegex(Aws::String &&value)
DocumentParameter & WithKey(const char *value)
DocumentParameter & WithRegex(const char *value)
DocumentParameter & WithExample(const char *value)
const Aws::String & GetKey() const
void SetRegex(Aws::String &&value)
DocumentParameter & WithKey(const Aws::String &value)
void SetDescription(const char *value)
const Aws::String & GetExample() const
DocumentParameter & WithOptional(bool value)
const Aws::String & GetDescription() const
DocumentParameter & WithDescription(const Aws::String &value)
void SetDescription(Aws::String &&value)
const Aws::String & GetRegex() const
void SetKey(Aws::String &&value)
void SetExample(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue