AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DefinitionInformation.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Greengrass
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GREENGRASS_API DefinitionInformation() = default;
38 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 DefinitionInformation& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
61 template<typename CreationTimestampT = Aws::String>
62 DefinitionInformation& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
64
66
69 inline const Aws::String& GetId() const { return m_id; }
70 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
71 template<typename IdT = Aws::String>
72 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
73 template<typename IdT = Aws::String>
74 DefinitionInformation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
76
78
81 inline const Aws::String& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
82 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
83 template<typename LastUpdatedTimestampT = Aws::String>
84 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
85 template<typename LastUpdatedTimestampT = Aws::String>
86 DefinitionInformation& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
88
90
93 inline const Aws::String& GetLatestVersion() const { return m_latestVersion; }
94 inline bool LatestVersionHasBeenSet() const { return m_latestVersionHasBeenSet; }
95 template<typename LatestVersionT = Aws::String>
96 void SetLatestVersion(LatestVersionT&& value) { m_latestVersionHasBeenSet = true; m_latestVersion = std::forward<LatestVersionT>(value); }
97 template<typename LatestVersionT = Aws::String>
98 DefinitionInformation& WithLatestVersion(LatestVersionT&& value) { SetLatestVersion(std::forward<LatestVersionT>(value)); return *this;}
100
102
105 inline const Aws::String& GetLatestVersionArn() const { return m_latestVersionArn; }
106 inline bool LatestVersionArnHasBeenSet() const { return m_latestVersionArnHasBeenSet; }
107 template<typename LatestVersionArnT = Aws::String>
108 void SetLatestVersionArn(LatestVersionArnT&& value) { m_latestVersionArnHasBeenSet = true; m_latestVersionArn = std::forward<LatestVersionArnT>(value); }
109 template<typename LatestVersionArnT = Aws::String>
110 DefinitionInformation& WithLatestVersionArn(LatestVersionArnT&& value) { SetLatestVersionArn(std::forward<LatestVersionArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetName() const { return m_name; }
118 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
119 template<typename NameT = Aws::String>
120 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
121 template<typename NameT = Aws::String>
122 DefinitionInformation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
124
126
129 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
130 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
132 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
133 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 DefinitionInformation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
135 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
136 DefinitionInformation& AddTags(TagsKeyT&& key, TagsValueT&& value) {
137 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
138 }
140 private:
141
142 Aws::String m_arn;
143 bool m_arnHasBeenSet = false;
144
145 Aws::String m_creationTimestamp;
146 bool m_creationTimestampHasBeenSet = false;
147
148 Aws::String m_id;
149 bool m_idHasBeenSet = false;
150
151 Aws::String m_lastUpdatedTimestamp;
152 bool m_lastUpdatedTimestampHasBeenSet = false;
153
154 Aws::String m_latestVersion;
155 bool m_latestVersionHasBeenSet = false;
156
157 Aws::String m_latestVersionArn;
158 bool m_latestVersionArnHasBeenSet = false;
159
160 Aws::String m_name;
161 bool m_nameHasBeenSet = false;
162
164 bool m_tagsHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace Greengrass
169} // 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