AWS SDK for C++  1.9.68
AWS SDK for C++
AllocateHostsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Xml
21 {
22  class XmlDocument;
23 } // namespace Xml
24 } // namespace Utils
25 namespace EC2
26 {
27 namespace Model
28 {
35  {
36  public:
40 
41 
46  inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
47 
52  inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIds = value; }
53 
58  inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIds = std::move(value); }
59 
64  inline AllocateHostsResponse& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
65 
70  inline AllocateHostsResponse& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(std::move(value)); return *this;}
71 
76  inline AllocateHostsResponse& AddHostIds(const Aws::String& value) { m_hostIds.push_back(value); return *this; }
77 
82  inline AllocateHostsResponse& AddHostIds(Aws::String&& value) { m_hostIds.push_back(std::move(value)); return *this; }
83 
88  inline AllocateHostsResponse& AddHostIds(const char* value) { m_hostIds.push_back(value); return *this; }
89 
90 
91 
92  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
93 
94 
95  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
96 
97 
98  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
99 
100 
101  inline AllocateHostsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
102 
103 
104  inline AllocateHostsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
105 
106  private:
107 
108  Aws::Vector<Aws::String> m_hostIds;
109 
110  ResponseMetadata m_responseMetadata;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::EC2::Model::AllocateHostsResponse::AllocateHostsResponse
AllocateHostsResponse()
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::AllocateHostsResponse::WithResponseMetadata
AllocateHostsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: AllocateHostsResponse.h:101
Aws::EC2::Model::AllocateHostsResponse::AllocateHostsResponse
AllocateHostsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::AllocateHostsResponse::AddHostIds
AllocateHostsResponse & AddHostIds(const char *value)
Definition: AllocateHostsResponse.h:88
Aws::EC2::Model::AllocateHostsResponse::operator=
AllocateHostsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::AllocateHostsResponse::SetHostIds
void SetHostIds(const Aws::Vector< Aws::String > &value)
Definition: AllocateHostsResponse.h:52
Aws::EC2::Model::AllocateHostsResponse::SetHostIds
void SetHostIds(Aws::Vector< Aws::String > &&value)
Definition: AllocateHostsResponse.h:58
Aws::EC2::Model::AllocateHostsResponse::WithHostIds
AllocateHostsResponse & WithHostIds(Aws::Vector< Aws::String > &&value)
Definition: AllocateHostsResponse.h:70
Aws::EC2::Model::AllocateHostsResponse::AddHostIds
AllocateHostsResponse & AddHostIds(Aws::String &&value)
Definition: AllocateHostsResponse.h:82
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::AllocateHostsResponse
Definition: AllocateHostsResponse.h:35
Aws::EC2::Model::AllocateHostsResponse::WithHostIds
AllocateHostsResponse & WithHostIds(const Aws::Vector< Aws::String > &value)
Definition: AllocateHostsResponse.h:64
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::AllocateHostsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: AllocateHostsResponse.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AllocateHostsResponse::WithResponseMetadata
AllocateHostsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: AllocateHostsResponse.h:104
Aws::EC2::Model::AllocateHostsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: AllocateHostsResponse.h:92
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AllocateHostsResponse::GetHostIds
const Aws::Vector< Aws::String > & GetHostIds() const
Definition: AllocateHostsResponse.h:46
EC2_EXPORTS.h
Aws::EC2::Model::AllocateHostsResponse::AddHostIds
AllocateHostsResponse & AddHostIds(const Aws::String &value)
Definition: AllocateHostsResponse.h:76
Aws::EC2::Model::AllocateHostsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: AllocateHostsResponse.h:98