AWS SDK for C++  0.14.3
AWS SDK for C++
ConfirmProductInstanceResponse.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlDocument;
30 } // namespace Xml
31 } // namespace Utils
32 namespace EC2
33 {
34 namespace Model
35 {
40  {
41  public:
45 
50  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
51 
56  inline void SetOwnerId(const Aws::String& value) { m_ownerId = value; }
57 
62  inline void SetOwnerId(Aws::String&& value) { m_ownerId = value; }
63 
68  inline void SetOwnerId(const char* value) { m_ownerId.assign(value); }
69 
74  inline ConfirmProductInstanceResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
75 
80  inline ConfirmProductInstanceResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
81 
86  inline ConfirmProductInstanceResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
87 
93  inline bool GetReturn() const{ return m_return; }
94 
100  inline void SetReturn(bool value) { m_return = value; }
101 
107  inline ConfirmProductInstanceResponse& WithReturn(bool value) { SetReturn(value); return *this;}
108 
109 
110  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
111 
112 
113  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
114 
115 
116  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
117 
118 
119  inline ConfirmProductInstanceResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
120 
121 
122  inline ConfirmProductInstanceResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
123 
124  private:
125  Aws::String m_ownerId;
126  bool m_return;
127  ResponseMetadata m_responseMetadata;
128  };
129 
130 } // namespace Model
131 } // namespace EC2
132 } // namespace Aws
ConfirmProductInstanceResponse & WithReturn(bool value)
ConfirmProductInstanceResponse & WithOwnerId(Aws::String &&value)
ConfirmProductInstanceResponse & WithOwnerId(const Aws::String &value)
ConfirmProductInstanceResponse & WithResponseMetadata(ResponseMetadata &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ConfirmProductInstanceResponse & WithResponseMetadata(const ResponseMetadata &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).
ConfirmProductInstanceResponse & WithOwnerId(const char *value)