AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateComponentVersionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
10#include <aws/greengrassv2/model/CloudComponentStatus.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 GreengrassV2 {
24namespace Model {
26 public:
27 AWS_GREENGRASSV2_API CreateComponentVersionResult() = default;
30
32
37 inline const Aws::String& GetArn() const { return m_arn; }
38 template <typename ArnT = Aws::String>
39 void SetArn(ArnT&& value) {
40 m_arnHasBeenSet = true;
41 m_arn = std::forward<ArnT>(value);
42 }
43 template <typename ArnT = Aws::String>
45 SetArn(std::forward<ArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetComponentName() const { return m_componentName; }
55 template <typename ComponentNameT = Aws::String>
56 void SetComponentName(ComponentNameT&& value) {
57 m_componentNameHasBeenSet = true;
58 m_componentName = std::forward<ComponentNameT>(value);
59 }
60 template <typename ComponentNameT = Aws::String>
62 SetComponentName(std::forward<ComponentNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
72 template <typename ComponentVersionT = Aws::String>
73 void SetComponentVersion(ComponentVersionT&& value) {
74 m_componentVersionHasBeenSet = true;
75 m_componentVersion = std::forward<ComponentVersionT>(value);
76 }
77 template <typename ComponentVersionT = Aws::String>
79 SetComponentVersion(std::forward<ComponentVersionT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
90 template <typename CreationTimestampT = Aws::Utils::DateTime>
91 void SetCreationTimestamp(CreationTimestampT&& value) {
92 m_creationTimestampHasBeenSet = true;
93 m_creationTimestamp = std::forward<CreationTimestampT>(value);
94 }
95 template <typename CreationTimestampT = Aws::Utils::DateTime>
97 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
98 return *this;
99 }
101
103
107 inline const CloudComponentStatus& GetStatus() const { return m_status; }
108 template <typename StatusT = CloudComponentStatus>
109 void SetStatus(StatusT&& value) {
110 m_statusHasBeenSet = true;
111 m_status = std::forward<StatusT>(value);
112 }
113 template <typename StatusT = CloudComponentStatus>
115 SetStatus(std::forward<StatusT>(value));
116 return *this;
117 }
119
121
122 inline const Aws::String& GetRequestId() const { return m_requestId; }
123 template <typename RequestIdT = Aws::String>
124 void SetRequestId(RequestIdT&& value) {
125 m_requestIdHasBeenSet = true;
126 m_requestId = std::forward<RequestIdT>(value);
127 }
128 template <typename RequestIdT = Aws::String>
130 SetRequestId(std::forward<RequestIdT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_arn;
136
137 Aws::String m_componentName;
138
139 Aws::String m_componentVersion;
140
141 Aws::Utils::DateTime m_creationTimestamp{};
142
143 CloudComponentStatus m_status;
144
145 Aws::String m_requestId;
146 bool m_arnHasBeenSet = false;
147 bool m_componentNameHasBeenSet = false;
148 bool m_componentVersionHasBeenSet = false;
149 bool m_creationTimestampHasBeenSet = false;
150 bool m_statusHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace GreengrassV2
156} // 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