AWS SDK for C++  1.9.71
AWS SDK for C++
CreateFlowLogsResponse.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 
42  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
43 
48  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
49 
54  inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); }
55 
60  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
61 
66  inline CreateFlowLogsResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
67 
72  inline CreateFlowLogsResponse& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
73 
78  inline CreateFlowLogsResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
79 
80 
84  inline const Aws::Vector<Aws::String>& GetFlowLogIds() const{ return m_flowLogIds; }
85 
89  inline void SetFlowLogIds(const Aws::Vector<Aws::String>& value) { m_flowLogIds = value; }
90 
94  inline void SetFlowLogIds(Aws::Vector<Aws::String>&& value) { m_flowLogIds = std::move(value); }
95 
99  inline CreateFlowLogsResponse& WithFlowLogIds(const Aws::Vector<Aws::String>& value) { SetFlowLogIds(value); return *this;}
100 
104  inline CreateFlowLogsResponse& WithFlowLogIds(Aws::Vector<Aws::String>&& value) { SetFlowLogIds(std::move(value)); return *this;}
105 
109  inline CreateFlowLogsResponse& AddFlowLogIds(const Aws::String& value) { m_flowLogIds.push_back(value); return *this; }
110 
114  inline CreateFlowLogsResponse& AddFlowLogIds(Aws::String&& value) { m_flowLogIds.push_back(std::move(value)); return *this; }
115 
119  inline CreateFlowLogsResponse& AddFlowLogIds(const char* value) { m_flowLogIds.push_back(value); return *this; }
120 
121 
125  inline const Aws::Vector<UnsuccessfulItem>& GetUnsuccessful() const{ return m_unsuccessful; }
126 
130  inline void SetUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { m_unsuccessful = value; }
131 
135  inline void SetUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { m_unsuccessful = std::move(value); }
136 
140  inline CreateFlowLogsResponse& WithUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { SetUnsuccessful(value); return *this;}
141 
145  inline CreateFlowLogsResponse& WithUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { SetUnsuccessful(std::move(value)); return *this;}
146 
150  inline CreateFlowLogsResponse& AddUnsuccessful(const UnsuccessfulItem& value) { m_unsuccessful.push_back(value); return *this; }
151 
155  inline CreateFlowLogsResponse& AddUnsuccessful(UnsuccessfulItem&& value) { m_unsuccessful.push_back(std::move(value)); return *this; }
156 
157 
158 
159  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
160 
161 
162  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
163 
164 
165  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
166 
167 
168  inline CreateFlowLogsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
169 
170 
171  inline CreateFlowLogsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
172 
173  private:
174 
175  Aws::String m_clientToken;
176 
177  Aws::Vector<Aws::String> m_flowLogIds;
178 
179  Aws::Vector<UnsuccessfulItem> m_unsuccessful;
180 
181  ResponseMetadata m_responseMetadata;
182  };
183 
184 } // namespace Model
185 } // namespace EC2
186 } // namespace Aws
Aws::EC2::Model::CreateFlowLogsResponse::WithResponseMetadata
CreateFlowLogsResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateFlowLogsResponse.h:168
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateFlowLogsResponse::SetUnsuccessful
void SetUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
Definition: CreateFlowLogsResponse.h:135
Aws::EC2::Model::CreateFlowLogsResponse::CreateFlowLogsResponse
CreateFlowLogsResponse()
Aws::EC2::Model::CreateFlowLogsResponse::operator=
CreateFlowLogsResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateFlowLogsResponse::AddFlowLogIds
CreateFlowLogsResponse & AddFlowLogIds(const Aws::String &value)
Definition: CreateFlowLogsResponse.h:109
Aws::EC2::Model::CreateFlowLogsResponse::SetFlowLogIds
void SetFlowLogIds(const Aws::Vector< Aws::String > &value)
Definition: CreateFlowLogsResponse.h:89
Aws::EC2::Model::CreateFlowLogsResponse::WithClientToken
CreateFlowLogsResponse & WithClientToken(const char *value)
Definition: CreateFlowLogsResponse.h:78
Aws::EC2::Model::CreateFlowLogsResponse::WithClientToken
CreateFlowLogsResponse & WithClientToken(const Aws::String &value)
Definition: CreateFlowLogsResponse.h:66
Aws::EC2::Model::CreateFlowLogsResponse::WithUnsuccessful
CreateFlowLogsResponse & WithUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
Definition: CreateFlowLogsResponse.h:140
Aws::EC2::Model::CreateFlowLogsResponse::AddUnsuccessful
CreateFlowLogsResponse & AddUnsuccessful(const UnsuccessfulItem &value)
Definition: CreateFlowLogsResponse.h:150
Aws::EC2::Model::UnsuccessfulItem
Definition: UnsuccessfulItem.h:34
Aws::EC2::Model::CreateFlowLogsResponse::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateFlowLogsResponse.h:48
Aws::EC2::Model::CreateFlowLogsResponse::AddUnsuccessful
CreateFlowLogsResponse & AddUnsuccessful(UnsuccessfulItem &&value)
Definition: CreateFlowLogsResponse.h:155
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::CreateFlowLogsResponse::GetFlowLogIds
const Aws::Vector< Aws::String > & GetFlowLogIds() const
Definition: CreateFlowLogsResponse.h:84
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateFlowLogsResponse::GetUnsuccessful
const Aws::Vector< UnsuccessfulItem > & GetUnsuccessful() const
Definition: CreateFlowLogsResponse.h:125
AWSVector.h
Aws::EC2::Model::CreateFlowLogsResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateFlowLogsResponse.h:159
Aws::EC2::Model::CreateFlowLogsResponse::WithUnsuccessful
CreateFlowLogsResponse & WithUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
Definition: CreateFlowLogsResponse.h:145
Aws::EC2::Model::CreateFlowLogsResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateFlowLogsResponse.h:165
Aws::EC2::Model::CreateFlowLogsResponse::AddFlowLogIds
CreateFlowLogsResponse & AddFlowLogIds(const char *value)
Definition: CreateFlowLogsResponse.h:119
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CreateFlowLogsResponse::WithClientToken
CreateFlowLogsResponse & WithClientToken(Aws::String &&value)
Definition: CreateFlowLogsResponse.h:72
Aws::EC2::Model::CreateFlowLogsResponse::SetClientToken
void SetClientToken(const char *value)
Definition: CreateFlowLogsResponse.h:60
Aws::EC2::Model::CreateFlowLogsResponse::WithFlowLogIds
CreateFlowLogsResponse & WithFlowLogIds(const Aws::Vector< Aws::String > &value)
Definition: CreateFlowLogsResponse.h:99
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateFlowLogsResponse::WithResponseMetadata
CreateFlowLogsResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateFlowLogsResponse.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateFlowLogsResponse
Definition: CreateFlowLogsResponse.h:31
Aws::EC2::Model::CreateFlowLogsResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateFlowLogsResponse.h:162
Aws::EC2::Model::CreateFlowLogsResponse::SetFlowLogIds
void SetFlowLogIds(Aws::Vector< Aws::String > &&value)
Definition: CreateFlowLogsResponse.h:94
Aws::EC2::Model::CreateFlowLogsResponse::WithFlowLogIds
CreateFlowLogsResponse & WithFlowLogIds(Aws::Vector< Aws::String > &&value)
Definition: CreateFlowLogsResponse.h:104
Aws::EC2::Model::CreateFlowLogsResponse::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateFlowLogsResponse.h:42
Aws::EC2::Model::CreateFlowLogsResponse::AddFlowLogIds
CreateFlowLogsResponse & AddFlowLogIds(Aws::String &&value)
Definition: CreateFlowLogsResponse.h:114
EC2_EXPORTS.h
Aws::EC2::Model::CreateFlowLogsResponse::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateFlowLogsResponse.h:54
Aws::EC2::Model::CreateFlowLogsResponse::CreateFlowLogsResponse
CreateFlowLogsResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateFlowLogsResponse::SetUnsuccessful
void SetUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
Definition: CreateFlowLogsResponse.h:130
UnsuccessfulItem.h