AWS SDK for C++  1.9.108
AWS SDK for C++
CopyImageResponse.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 {
34  {
35  public:
39 
40 
44  inline const Aws::String& GetImageId() const{ return m_imageId; }
45 
49  inline void SetImageId(const Aws::String& value) { m_imageId = value; }
50 
54  inline void SetImageId(Aws::String&& value) { m_imageId = std::move(value); }
55 
59  inline void SetImageId(const char* value) { m_imageId.assign(value); }
60 
64  inline CopyImageResponse& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
65 
69  inline CopyImageResponse& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
70 
74  inline CopyImageResponse& WithImageId(const char* value) { SetImageId(value); return *this;}
75 
76 
77 
78  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
79 
80 
81  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
82 
83 
84  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
85 
86 
87  inline CopyImageResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
88 
89 
90  inline CopyImageResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
91 
92  private:
93 
94  Aws::String m_imageId;
95 
96  ResponseMetadata m_responseMetadata;
97  };
98 
99 } // namespace Model
100 } // namespace EC2
101 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CopyImageResponse::SetImageId
void SetImageId(Aws::String &&value)
Definition: CopyImageResponse.h:54
Aws::EC2::Model::CopyImageResponse::CopyImageResponse
CopyImageResponse()
Aws::EC2::Model::CopyImageResponse::WithResponseMetadata
CopyImageResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CopyImageResponse.h:87
Aws::EC2::Model::CopyImageResponse::GetImageId
const Aws::String & GetImageId() const
Definition: CopyImageResponse.h:44
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CopyImageResponse::SetImageId
void SetImageId(const Aws::String &value)
Definition: CopyImageResponse.h:49
Aws::EC2::Model::CopyImageResponse::CopyImageResponse
CopyImageResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CopyImageResponse::SetImageId
void SetImageId(const char *value)
Definition: CopyImageResponse.h:59
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CopyImageResponse::operator=
CopyImageResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CopyImageResponse::WithResponseMetadata
CopyImageResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CopyImageResponse.h:90
Aws::EC2::Model::CopyImageResponse::WithImageId
CopyImageResponse & WithImageId(Aws::String &&value)
Definition: CopyImageResponse.h:69
Aws::EC2::Model::CopyImageResponse::WithImageId
CopyImageResponse & WithImageId(const char *value)
Definition: CopyImageResponse.h:74
Aws::EC2::Model::CopyImageResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CopyImageResponse.h:84
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CopyImageResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CopyImageResponse.h:78
Aws::EC2::Model::CopyImageResponse::WithImageId
CopyImageResponse & WithImageId(const Aws::String &value)
Definition: CopyImageResponse.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CopyImageResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CopyImageResponse.h:81
EC2_EXPORTS.h
Aws::EC2::Model::CopyImageResponse
Definition: CopyImageResponse.h:34