AWS SDK for C++  1.9.71
AWS SDK for C++
ModifyHostsResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<Aws::String>& GetSuccessful() const{ return m_successful; }
42 
46  inline void SetSuccessful(const Aws::Vector<Aws::String>& value) { m_successful = value; }
47 
51  inline void SetSuccessful(Aws::Vector<Aws::String>&& value) { m_successful = std::move(value); }
52 
56  inline ModifyHostsResponse& WithSuccessful(const Aws::Vector<Aws::String>& value) { SetSuccessful(value); return *this;}
57 
61  inline ModifyHostsResponse& WithSuccessful(Aws::Vector<Aws::String>&& value) { SetSuccessful(std::move(value)); return *this;}
62 
66  inline ModifyHostsResponse& AddSuccessful(const Aws::String& value) { m_successful.push_back(value); return *this; }
67 
71  inline ModifyHostsResponse& AddSuccessful(Aws::String&& value) { m_successful.push_back(std::move(value)); return *this; }
72 
76  inline ModifyHostsResponse& AddSuccessful(const char* value) { m_successful.push_back(value); return *this; }
77 
78 
83  inline const Aws::Vector<UnsuccessfulItem>& GetUnsuccessful() const{ return m_unsuccessful; }
84 
89  inline void SetUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { m_unsuccessful = value; }
90 
95  inline void SetUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { m_unsuccessful = std::move(value); }
96 
101  inline ModifyHostsResponse& WithUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { SetUnsuccessful(value); return *this;}
102 
107  inline ModifyHostsResponse& WithUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { SetUnsuccessful(std::move(value)); return *this;}
108 
113  inline ModifyHostsResponse& AddUnsuccessful(const UnsuccessfulItem& value) { m_unsuccessful.push_back(value); return *this; }
114 
119  inline ModifyHostsResponse& AddUnsuccessful(UnsuccessfulItem&& value) { m_unsuccessful.push_back(std::move(value)); return *this; }
120 
121 
122 
123  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
124 
125 
126  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
127 
128 
129  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
130 
131 
132  inline ModifyHostsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
133 
134 
135  inline ModifyHostsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
136 
137  private:
138 
139  Aws::Vector<Aws::String> m_successful;
140 
141  Aws::Vector<UnsuccessfulItem> m_unsuccessful;
142 
143  ResponseMetadata m_responseMetadata;
144  };
145 
146 } // namespace Model
147 } // namespace EC2
148 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::ModifyHostsResponse::WithUnsuccessful
ModifyHostsResponse & WithUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
Definition: ModifyHostsResponse.h:101
Aws::EC2::Model::ModifyHostsResponse::AddUnsuccessful
ModifyHostsResponse & AddUnsuccessful(const UnsuccessfulItem &value)
Definition: ModifyHostsResponse.h:113
Aws::EC2::Model::ModifyHostsResponse::AddSuccessful
ModifyHostsResponse & AddSuccessful(const char *value)
Definition: ModifyHostsResponse.h:76
Aws::EC2::Model::ModifyHostsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ModifyHostsResponse.h:123
Aws::EC2::Model::UnsuccessfulItem
Definition: UnsuccessfulItem.h:34
Aws::EC2::Model::ModifyHostsResponse::WithSuccessful
ModifyHostsResponse & WithSuccessful(const Aws::Vector< Aws::String > &value)
Definition: ModifyHostsResponse.h:56
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyHostsResponse::AddUnsuccessful
ModifyHostsResponse & AddUnsuccessful(UnsuccessfulItem &&value)
Definition: ModifyHostsResponse.h:119
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyHostsResponse::ModifyHostsResponse
ModifyHostsResponse()
AWSVector.h
Aws::EC2::Model::ModifyHostsResponse::WithSuccessful
ModifyHostsResponse & WithSuccessful(Aws::Vector< Aws::String > &&value)
Definition: ModifyHostsResponse.h:61
Aws::EC2::Model::ModifyHostsResponse::SetUnsuccessful
void SetUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
Definition: ModifyHostsResponse.h:89
Aws::EC2::Model::ModifyHostsResponse::operator=
ModifyHostsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ModifyHostsResponse::GetSuccessful
const Aws::Vector< Aws::String > & GetSuccessful() const
Definition: ModifyHostsResponse.h:41
Aws::EC2::Model::ModifyHostsResponse::WithResponseMetadata
ModifyHostsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ModifyHostsResponse.h:132
Aws::EC2::Model::ModifyHostsResponse::SetUnsuccessful
void SetUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
Definition: ModifyHostsResponse.h:95
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::ModifyHostsResponse::AddSuccessful
ModifyHostsResponse & AddSuccessful(const Aws::String &value)
Definition: ModifyHostsResponse.h:66
Aws::EC2::Model::ModifyHostsResponse::ModifyHostsResponse
ModifyHostsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ModifyHostsResponse::GetUnsuccessful
const Aws::Vector< UnsuccessfulItem > & GetUnsuccessful() const
Definition: ModifyHostsResponse.h:83
Aws::EC2::Model::ModifyHostsResponse::WithResponseMetadata
ModifyHostsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ModifyHostsResponse.h:135
Aws::EC2::Model::ModifyHostsResponse
Definition: ModifyHostsResponse.h:31
Aws::EC2::Model::ModifyHostsResponse::SetSuccessful
void SetSuccessful(const Aws::Vector< Aws::String > &value)
Definition: ModifyHostsResponse.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyHostsResponse::WithUnsuccessful
ModifyHostsResponse & WithUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
Definition: ModifyHostsResponse.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EC2_EXPORTS.h
Aws::EC2::Model::ModifyHostsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ModifyHostsResponse.h:126
UnsuccessfulItem.h
Aws::EC2::Model::ModifyHostsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ModifyHostsResponse.h:129
Aws::EC2::Model::ModifyHostsResponse::SetSuccessful
void SetSuccessful(Aws::Vector< Aws::String > &&value)
Definition: ModifyHostsResponse.h:51
Aws::EC2::Model::ModifyHostsResponse::AddSuccessful
ModifyHostsResponse & AddSuccessful(Aws::String &&value)
Definition: ModifyHostsResponse.h:71