AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DefinitionInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Greengrass {
21namespace Model {
22
29 public:
30 AWS_GREENGRASS_API DefinitionInformation() = default;
33 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetArn() const { return m_arn; }
40 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCreationTimestamp() const { return m_creationTimestamp; }
58 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
59 template <typename CreationTimestampT = Aws::String>
60 void SetCreationTimestamp(CreationTimestampT&& value) {
61 m_creationTimestampHasBeenSet = true;
62 m_creationTimestamp = std::forward<CreationTimestampT>(value);
63 }
64 template <typename CreationTimestampT = Aws::String>
65 DefinitionInformation& WithCreationTimestamp(CreationTimestampT&& value) {
66 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetId() const { return m_id; }
76 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
77 template <typename IdT = Aws::String>
78 void SetId(IdT&& value) {
79 m_idHasBeenSet = true;
80 m_id = std::forward<IdT>(value);
81 }
82 template <typename IdT = Aws::String>
84 SetId(std::forward<IdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
94 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
95 template <typename LastUpdatedTimestampT = Aws::String>
96 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
97 m_lastUpdatedTimestampHasBeenSet = true;
98 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
99 }
100 template <typename LastUpdatedTimestampT = Aws::String>
101 DefinitionInformation& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
102 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
112 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
113 template <typename LatestVersionT = Aws::String>
114 void SetLatestVersion(LatestVersionT&& value) {
115 m_latestVersionHasBeenSet = true;
116 m_latestVersion = std::forward<LatestVersionT>(value);
117 }
118 template <typename LatestVersionT = Aws::String>
119 DefinitionInformation& WithLatestVersion(LatestVersionT&& value) {
120 SetLatestVersion(std::forward<LatestVersionT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetLatestVersionArn() const { return m_latestVersionArn; }
130 inline bool LatestVersionArnHasBeenSet() const { return m_latestVersionArnHasBeenSet; }
131 template <typename LatestVersionArnT = Aws::String>
132 void SetLatestVersionArn(LatestVersionArnT&& value) {
133 m_latestVersionArnHasBeenSet = true;
134 m_latestVersionArn = std::forward<LatestVersionArnT>(value);
135 }
136 template <typename LatestVersionArnT = Aws::String>
137 DefinitionInformation& WithLatestVersionArn(LatestVersionArnT&& value) {
138 SetLatestVersionArn(std::forward<LatestVersionArnT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::String& GetName() const { return m_name; }
148 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
149 template <typename NameT = Aws::String>
150 void SetName(NameT&& value) {
151 m_nameHasBeenSet = true;
152 m_name = std::forward<NameT>(value);
153 }
154 template <typename NameT = Aws::String>
156 SetName(std::forward<NameT>(value));
157 return *this;
158 }
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 void SetTags(TagsT&& value) {
169 m_tagsHasBeenSet = true;
170 m_tags = std::forward<TagsT>(value);
171 }
172 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
174 SetTags(std::forward<TagsT>(value));
175 return *this;
176 }
177 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
178 DefinitionInformation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
179 m_tagsHasBeenSet = true;
180 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
181 return *this;
182 }
184 private:
185 Aws::String m_arn;
186
187 Aws::String m_creationTimestamp;
188
189 Aws::String m_id;
190
191 Aws::String m_lastUpdatedTimestamp;
192
193 Aws::String m_latestVersion;
194
195 Aws::String m_latestVersionArn;
196
197 Aws::String m_name;
198
200 bool m_arnHasBeenSet = false;
201 bool m_creationTimestampHasBeenSet = false;
202 bool m_idHasBeenSet = false;
203 bool m_lastUpdatedTimestampHasBeenSet = false;
204 bool m_latestVersionHasBeenSet = false;
205 bool m_latestVersionArnHasBeenSet = false;
206 bool m_nameHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace Greengrass
212} // namespace Aws
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationTimestamp(CreationTimestampT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GREENGRASS_API DefinitionInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
DefinitionInformation & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
DefinitionInformation & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
DefinitionInformation & WithLatestVersion(LatestVersionT &&value)
DefinitionInformation & WithCreationTimestamp(CreationTimestampT &&value)
void SetLatestVersionArn(LatestVersionArnT &&value)
AWS_GREENGRASS_API DefinitionInformation()=default
DefinitionInformation & WithLatestVersionArn(LatestVersionArnT &&value)
DefinitionInformation & WithId(IdT &&value)
AWS_GREENGRASS_API DefinitionInformation(Aws::Utils::Json::JsonView jsonValue)
DefinitionInformation & WithTags(TagsT &&value)
DefinitionInformation & WithArn(ArnT &&value)
DefinitionInformation & WithName(NameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue