AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Parameter.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AppConfig {
20namespace Model {
21
32class Parameter {
33 public:
34 AWS_APPCONFIG_API Parameter() = default;
35 AWS_APPCONFIG_API Parameter(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPCONFIG_API Parameter& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 Parameter& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
61 inline bool GetRequired() const { return m_required; }
62 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
63 inline void SetRequired(bool value) {
64 m_requiredHasBeenSet = true;
65 m_required = value;
66 }
67 inline Parameter& WithRequired(bool value) {
68 SetRequired(value);
69 return *this;
70 }
72
74
79 inline bool GetDynamic() const { return m_dynamic; }
80 inline bool DynamicHasBeenSet() const { return m_dynamicHasBeenSet; }
81 inline void SetDynamic(bool value) {
82 m_dynamicHasBeenSet = true;
83 m_dynamic = value;
84 }
85 inline Parameter& WithDynamic(bool value) {
86 SetDynamic(value);
87 return *this;
88 }
90 private:
91 Aws::String m_description;
92
93 bool m_required{false};
94
95 bool m_dynamic{false};
96 bool m_descriptionHasBeenSet = false;
97 bool m_requiredHasBeenSet = false;
98 bool m_dynamicHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AppConfig
103} // namespace Aws
void SetDescription(DescriptionT &&value)
Definition Parameter.h:46
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
Parameter & WithDescription(DescriptionT &&value)
Definition Parameter.h:51
AWS_APPCONFIG_API Parameter()=default
Parameter & WithDynamic(bool value)
Definition Parameter.h:85
AWS_APPCONFIG_API Parameter & operator=(Aws::Utils::Json::JsonView jsonValue)
Parameter & WithRequired(bool value)
Definition Parameter.h:67
AWS_APPCONFIG_API Parameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Parameter.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue