AWS SDK for C++  1.9.72
AWS SDK for C++
CreateImageResponse.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 CreateImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
60 
64  inline CreateImageResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
65 
69  inline CreateImageResponse& 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 CreateImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
83 
84 
85  inline CreateImageResponse& 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::CreateImageResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateImageResponse.h:79
Aws::EC2::Model::CreateImageResponse::CreateImageResponse
CreateImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateImageResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateImageResponse.h:73
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CreateImageResponse::SetImageId
void SetImageId(const Aws::String &value)
Definition: CreateImageResponse.h:44
Aws::EC2::Model::CreateImageResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateImageResponse.h:76
Aws::EC2::Model::CreateImageResponse::GetImageId
const Aws::String & GetImageId() const
Definition: CreateImageResponse.h:39
Aws::EC2::Model::CreateImageResponse::WithImageId
CreateImageResponse & WithImageId(const char *value)
Definition: CreateImageResponse.h:69
Aws::EC2::Model::CreateImageResponse::SetImageId
void SetImageId(const char *value)
Definition: CreateImageResponse.h:54
Aws::EC2::Model::CreateImageResponse::WithResponseMetadata
CreateImageResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateImageResponse.h:82
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::CreateImageResponse::CreateImageResponse
CreateImageResponse()
Aws::EC2::Model::CreateImageResponse::WithImageId
CreateImageResponse & WithImageId(const Aws::String &value)
Definition: CreateImageResponse.h:59
AWSString.h
Aws::EC2::Model::CreateImageResponse::WithResponseMetadata
CreateImageResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateImageResponse.h:85
Aws::EC2::Model::CreateImageResponse
Definition: CreateImageResponse.h:29
Aws::EC2::Model::CreateImageResponse::SetImageId
void SetImageId(Aws::String &&value)
Definition: CreateImageResponse.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateImageResponse::WithImageId
CreateImageResponse & WithImageId(Aws::String &&value)
Definition: CreateImageResponse.h:64
EC2_EXPORTS.h
Aws::EC2::Model::CreateImageResponse::operator=
CreateImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)