AWS SDK for C++  0.12.9
AWS SDK for C++
FlowLog.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 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace EC2
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  FlowLog();
43  FlowLog(const Aws::Utils::Xml::XmlNode& xmlNode);
44  FlowLog& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
53 
57  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
58 
62  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
63 
67  inline FlowLog& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
68 
72  inline FlowLog& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(value); return *this;}
73 
77  inline const Aws::String& GetFlowLogId() const{ return m_flowLogId; }
78 
82  inline void SetFlowLogId(const Aws::String& value) { m_flowLogIdHasBeenSet = true; m_flowLogId = value; }
83 
87  inline void SetFlowLogId(Aws::String&& value) { m_flowLogIdHasBeenSet = true; m_flowLogId = value; }
88 
92  inline void SetFlowLogId(const char* value) { m_flowLogIdHasBeenSet = true; m_flowLogId.assign(value); }
93 
97  inline FlowLog& WithFlowLogId(const Aws::String& value) { SetFlowLogId(value); return *this;}
98 
102  inline FlowLog& WithFlowLogId(Aws::String&& value) { SetFlowLogId(value); return *this;}
103 
107  inline FlowLog& WithFlowLogId(const char* value) { SetFlowLogId(value); return *this;}
108 
112  inline const Aws::String& GetFlowLogStatus() const{ return m_flowLogStatus; }
113 
117  inline void SetFlowLogStatus(const Aws::String& value) { m_flowLogStatusHasBeenSet = true; m_flowLogStatus = value; }
118 
122  inline void SetFlowLogStatus(Aws::String&& value) { m_flowLogStatusHasBeenSet = true; m_flowLogStatus = value; }
123 
127  inline void SetFlowLogStatus(const char* value) { m_flowLogStatusHasBeenSet = true; m_flowLogStatus.assign(value); }
128 
132  inline FlowLog& WithFlowLogStatus(const Aws::String& value) { SetFlowLogStatus(value); return *this;}
133 
137  inline FlowLog& WithFlowLogStatus(Aws::String&& value) { SetFlowLogStatus(value); return *this;}
138 
142  inline FlowLog& WithFlowLogStatus(const char* value) { SetFlowLogStatus(value); return *this;}
143 
147  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
148 
152  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
153 
157  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
158 
162  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
163 
167  inline FlowLog& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
168 
172  inline FlowLog& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
173 
177  inline FlowLog& WithResourceId(const char* value) { SetResourceId(value); return *this;}
178 
182  inline const TrafficType& GetTrafficType() const{ return m_trafficType; }
183 
187  inline void SetTrafficType(const TrafficType& value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; }
188 
192  inline void SetTrafficType(TrafficType&& value) { m_trafficTypeHasBeenSet = true; m_trafficType = value; }
193 
197  inline FlowLog& WithTrafficType(const TrafficType& value) { SetTrafficType(value); return *this;}
198 
202  inline FlowLog& WithTrafficType(TrafficType&& value) { SetTrafficType(value); return *this;}
203 
207  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
208 
212  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
213 
217  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
218 
222  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
223 
227  inline FlowLog& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
228 
232  inline FlowLog& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
233 
237  inline FlowLog& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
238 
243  inline const Aws::String& GetDeliverLogsStatus() const{ return m_deliverLogsStatus; }
244 
249  inline void SetDeliverLogsStatus(const Aws::String& value) { m_deliverLogsStatusHasBeenSet = true; m_deliverLogsStatus = value; }
250 
255  inline void SetDeliverLogsStatus(Aws::String&& value) { m_deliverLogsStatusHasBeenSet = true; m_deliverLogsStatus = value; }
256 
261  inline void SetDeliverLogsStatus(const char* value) { m_deliverLogsStatusHasBeenSet = true; m_deliverLogsStatus.assign(value); }
262 
267  inline FlowLog& WithDeliverLogsStatus(const Aws::String& value) { SetDeliverLogsStatus(value); return *this;}
268 
273  inline FlowLog& WithDeliverLogsStatus(Aws::String&& value) { SetDeliverLogsStatus(value); return *this;}
274 
279  inline FlowLog& WithDeliverLogsStatus(const char* value) { SetDeliverLogsStatus(value); return *this;}
280 
290  inline const Aws::String& GetDeliverLogsErrorMessage() const{ return m_deliverLogsErrorMessage; }
291 
301  inline void SetDeliverLogsErrorMessage(const Aws::String& value) { m_deliverLogsErrorMessageHasBeenSet = true; m_deliverLogsErrorMessage = value; }
302 
312  inline void SetDeliverLogsErrorMessage(Aws::String&& value) { m_deliverLogsErrorMessageHasBeenSet = true; m_deliverLogsErrorMessage = value; }
313 
323  inline void SetDeliverLogsErrorMessage(const char* value) { m_deliverLogsErrorMessageHasBeenSet = true; m_deliverLogsErrorMessage.assign(value); }
324 
334  inline FlowLog& WithDeliverLogsErrorMessage(const Aws::String& value) { SetDeliverLogsErrorMessage(value); return *this;}
335 
345  inline FlowLog& WithDeliverLogsErrorMessage(Aws::String&& value) { SetDeliverLogsErrorMessage(value); return *this;}
346 
356  inline FlowLog& WithDeliverLogsErrorMessage(const char* value) { SetDeliverLogsErrorMessage(value); return *this;}
357 
361  inline const Aws::String& GetDeliverLogsPermissionArn() const{ return m_deliverLogsPermissionArn; }
362 
366  inline void SetDeliverLogsPermissionArn(const Aws::String& value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn = value; }
367 
371  inline void SetDeliverLogsPermissionArn(Aws::String&& value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn = value; }
372 
376  inline void SetDeliverLogsPermissionArn(const char* value) { m_deliverLogsPermissionArnHasBeenSet = true; m_deliverLogsPermissionArn.assign(value); }
377 
381  inline FlowLog& WithDeliverLogsPermissionArn(const Aws::String& value) { SetDeliverLogsPermissionArn(value); return *this;}
382 
386  inline FlowLog& WithDeliverLogsPermissionArn(Aws::String&& value) { SetDeliverLogsPermissionArn(value); return *this;}
387 
391  inline FlowLog& WithDeliverLogsPermissionArn(const char* value) { SetDeliverLogsPermissionArn(value); return *this;}
392 
393  private:
394  Aws::Utils::DateTime m_creationTime;
395  bool m_creationTimeHasBeenSet;
396  Aws::String m_flowLogId;
397  bool m_flowLogIdHasBeenSet;
398  Aws::String m_flowLogStatus;
399  bool m_flowLogStatusHasBeenSet;
400  Aws::String m_resourceId;
401  bool m_resourceIdHasBeenSet;
402  TrafficType m_trafficType;
403  bool m_trafficTypeHasBeenSet;
404  Aws::String m_logGroupName;
405  bool m_logGroupNameHasBeenSet;
406  Aws::String m_deliverLogsStatus;
407  bool m_deliverLogsStatusHasBeenSet;
408  Aws::String m_deliverLogsErrorMessage;
409  bool m_deliverLogsErrorMessageHasBeenSet;
410  Aws::String m_deliverLogsPermissionArn;
411  bool m_deliverLogsPermissionArnHasBeenSet;
412  };
413 
414 } // namespace Model
415 } // namespace EC2
416 } // namespace Aws
void SetTrafficType(TrafficType &&value)
Definition: FlowLog.h:192
void SetDeliverLogsErrorMessage(Aws::String &&value)
Definition: FlowLog.h:312
void SetFlowLogId(Aws::String &&value)
Definition: FlowLog.h:87
const Aws::Utils::DateTime & GetCreationTime() const
Definition: FlowLog.h:52
FlowLog & WithLogGroupName(const Aws::String &value)
Definition: FlowLog.h:227
FlowLog & WithDeliverLogsErrorMessage(const Aws::String &value)
Definition: FlowLog.h:334
FlowLog & WithDeliverLogsStatus(Aws::String &&value)
Definition: FlowLog.h:273
void SetFlowLogStatus(Aws::String &&value)
Definition: FlowLog.h:122
void SetFlowLogStatus(const char *value)
Definition: FlowLog.h:127
FlowLog & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: FlowLog.h:72
FlowLog & WithDeliverLogsStatus(const char *value)
Definition: FlowLog.h:279
const Aws::String & GetResourceId() const
Definition: FlowLog.h:147
FlowLog & WithFlowLogStatus(const char *value)
Definition: FlowLog.h:142
void SetLogGroupName(Aws::String &&value)
Definition: FlowLog.h:217
FlowLog & WithFlowLogStatus(Aws::String &&value)
Definition: FlowLog.h:137
FlowLog & WithResourceId(const Aws::String &value)
Definition: FlowLog.h:167
FlowLog & WithDeliverLogsPermissionArn(const char *value)
Definition: FlowLog.h:391
void SetLogGroupName(const Aws::String &value)
Definition: FlowLog.h:212
void SetDeliverLogsPermissionArn(Aws::String &&value)
Definition: FlowLog.h:371
void SetResourceId(const Aws::String &value)
Definition: FlowLog.h:152
FlowLog & WithDeliverLogsErrorMessage(const char *value)
Definition: FlowLog.h:356
void SetResourceId(const char *value)
Definition: FlowLog.h:162
FlowLog & WithFlowLogStatus(const Aws::String &value)
Definition: FlowLog.h:132
void SetTrafficType(const TrafficType &value)
Definition: FlowLog.h:187
FlowLog & WithFlowLogId(const char *value)
Definition: FlowLog.h:107
FlowLog & WithTrafficType(TrafficType &&value)
Definition: FlowLog.h:202
FlowLog & WithLogGroupName(Aws::String &&value)
Definition: FlowLog.h:232
FlowLog & WithFlowLogId(Aws::String &&value)
Definition: FlowLog.h:102
FlowLog & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: FlowLog.h:67
FlowLog & WithFlowLogId(const Aws::String &value)
Definition: FlowLog.h:97
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: FlowLog.h:62
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const TrafficType & GetTrafficType() const
Definition: FlowLog.h:182
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: FlowLog.h:57
FlowLog & WithResourceId(Aws::String &&value)
Definition: FlowLog.h:172
FlowLog & WithDeliverLogsPermissionArn(const Aws::String &value)
Definition: FlowLog.h:381
void SetFlowLogStatus(const Aws::String &value)
Definition: FlowLog.h:117
FlowLog & WithDeliverLogsStatus(const Aws::String &value)
Definition: FlowLog.h:267
const Aws::String & GetDeliverLogsErrorMessage() const
Definition: FlowLog.h:290
FlowLog & WithTrafficType(const TrafficType &value)
Definition: FlowLog.h:197
void SetLogGroupName(const char *value)
Definition: FlowLog.h:222
FlowLog & WithDeliverLogsPermissionArn(Aws::String &&value)
Definition: FlowLog.h:386
const Aws::String & GetDeliverLogsPermissionArn() const
Definition: FlowLog.h:361
void SetDeliverLogsStatus(const char *value)
Definition: FlowLog.h:261
void SetDeliverLogsPermissionArn(const char *value)
Definition: FlowLog.h:376
void SetResourceId(Aws::String &&value)
Definition: FlowLog.h:157
void SetDeliverLogsStatus(Aws::String &&value)
Definition: FlowLog.h:255
void SetDeliverLogsErrorMessage(const char *value)
Definition: FlowLog.h:323
FlowLog & WithLogGroupName(const char *value)
Definition: FlowLog.h:237
FlowLog & WithDeliverLogsErrorMessage(Aws::String &&value)
Definition: FlowLog.h:345
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetDeliverLogsPermissionArn(const Aws::String &value)
Definition: FlowLog.h:366
void SetFlowLogId(const Aws::String &value)
Definition: FlowLog.h:82
const Aws::String & GetDeliverLogsStatus() const
Definition: FlowLog.h:243
void SetDeliverLogsStatus(const Aws::String &value)
Definition: FlowLog.h:249
const Aws::String & GetFlowLogId() const
Definition: FlowLog.h:77
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
FlowLog & WithResourceId(const char *value)
Definition: FlowLog.h:177
const Aws::String & GetFlowLogStatus() const
Definition: FlowLog.h:112
void SetFlowLogId(const char *value)
Definition: FlowLog.h:92
const Aws::String & GetLogGroupName() const
Definition: FlowLog.h:207
JSON (JavaScript Object Notation).
void SetDeliverLogsErrorMessage(const Aws::String &value)
Definition: FlowLog.h:301