AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VersionInformation.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GREENGRASS_API VersionInformation() = default;
35 AWS_GREENGRASS_API VersionInformation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template<typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
48 template<typename ArnT = Aws::String>
49 VersionInformation& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
60 template<typename CreationTimestampT = Aws::String>
61 VersionInformation& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
63
65
68 inline const Aws::String& GetId() const { return m_id; }
69 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
70 template<typename IdT = Aws::String>
71 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
72 template<typename IdT = Aws::String>
73 VersionInformation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetVersion() const { return m_version; }
81 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
82 template<typename VersionT = Aws::String>
83 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
84 template<typename VersionT = Aws::String>
85 VersionInformation& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
87 private:
88
89 Aws::String m_arn;
90 bool m_arnHasBeenSet = false;
91
92 Aws::String m_creationTimestamp;
93 bool m_creationTimestampHasBeenSet = false;
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 Aws::String m_version;
99 bool m_versionHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Greengrass
104} // 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