AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VerifiedAccessLogs.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/VerifiedAccessLogS3Destination.h>
10#include <aws/ec2/model/VerifiedAccessLogCloudWatchLogsDestination.h>
11#include <aws/ec2/model/VerifiedAccessLogKinesisDataFirehoseDestination.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_EC2_API VerifiedAccessLogs();
38 AWS_EC2_API VerifiedAccessLogs(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const VerifiedAccessLogS3Destination& GetS3() const{ return m_s3; }
50 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
51 inline void SetS3(const VerifiedAccessLogS3Destination& value) { m_s3HasBeenSet = true; m_s3 = value; }
52 inline void SetS3(VerifiedAccessLogS3Destination&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
53 inline VerifiedAccessLogs& WithS3(const VerifiedAccessLogS3Destination& value) { SetS3(value); return *this;}
54 inline VerifiedAccessLogs& WithS3(VerifiedAccessLogS3Destination&& value) { SetS3(std::move(value)); return *this;}
56
58
61 inline const VerifiedAccessLogCloudWatchLogsDestination& GetCloudWatchLogs() const{ return m_cloudWatchLogs; }
62 inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
63 inline void SetCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestination& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; }
64 inline void SetCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestination&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); }
68
70
73 inline const VerifiedAccessLogKinesisDataFirehoseDestination& GetKinesisDataFirehose() const{ return m_kinesisDataFirehose; }
74 inline bool KinesisDataFirehoseHasBeenSet() const { return m_kinesisDataFirehoseHasBeenSet; }
75 inline void SetKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestination& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = value; }
76 inline void SetKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestination&& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = std::move(value); }
80
82
85 inline const Aws::String& GetLogVersion() const{ return m_logVersion; }
86 inline bool LogVersionHasBeenSet() const { return m_logVersionHasBeenSet; }
87 inline void SetLogVersion(const Aws::String& value) { m_logVersionHasBeenSet = true; m_logVersion = value; }
88 inline void SetLogVersion(Aws::String&& value) { m_logVersionHasBeenSet = true; m_logVersion = std::move(value); }
89 inline void SetLogVersion(const char* value) { m_logVersionHasBeenSet = true; m_logVersion.assign(value); }
90 inline VerifiedAccessLogs& WithLogVersion(const Aws::String& value) { SetLogVersion(value); return *this;}
91 inline VerifiedAccessLogs& WithLogVersion(Aws::String&& value) { SetLogVersion(std::move(value)); return *this;}
92 inline VerifiedAccessLogs& WithLogVersion(const char* value) { SetLogVersion(value); return *this;}
94
96
99 inline bool GetIncludeTrustContext() const{ return m_includeTrustContext; }
100 inline bool IncludeTrustContextHasBeenSet() const { return m_includeTrustContextHasBeenSet; }
101 inline void SetIncludeTrustContext(bool value) { m_includeTrustContextHasBeenSet = true; m_includeTrustContext = value; }
102 inline VerifiedAccessLogs& WithIncludeTrustContext(bool value) { SetIncludeTrustContext(value); return *this;}
104 private:
105
107 bool m_s3HasBeenSet = false;
108
110 bool m_cloudWatchLogsHasBeenSet = false;
111
113 bool m_kinesisDataFirehoseHasBeenSet = false;
114
115 Aws::String m_logVersion;
116 bool m_logVersionHasBeenSet = false;
117
118 bool m_includeTrustContext;
119 bool m_includeTrustContextHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
VerifiedAccessLogs & WithS3(const VerifiedAccessLogS3Destination &value)
VerifiedAccessLogs & WithKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestination &value)
void SetLogVersion(Aws::String &&value)
void SetS3(const VerifiedAccessLogS3Destination &value)
VerifiedAccessLogs & WithKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestination &&value)
const VerifiedAccessLogS3Destination & GetS3() const
void SetKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestination &&value)
void SetCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestination &&value)
VerifiedAccessLogs & WithS3(VerifiedAccessLogS3Destination &&value)
VerifiedAccessLogs & WithCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestination &&value)
const VerifiedAccessLogCloudWatchLogsDestination & GetCloudWatchLogs() const
void SetS3(VerifiedAccessLogS3Destination &&value)
void SetCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestination &value)
VerifiedAccessLogs & WithLogVersion(const char *value)
AWS_EC2_API VerifiedAccessLogs(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
VerifiedAccessLogs & WithLogVersion(const Aws::String &value)
void SetLogVersion(const Aws::String &value)
void SetKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestination &value)
VerifiedAccessLogs & WithLogVersion(Aws::String &&value)
const VerifiedAccessLogKinesisDataFirehoseDestination & GetKinesisDataFirehose() const
VerifiedAccessLogs & WithIncludeTrustContext(bool value)
const Aws::String & GetLogVersion() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API VerifiedAccessLogs & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VerifiedAccessLogs & WithCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestination &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream