AWS SDK for C++  0.14.3
AWS SDK for C++
CreateFlowLogsResponse.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>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace EC2
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::Vector<Aws::String>& GetFlowLogIds() const{ return m_flowLogIds; }
52 
56  inline void SetFlowLogIds(const Aws::Vector<Aws::String>& value) { m_flowLogIds = value; }
57 
61  inline void SetFlowLogIds(Aws::Vector<Aws::String>&& value) { m_flowLogIds = value; }
62 
66  inline CreateFlowLogsResponse& WithFlowLogIds(const Aws::Vector<Aws::String>& value) { SetFlowLogIds(value); return *this;}
67 
71  inline CreateFlowLogsResponse& WithFlowLogIds(Aws::Vector<Aws::String>&& value) { SetFlowLogIds(value); return *this;}
72 
76  inline CreateFlowLogsResponse& AddFlowLogIds(const Aws::String& value) { m_flowLogIds.push_back(value); return *this; }
77 
81  inline CreateFlowLogsResponse& AddFlowLogIds(Aws::String&& value) { m_flowLogIds.push_back(value); return *this; }
82 
86  inline CreateFlowLogsResponse& AddFlowLogIds(const char* value) { m_flowLogIds.push_back(value); return *this; }
87 
92  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
93 
98  inline void SetClientToken(const Aws::String& value) { m_clientToken = value; }
99 
104  inline void SetClientToken(Aws::String&& value) { m_clientToken = value; }
105 
110  inline void SetClientToken(const char* value) { m_clientToken.assign(value); }
111 
116  inline CreateFlowLogsResponse& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
117 
122  inline CreateFlowLogsResponse& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
123 
128  inline CreateFlowLogsResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;}
129 
133  inline const Aws::Vector<UnsuccessfulItem>& GetUnsuccessful() const{ return m_unsuccessful; }
134 
138  inline void SetUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { m_unsuccessful = value; }
139 
143  inline void SetUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { m_unsuccessful = value; }
144 
148  inline CreateFlowLogsResponse& WithUnsuccessful(const Aws::Vector<UnsuccessfulItem>& value) { SetUnsuccessful(value); return *this;}
149 
153  inline CreateFlowLogsResponse& WithUnsuccessful(Aws::Vector<UnsuccessfulItem>&& value) { SetUnsuccessful(value); return *this;}
154 
158  inline CreateFlowLogsResponse& AddUnsuccessful(const UnsuccessfulItem& value) { m_unsuccessful.push_back(value); return *this; }
159 
163  inline CreateFlowLogsResponse& AddUnsuccessful(UnsuccessfulItem&& value) { m_unsuccessful.push_back(value); return *this; }
164 
165 
166  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
167 
168 
169  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
170 
171 
172  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
173 
174 
175  inline CreateFlowLogsResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
176 
177 
178  inline CreateFlowLogsResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
179 
180  private:
181  Aws::Vector<Aws::String> m_flowLogIds;
182  Aws::String m_clientToken;
183  Aws::Vector<UnsuccessfulItem> m_unsuccessful;
184  ResponseMetadata m_responseMetadata;
185  };
186 
187 } // namespace Model
188 } // namespace EC2
189 } // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
CreateFlowLogsResponse & AddFlowLogIds(const Aws::String &value)
CreateFlowLogsResponse & WithUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
void SetFlowLogIds(Aws::Vector< Aws::String > &&value)
const Aws::String & GetClientToken() const
void SetResponseMetadata(const ResponseMetadata &value)
const Aws::Vector< Aws::String > & GetFlowLogIds() const
CreateFlowLogsResponse & AddFlowLogIds(Aws::String &&value)
CreateFlowLogsResponse & AddFlowLogIds(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateFlowLogsResponse & WithClientToken(const char *value)
void SetUnsuccessful(Aws::Vector< UnsuccessfulItem > &&value)
void SetFlowLogIds(const Aws::Vector< Aws::String > &value)
const Aws::Vector< UnsuccessfulItem > & GetUnsuccessful() const
CreateFlowLogsResponse & WithUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
CreateFlowLogsResponse & WithClientToken(const Aws::String &value)
CreateFlowLogsResponse & WithResponseMetadata(const ResponseMetadata &value)
CreateFlowLogsResponse & WithResponseMetadata(ResponseMetadata &&value)
void SetResponseMetadata(ResponseMetadata &&value)
CreateFlowLogsResponse & AddUnsuccessful(const UnsuccessfulItem &value)
CreateFlowLogsResponse & WithFlowLogIds(Aws::Vector< Aws::String > &&value)
void SetUnsuccessful(const Aws::Vector< UnsuccessfulItem > &value)
void SetClientToken(const Aws::String &value)
CreateFlowLogsResponse & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateFlowLogsResponse & AddUnsuccessful(UnsuccessfulItem &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
CreateFlowLogsResponse & WithFlowLogIds(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).