AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
VersionInformation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Greengrass {
20namespace Model {
21
28 public:
29 AWS_GREENGRASS_API VersionInformation() = default;
30 AWS_GREENGRASS_API VersionInformation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetArn() const { return m_arn; }
39 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
40 template <typename ArnT = Aws::String>
41 void SetArn(ArnT&& value) {
42 m_arnHasBeenSet = true;
43 m_arn = std::forward<ArnT>(value);
44 }
45 template <typename ArnT = Aws::String>
46 VersionInformation& WithArn(ArnT&& value) {
47 SetArn(std::forward<ArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCreationTimestamp() const { return m_creationTimestamp; }
57 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
58 template <typename CreationTimestampT = Aws::String>
59 void SetCreationTimestamp(CreationTimestampT&& value) {
60 m_creationTimestampHasBeenSet = true;
61 m_creationTimestamp = std::forward<CreationTimestampT>(value);
62 }
63 template <typename CreationTimestampT = Aws::String>
64 VersionInformation& WithCreationTimestamp(CreationTimestampT&& value) {
65 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
82 VersionInformation& WithId(IdT&& value) {
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetVersion() const { return m_version; }
93 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
94 template <typename VersionT = Aws::String>
95 void SetVersion(VersionT&& value) {
96 m_versionHasBeenSet = true;
97 m_version = std::forward<VersionT>(value);
98 }
99 template <typename VersionT = Aws::String>
100 VersionInformation& WithVersion(VersionT&& value) {
101 SetVersion(std::forward<VersionT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_arn;
107
108 Aws::String m_creationTimestamp;
109
110 Aws::String m_id;
111
112 Aws::String m_version;
113 bool m_arnHasBeenSet = false;
114 bool m_creationTimestampHasBeenSet = false;
115 bool m_idHasBeenSet = false;
116 bool m_versionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Greengrass
121} // namespace Aws
AWS_GREENGRASS_API VersionInformation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreationTimestamp() const
VersionInformation & WithArn(ArnT &&value)
VersionInformation & WithId(IdT &&value)
VersionInformation & WithVersion(VersionT &&value)
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API VersionInformation()=default
AWS_GREENGRASS_API VersionInformation(Aws::Utils::Json::JsonView jsonValue)
VersionInformation & WithCreationTimestamp(CreationTimestampT &&value)
void SetCreationTimestamp(CreationTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue