AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
CreateComponentVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/CloudComponentStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2 {
25namespace Model {
27 public:
28 AWS_GREENGRASSV2_API CreateComponentVersionResult() = default;
31
33
38 inline const Aws::String& GetArn() const { return m_arn; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetComponentName() const { return m_componentName; }
56 template <typename ComponentNameT = Aws::String>
57 void SetComponentName(ComponentNameT&& value) {
58 m_componentNameHasBeenSet = true;
59 m_componentName = std::forward<ComponentNameT>(value);
60 }
61 template <typename ComponentNameT = Aws::String>
63 SetComponentName(std::forward<ComponentNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
73 template <typename ComponentVersionT = Aws::String>
74 void SetComponentVersion(ComponentVersionT&& value) {
75 m_componentVersionHasBeenSet = true;
76 m_componentVersion = std::forward<ComponentVersionT>(value);
77 }
78 template <typename ComponentVersionT = Aws::String>
80 SetComponentVersion(std::forward<ComponentVersionT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
91 template <typename CreationTimestampT = Aws::Utils::DateTime>
92 void SetCreationTimestamp(CreationTimestampT&& value) {
93 m_creationTimestampHasBeenSet = true;
94 m_creationTimestamp = std::forward<CreationTimestampT>(value);
95 }
96 template <typename CreationTimestampT = Aws::Utils::DateTime>
98 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
99 return *this;
100 }
102
104
108 inline const CloudComponentStatus& GetStatus() const { return m_status; }
109 template <typename StatusT = CloudComponentStatus>
110 void SetStatus(StatusT&& value) {
111 m_statusHasBeenSet = true;
112 m_status = std::forward<StatusT>(value);
113 }
114 template <typename StatusT = CloudComponentStatus>
116 SetStatus(std::forward<StatusT>(value));
117 return *this;
118 }
120
122
123 inline const Aws::String& GetRequestId() const { return m_requestId; }
124 template <typename RequestIdT = Aws::String>
125 void SetRequestId(RequestIdT&& value) {
126 m_requestIdHasBeenSet = true;
127 m_requestId = std::forward<RequestIdT>(value);
128 }
129 template <typename RequestIdT = Aws::String>
131 SetRequestId(std::forward<RequestIdT>(value));
132 return *this;
133 }
135 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
136
137 private:
138 Aws::String m_arn;
139
140 Aws::String m_componentName;
141
142 Aws::String m_componentVersion;
143
144 Aws::Utils::DateTime m_creationTimestamp{};
145
146 CloudComponentStatus m_status;
147
148 Aws::String m_requestId;
149 Aws::Http::HttpResponseCode m_HttpResponseCode;
150 bool m_arnHasBeenSet = false;
151 bool m_componentNameHasBeenSet = false;
152 bool m_componentVersionHasBeenSet = false;
153 bool m_creationTimestampHasBeenSet = false;
154 bool m_statusHasBeenSet = false;
155 bool m_requestIdHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace GreengrassV2
160} // namespace Aws
AWS_GREENGRASSV2_API CreateComponentVersionResult()=default
AWS_GREENGRASSV2_API CreateComponentVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateComponentVersionResult & WithStatus(StatusT &&value)
CreateComponentVersionResult & WithComponentName(ComponentNameT &&value)
CreateComponentVersionResult & WithCreationTimestamp(CreationTimestampT &&value)
CreateComponentVersionResult & WithComponentVersion(ComponentVersionT &&value)
CreateComponentVersionResult & WithRequestId(RequestIdT &&value)
AWS_GREENGRASSV2_API CreateComponentVersionResult(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