AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
Parameter.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ParameterType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SSM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSM_API Parameter() = default;
38 AWS_SSM_API Parameter(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 Parameter& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
63 inline ParameterType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(ParameterType value) { m_typeHasBeenSet = true; m_type = value; }
66 inline Parameter& WithType(ParameterType value) { SetType(value); return *this;}
68
70
75 inline const Aws::String& GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 template<typename ValueT = Aws::String>
78 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
79 template<typename ValueT = Aws::String>
80 Parameter& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
82
84
87 inline long long GetVersion() const { return m_version; }
88 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
89 inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; }
90 inline Parameter& WithVersion(long long value) { SetVersion(value); return *this;}
92
94
99 inline const Aws::String& GetSelector() const { return m_selector; }
100 inline bool SelectorHasBeenSet() const { return m_selectorHasBeenSet; }
101 template<typename SelectorT = Aws::String>
102 void SetSelector(SelectorT&& value) { m_selectorHasBeenSet = true; m_selector = std::forward<SelectorT>(value); }
103 template<typename SelectorT = Aws::String>
104 Parameter& WithSelector(SelectorT&& value) { SetSelector(std::forward<SelectorT>(value)); return *this;}
106
108
113 inline const Aws::String& GetSourceResult() const { return m_sourceResult; }
114 inline bool SourceResultHasBeenSet() const { return m_sourceResultHasBeenSet; }
115 template<typename SourceResultT = Aws::String>
116 void SetSourceResult(SourceResultT&& value) { m_sourceResultHasBeenSet = true; m_sourceResult = std::forward<SourceResultT>(value); }
117 template<typename SourceResultT = Aws::String>
118 Parameter& WithSourceResult(SourceResultT&& value) { SetSourceResult(std::forward<SourceResultT>(value)); return *this;}
120
122
126 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
127 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
128 template<typename LastModifiedDateT = Aws::Utils::DateTime>
129 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
130 template<typename LastModifiedDateT = Aws::Utils::DateTime>
131 Parameter& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
133
135
138 inline const Aws::String& GetARN() const { return m_aRN; }
139 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
140 template<typename ARNT = Aws::String>
141 void SetARN(ARNT&& value) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
142 template<typename ARNT = Aws::String>
143 Parameter& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
145
147
151 inline const Aws::String& GetDataType() const { return m_dataType; }
152 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
153 template<typename DataTypeT = Aws::String>
154 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
155 template<typename DataTypeT = Aws::String>
156 Parameter& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
158 private:
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
164 bool m_typeHasBeenSet = false;
165
166 Aws::String m_value;
167 bool m_valueHasBeenSet = false;
168
169 long long m_version{0};
170 bool m_versionHasBeenSet = false;
171
172 Aws::String m_selector;
173 bool m_selectorHasBeenSet = false;
174
175 Aws::String m_sourceResult;
176 bool m_sourceResultHasBeenSet = false;
177
178 Aws::Utils::DateTime m_lastModifiedDate{};
179 bool m_lastModifiedDateHasBeenSet = false;
180
181 Aws::String m_aRN;
182 bool m_aRNHasBeenSet = false;
183
184 Aws::String m_dataType;
185 bool m_dataTypeHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace SSM
190} // namespace Aws
long long GetVersion() const
Definition Parameter.h:87
void SetType(ParameterType value)
Definition Parameter.h:65
ParameterType GetType() const
Definition Parameter.h:63
Parameter & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Parameter.h:131
const Aws::String & GetSourceResult() const
Definition Parameter.h:113
const Aws::String & GetDataType() const
Definition Parameter.h:151
Parameter & WithSelector(SelectorT &&value)
Definition Parameter.h:104
Parameter & WithSourceResult(SourceResultT &&value)
Definition Parameter.h:118
Parameter & WithVersion(long long value)
Definition Parameter.h:90
Parameter & WithType(ParameterType value)
Definition Parameter.h:66
bool DataTypeHasBeenSet() const
Definition Parameter.h:152
void SetARN(ARNT &&value)
Definition Parameter.h:141
const Aws::String & GetARN() const
Definition Parameter.h:138
bool SourceResultHasBeenSet() const
Definition Parameter.h:114
void SetSelector(SelectorT &&value)
Definition Parameter.h:102
void SetSourceResult(SourceResultT &&value)
Definition Parameter.h:116
const Aws::String & GetName() const
Definition Parameter.h:47
bool ValueHasBeenSet() const
Definition Parameter.h:76
Parameter & WithARN(ARNT &&value)
Definition Parameter.h:143
Parameter & WithDataType(DataTypeT &&value)
Definition Parameter.h:156
void SetValue(ValueT &&value)
Definition Parameter.h:78
AWS_SSM_API Parameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Parameter()=default
bool LastModifiedDateHasBeenSet() const
Definition Parameter.h:127
Parameter & WithName(NameT &&value)
Definition Parameter.h:52
bool SelectorHasBeenSet() const
Definition Parameter.h:100
void SetName(NameT &&value)
Definition Parameter.h:50
void SetVersion(long long value)
Definition Parameter.h:89
const Aws::String & GetValue() const
Definition Parameter.h:75
bool TypeHasBeenSet() const
Definition Parameter.h:64
bool VersionHasBeenSet() const
Definition Parameter.h:88
AWS_SSM_API Parameter(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataType(DataTypeT &&value)
Definition Parameter.h:154
bool NameHasBeenSet() const
Definition Parameter.h:48
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Parameter.h:126
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Parameter.h:129
const Aws::String & GetSelector() const
Definition Parameter.h:99
Parameter & WithValue(ValueT &&value)
Definition Parameter.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue