AWS SDK for C++  1.9.131
AWS SDK for C++
ConfirmProductInstanceResponse.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 
40  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
41 
46  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
47 
52  inline void SetOwnerId(Aws::String&& value) { m_ownerId = std::move(value); }
53 
58  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
59 
64  inline ConfirmProductInstanceResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
65 
70  inline ConfirmProductInstanceResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
71 
76  inline ConfirmProductInstanceResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
77 
78 
84  inline bool GetReturn() const{ return m_return; }
85 
91  inline void SetReturn(bool value) { m_return = value; }
92 
98  inline ConfirmProductInstanceResponse& WithReturn(bool value) { SetReturn(value); return *this;}
99 
100 
101 
102  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
103 
104 
105  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
106 
107 
108  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
109 
110 
111  inline ConfirmProductInstanceResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
112 
113 
114  inline ConfirmProductInstanceResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
115 
116  private:
117 
118  Aws::String m_ownerId;
119 
120  bool m_return;
121 
122  ResponseMetadata m_responseMetadata;
123  };
124 
125 } // namespace Model
126 } // namespace EC2
127 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::ConfirmProductInstanceResponse::WithResponseMetadata
ConfirmProductInstanceResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ConfirmProductInstanceResponse.h:114
Aws::EC2::Model::ConfirmProductInstanceResponse::WithOwnerId
ConfirmProductInstanceResponse & WithOwnerId(const Aws::String &value)
Definition: ConfirmProductInstanceResponse.h:64
Aws::EC2::Model::ConfirmProductInstanceResponse::GetReturn
bool GetReturn() const
Definition: ConfirmProductInstanceResponse.h:84
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::ConfirmProductInstanceResponse::SetOwnerId
void SetOwnerId(const Aws::String &value)
Definition: ConfirmProductInstanceResponse.h:46
Aws::EC2::Model::ConfirmProductInstanceResponse::WithReturn
ConfirmProductInstanceResponse & WithReturn(bool value)
Definition: ConfirmProductInstanceResponse.h:98
Aws::EC2::Model::ConfirmProductInstanceResponse::SetOwnerId
void SetOwnerId(Aws::String &&value)
Definition: ConfirmProductInstanceResponse.h:52
Aws::EC2::Model::ConfirmProductInstanceResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ConfirmProductInstanceResponse.h:102
Aws::EC2::Model::ConfirmProductInstanceResponse
Definition: ConfirmProductInstanceResponse.h:29
Aws::EC2::Model::ConfirmProductInstanceResponse::GetOwnerId
const Aws::String & GetOwnerId() const
Definition: ConfirmProductInstanceResponse.h:40
Aws::EC2::Model::ConfirmProductInstanceResponse::operator=
ConfirmProductInstanceResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ConfirmProductInstanceResponse::ConfirmProductInstanceResponse
ConfirmProductInstanceResponse()
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ConfirmProductInstanceResponse::SetOwnerId
void SetOwnerId(const char *value)
Definition: ConfirmProductInstanceResponse.h:58
AWSString.h
Aws::EC2::Model::ConfirmProductInstanceResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ConfirmProductInstanceResponse.h:108
Aws::EC2::Model::ConfirmProductInstanceResponse::SetReturn
void SetReturn(bool value)
Definition: ConfirmProductInstanceResponse.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ConfirmProductInstanceResponse::ConfirmProductInstanceResponse
ConfirmProductInstanceResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ConfirmProductInstanceResponse::WithResponseMetadata
ConfirmProductInstanceResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ConfirmProductInstanceResponse.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ConfirmProductInstanceResponse::WithOwnerId
ConfirmProductInstanceResponse & WithOwnerId(Aws::String &&value)
Definition: ConfirmProductInstanceResponse.h:70
Aws::EC2::Model::ConfirmProductInstanceResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ConfirmProductInstanceResponse.h:105
EC2_EXPORTS.h
Aws::EC2::Model::ConfirmProductInstanceResponse::WithOwnerId
ConfirmProductInstanceResponse & WithOwnerId(const char *value)
Definition: ConfirmProductInstanceResponse.h:76