AWS SDK for C++  1.9.67
AWS SDK for C++
CreateRestoreImageTaskResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace EC2
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetImageId() const{ return m_imageId; }
40 
44  inline void SetImageId(const Aws::String& value) { m_imageId = value; }
45 
49  inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
50 
54  inline void SetImageId(const char* value) { m_imageId.assign(value); }
55 
59  inline CreateRestoreImageTaskResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
60 
64  inline CreateRestoreImageTaskResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
65 
69  inline CreateRestoreImageTaskResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
70 
71 
72 
73  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
74 
75 
76  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
77 
78 
79  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
80 
81 
82  inline CreateRestoreImageTaskResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
83 
84 
85  inline CreateRestoreImageTaskResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
86 
87  private:
88 
89  Aws::String m_imageId;
90 
91  ResponseMetadata m_responseMetadata;
92  };
93 
94 } // namespace Model
95 } // namespace EC2
96 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateRestoreImageTaskResponse::WithImageId
CreateRestoreImageTaskResponse & WithImageId(const char *value)
Definition: CreateRestoreImageTaskResponse.h:69
Aws::EC2::Model::CreateRestoreImageTaskResponse::WithResponseMetadata
CreateRestoreImageTaskResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateRestoreImageTaskResponse.h:85
Aws::EC2::Model::CreateRestoreImageTaskResponse::SetImageId
void SetImageId(const char *value)
Definition: CreateRestoreImageTaskResponse.h:54
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateRestoreImageTaskResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateRestoreImageTaskResponse.h:79
ResponseMetadata.h
Aws::EC2::Model::CreateRestoreImageTaskResponse::CreateRestoreImageTaskResponse
CreateRestoreImageTaskResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateRestoreImageTaskResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateRestoreImageTaskResponse.h:73
Aws::EC2::Model::CreateRestoreImageTaskResponse
Definition: CreateRestoreImageTaskResponse.h:29
Aws::EC2::Model::CreateRestoreImageTaskResponse::SetImageId
void SetImageId(const Aws::String &value)
Definition: CreateRestoreImageTaskResponse.h:44
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CreateRestoreImageTaskResponse::WithResponseMetadata
CreateRestoreImageTaskResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateRestoreImageTaskResponse.h:82
AWSString.h
Aws::EC2::Model::CreateRestoreImageTaskResponse::operator=
CreateRestoreImageTaskResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateRestoreImageTaskResponse::SetImageId
void SetImageId(Aws::String &&value)
Definition: CreateRestoreImageTaskResponse.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateRestoreImageTaskResponse::WithImageId
CreateRestoreImageTaskResponse & WithImageId(const Aws::String &value)
Definition: CreateRestoreImageTaskResponse.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateRestoreImageTaskResponse::WithImageId
CreateRestoreImageTaskResponse & WithImageId(Aws::String &&value)
Definition: CreateRestoreImageTaskResponse.h:64
Aws::EC2::Model::CreateRestoreImageTaskResponse::GetImageId
const Aws::String & GetImageId() const
Definition: CreateRestoreImageTaskResponse.h:39
Aws::EC2::Model::CreateRestoreImageTaskResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateRestoreImageTaskResponse.h:76
EC2_EXPORTS.h
Aws::EC2::Model::CreateRestoreImageTaskResponse::CreateRestoreImageTaskResponse
CreateRestoreImageTaskResponse()