AWS SDK for C++  1.9.129
AWS SDK for C++
CreateComponentVersionResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace GreengrassV2
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::String& GetArn() const{ return m_arn; }
43 
49  inline void SetArn(const Aws::String& value) { m_arn = value; }
50 
56  inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
57 
63  inline void SetArn(const char* value) { m_arn.assign(value); }
64 
70  inline CreateComponentVersionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
77  inline CreateComponentVersionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
78 
84  inline CreateComponentVersionResult& WithArn(const char* value) { SetArn(value); return *this;}
85 
86 
90  inline const Aws::String& GetComponentName() const{ return m_componentName; }
91 
95  inline void SetComponentName(const Aws::String& value) { m_componentName = value; }
96 
100  inline void SetComponentName(Aws::String&& value) { m_componentName = std::move(value); }
101 
105  inline void SetComponentName(const char* value) { m_componentName.assign(value); }
106 
110  inline CreateComponentVersionResult& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
111 
115  inline CreateComponentVersionResult& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
116 
120  inline CreateComponentVersionResult& WithComponentName(const char* value) { SetComponentName(value); return *this;}
121 
122 
126  inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
127 
131  inline void SetComponentVersion(const Aws::String& value) { m_componentVersion = value; }
132 
136  inline void SetComponentVersion(Aws::String&& value) { m_componentVersion = std::move(value); }
137 
141  inline void SetComponentVersion(const char* value) { m_componentVersion.assign(value); }
142 
146  inline CreateComponentVersionResult& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
147 
151  inline CreateComponentVersionResult& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
152 
156  inline CreateComponentVersionResult& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
157 
158 
163  inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
164 
169  inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestamp = value; }
170 
175  inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestamp = std::move(value); }
176 
181  inline CreateComponentVersionResult& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;}
182 
187  inline CreateComponentVersionResult& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;}
188 
189 
194  inline const CloudComponentStatus& GetStatus() const{ return m_status; }
195 
200  inline void SetStatus(const CloudComponentStatus& value) { m_status = value; }
201 
206  inline void SetStatus(CloudComponentStatus&& value) { m_status = std::move(value); }
207 
212  inline CreateComponentVersionResult& WithStatus(const CloudComponentStatus& value) { SetStatus(value); return *this;}
213 
218  inline CreateComponentVersionResult& WithStatus(CloudComponentStatus&& value) { SetStatus(std::move(value)); return *this;}
219 
220  private:
221 
222  Aws::String m_arn;
223 
224  Aws::String m_componentName;
225 
226  Aws::String m_componentVersion;
227 
228  Aws::Utils::DateTime m_creationTimestamp;
229 
230  CloudComponentStatus m_status;
231  };
232 
233 } // namespace Model
234 } // namespace GreengrassV2
235 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentVersion
CreateComponentVersionResult & WithComponentVersion(Aws::String &&value)
Definition: CreateComponentVersionResult.h:151
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetStatus
void SetStatus(const CloudComponentStatus &value)
Definition: CreateComponentVersionResult.h:200
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentName
CreateComponentVersionResult & WithComponentName(Aws::String &&value)
Definition: CreateComponentVersionResult.h:115
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetArn
void SetArn(const Aws::String &value)
Definition: CreateComponentVersionResult.h:49
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithStatus
CreateComponentVersionResult & WithStatus(const CloudComponentStatus &value)
Definition: CreateComponentVersionResult.h:212
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentName
void SetComponentName(const char *value)
Definition: CreateComponentVersionResult.h:105
DateTime.h
CloudComponentStatus.h
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::CreateComponentVersionResult::CreateComponentVersionResult
CreateComponentVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GreengrassV2::Model::CreateComponentVersionResult::GetComponentName
const Aws::String & GetComponentName() const
Definition: CreateComponentVersionResult.h:90
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithArn
CreateComponentVersionResult & WithArn(Aws::String &&value)
Definition: CreateComponentVersionResult.h:77
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentVersion
CreateComponentVersionResult & WithComponentVersion(const Aws::String &value)
Definition: CreateComponentVersionResult.h:146
Aws::GreengrassV2::Model::CreateComponentVersionResult::GetCreationTimestamp
const Aws::Utils::DateTime & GetCreationTimestamp() const
Definition: CreateComponentVersionResult.h:163
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentVersion
void SetComponentVersion(Aws::String &&value)
Definition: CreateComponentVersionResult.h:136
Aws::GreengrassV2::Model::CreateComponentVersionResult::GetStatus
const CloudComponentStatus & GetStatus() const
Definition: CreateComponentVersionResult.h:194
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: CreateComponentVersionResult.h:100
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetCreationTimestamp
void SetCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateComponentVersionResult.h:169
Aws::GreengrassV2::Model::CreateComponentVersionResult::CreateComponentVersionResult
CreateComponentVersionResult()
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentVersion
CreateComponentVersionResult & WithComponentVersion(const char *value)
Definition: CreateComponentVersionResult.h:156
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentName
CreateComponentVersionResult & WithComponentName(const Aws::String &value)
Definition: CreateComponentVersionResult.h:110
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithArn
CreateComponentVersionResult & WithArn(const char *value)
Definition: CreateComponentVersionResult.h:84
AWSString.h
Aws::GreengrassV2::Model::CreateComponentVersionResult::GetArn
const Aws::String & GetArn() const
Definition: CreateComponentVersionResult.h:42
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithCreationTimestamp
CreateComponentVersionResult & WithCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateComponentVersionResult.h:187
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetStatus
void SetStatus(CloudComponentStatus &&value)
Definition: CreateComponentVersionResult.h:206
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetArn
void SetArn(Aws::String &&value)
Definition: CreateComponentVersionResult.h:56
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithStatus
CreateComponentVersionResult & WithStatus(CloudComponentStatus &&value)
Definition: CreateComponentVersionResult.h:218
Aws::GreengrassV2::Model::CreateComponentVersionResult::operator=
CreateComponentVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentVersion
void SetComponentVersion(const char *value)
Definition: CreateComponentVersionResult.h:141
Aws::GreengrassV2::Model::CloudComponentStatus
Definition: CloudComponentStatus.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithCreationTimestamp
CreateComponentVersionResult & WithCreationTimestamp(const Aws::Utils::DateTime &value)
Definition: CreateComponentVersionResult.h:181
Aws::GreengrassV2::Model::CreateComponentVersionResult::GetComponentVersion
const Aws::String & GetComponentVersion() const
Definition: CreateComponentVersionResult.h:126
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetArn
void SetArn(const char *value)
Definition: CreateComponentVersionResult.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetCreationTimestamp
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
Definition: CreateComponentVersionResult.h:175
Aws::GreengrassV2::Model::CreateComponentVersionResult
Definition: CreateComponentVersionResult.h:30
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: CreateComponentVersionResult.h:95
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithComponentName
CreateComponentVersionResult & WithComponentName(const char *value)
Definition: CreateComponentVersionResult.h:120
Aws::GreengrassV2::Model::CreateComponentVersionResult::WithArn
CreateComponentVersionResult & WithArn(const Aws::String &value)
Definition: CreateComponentVersionResult.h:70
Aws::GreengrassV2::Model::CreateComponentVersionResult::SetComponentVersion
void SetComponentVersion(const Aws::String &value)
Definition: CreateComponentVersionResult.h:131