AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DocumentParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/DocumentParameterType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSM {
21namespace Model {
22
30 public:
31 AWS_SSM_API DocumentParameter() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 DocumentParameter& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline DocumentParameterType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(DocumentParameterType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69
71
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 DocumentParameter& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
95 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
96 template <typename DefaultValueT = Aws::String>
97 void SetDefaultValue(DefaultValueT&& value) {
98 m_defaultValueHasBeenSet = true;
99 m_defaultValue = std::forward<DefaultValueT>(value);
100 }
101 template <typename DefaultValueT = Aws::String>
102 DocumentParameter& WithDefaultValue(DefaultValueT&& value) {
103 SetDefaultValue(std::forward<DefaultValueT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_name;
109
111
112 Aws::String m_description;
113
114 Aws::String m_defaultValue;
115 bool m_nameHasBeenSet = false;
116 bool m_typeHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118 bool m_defaultValueHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace SSM
123} // namespace Aws
const Aws::String & GetDescription() const
DocumentParameter & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetName() const
void SetDefaultValue(DefaultValueT &&value)
AWS_SSM_API DocumentParameter(Aws::Utils::Json::JsonView jsonValue)
DocumentParameter & WithName(NameT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API DocumentParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(DocumentParameterType value)
DocumentParameter & WithDefaultValue(DefaultValueT &&value)
DocumentParameter & WithType(DocumentParameterType value)
AWS_SSM_API DocumentParameter()=default
const Aws::String & GetDefaultValue() const
DocumentParameterType GetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue