AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AllocateHostsResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace EC2
26{
27namespace Model
28{
35 {
36 public:
37 AWS_EC2_API AllocateHostsResponse();
40
41
43
47 inline const Aws::Vector<Aws::String>& GetHostIds() const{ return m_hostIds; }
48 inline void SetHostIds(const Aws::Vector<Aws::String>& value) { m_hostIds = value; }
49 inline void SetHostIds(Aws::Vector<Aws::String>&& value) { m_hostIds = std::move(value); }
50 inline AllocateHostsResponse& WithHostIds(const Aws::Vector<Aws::String>& value) { SetHostIds(value); return *this;}
51 inline AllocateHostsResponse& WithHostIds(Aws::Vector<Aws::String>&& value) { SetHostIds(std::move(value)); return *this;}
52 inline AllocateHostsResponse& AddHostIds(const Aws::String& value) { m_hostIds.push_back(value); return *this; }
53 inline AllocateHostsResponse& AddHostIds(Aws::String&& value) { m_hostIds.push_back(std::move(value)); return *this; }
54 inline AllocateHostsResponse& AddHostIds(const char* value) { m_hostIds.push_back(value); return *this; }
56
58
59 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
60 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
61 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
63 inline AllocateHostsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
65 private:
66
68
69 ResponseMetadata m_responseMetadata;
70 };
71
72} // namespace Model
73} // namespace EC2
74} // namespace Aws
void SetHostIds(Aws::Vector< Aws::String > &&value)
AllocateHostsResponse & AddHostIds(const char *value)
void SetHostIds(const Aws::Vector< Aws::String > &value)
AllocateHostsResponse & WithResponseMetadata(const ResponseMetadata &value)
AllocateHostsResponse & AddHostIds(Aws::String &&value)
AllocateHostsResponse & WithHostIds(const Aws::Vector< Aws::String > &value)
AllocateHostsResponse & WithResponseMetadata(ResponseMetadata &&value)
const Aws::Vector< Aws::String > & GetHostIds() const
AWS_EC2_API AllocateHostsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadata &&value)
AllocateHostsResponse & WithHostIds(Aws::Vector< Aws::String > &&value)
AllocateHostsResponse & AddHostIds(const Aws::String &value)
void SetResponseMetadata(const ResponseMetadata &value)
AWS_EC2_API AllocateHostsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument