AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetResourceDefinitionVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrass/Greengrass_EXPORTS.h>
10#include <aws/greengrass/model/ResourceDefinitionVersion.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Greengrass {
24namespace Model {
26 public:
27 AWS_GREENGRASS_API GetResourceDefinitionVersionResult() = default;
30
32
35 inline const Aws::String& GetArn() const { return m_arn; }
36 template <typename ArnT = Aws::String>
37 void SetArn(ArnT&& value) {
38 m_arnHasBeenSet = true;
39 m_arn = std::forward<ArnT>(value);
40 }
41 template <typename ArnT = Aws::String>
43 SetArn(std::forward<ArnT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetCreationTimestamp() const { return m_creationTimestamp; }
54 template <typename CreationTimestampT = Aws::String>
55 void SetCreationTimestamp(CreationTimestampT&& value) {
56 m_creationTimestampHasBeenSet = true;
57 m_creationTimestamp = std::forward<CreationTimestampT>(value);
58 }
59 template <typename CreationTimestampT = Aws::String>
61 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
62 return *this;
63 }
65
67
70 inline const ResourceDefinitionVersion& GetDefinition() const { return m_definition; }
71 template <typename DefinitionT = ResourceDefinitionVersion>
72 void SetDefinition(DefinitionT&& value) {
73 m_definitionHasBeenSet = true;
74 m_definition = std::forward<DefinitionT>(value);
75 }
76 template <typename DefinitionT = ResourceDefinitionVersion>
78 SetDefinition(std::forward<DefinitionT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetId() const { return m_id; }
88 template <typename IdT = Aws::String>
89 void SetId(IdT&& value) {
90 m_idHasBeenSet = true;
91 m_id = std::forward<IdT>(value);
92 }
93 template <typename IdT = Aws::String>
95 SetId(std::forward<IdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetVersion() const { return m_version; }
105 template <typename VersionT = Aws::String>
106 void SetVersion(VersionT&& value) {
107 m_versionHasBeenSet = true;
108 m_version = std::forward<VersionT>(value);
109 }
110 template <typename VersionT = Aws::String>
112 SetVersion(std::forward<VersionT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::String m_arn;
135
136 Aws::String m_creationTimestamp;
137
138 ResourceDefinitionVersion m_definition;
139
140 Aws::String m_id;
141
142 Aws::String m_version;
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_arnHasBeenSet = false;
147 bool m_creationTimestampHasBeenSet = false;
148 bool m_definitionHasBeenSet = false;
149 bool m_idHasBeenSet = false;
150 bool m_versionHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace Greengrass
156} // namespace Aws
GetResourceDefinitionVersionResult & WithCreationTimestamp(CreationTimestampT &&value)
GetResourceDefinitionVersionResult & WithRequestId(RequestIdT &&value)
AWS_GREENGRASS_API GetResourceDefinitionVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GREENGRASS_API GetResourceDefinitionVersionResult()=default
GetResourceDefinitionVersionResult & WithVersion(VersionT &&value)
GetResourceDefinitionVersionResult & WithDefinition(DefinitionT &&value)
AWS_GREENGRASS_API GetResourceDefinitionVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue