AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VerifiedAccessLogOptions.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/VerifiedAccessLogS3DestinationOptions.h>
10#include <aws/ec2/model/VerifiedAccessLogCloudWatchLogsDestinationOptions.h>
11#include <aws/ec2/model/VerifiedAccessLogKinesisDataFirehoseDestinationOptions.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:
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 VerifiedAccessLogS3DestinationOptions& GetS3() const{ return m_s3; }
50 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
51 inline void SetS3(const VerifiedAccessLogS3DestinationOptions& value) { m_s3HasBeenSet = true; m_s3 = value; }
52 inline void SetS3(VerifiedAccessLogS3DestinationOptions&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
53 inline VerifiedAccessLogOptions& WithS3(const VerifiedAccessLogS3DestinationOptions& value) { SetS3(value); return *this;}
54 inline VerifiedAccessLogOptions& WithS3(VerifiedAccessLogS3DestinationOptions&& value) { SetS3(std::move(value)); return *this;}
56
58
61 inline const VerifiedAccessLogCloudWatchLogsDestinationOptions& GetCloudWatchLogs() const{ return m_cloudWatchLogs; }
62 inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; }
63 inline void SetCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestinationOptions& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; }
64 inline void SetCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestinationOptions&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); }
68
70
73 inline const VerifiedAccessLogKinesisDataFirehoseDestinationOptions& GetKinesisDataFirehose() const{ return m_kinesisDataFirehose; }
74 inline bool KinesisDataFirehoseHasBeenSet() const { return m_kinesisDataFirehoseHasBeenSet; }
75 inline void SetKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestinationOptions& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = value; }
76 inline void SetKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestinationOptions&& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = std::move(value); }
80
82
86 inline const Aws::String& GetLogVersion() const{ return m_logVersion; }
87 inline bool LogVersionHasBeenSet() const { return m_logVersionHasBeenSet; }
88 inline void SetLogVersion(const Aws::String& value) { m_logVersionHasBeenSet = true; m_logVersion = value; }
89 inline void SetLogVersion(Aws::String&& value) { m_logVersionHasBeenSet = true; m_logVersion = std::move(value); }
90 inline void SetLogVersion(const char* value) { m_logVersionHasBeenSet = true; m_logVersion.assign(value); }
91 inline VerifiedAccessLogOptions& WithLogVersion(const Aws::String& value) { SetLogVersion(value); return *this;}
92 inline VerifiedAccessLogOptions& WithLogVersion(Aws::String&& value) { SetLogVersion(std::move(value)); return *this;}
93 inline VerifiedAccessLogOptions& WithLogVersion(const char* value) { SetLogVersion(value); return *this;}
95
97
101 inline bool GetIncludeTrustContext() const{ return m_includeTrustContext; }
102 inline bool IncludeTrustContextHasBeenSet() const { return m_includeTrustContextHasBeenSet; }
103 inline void SetIncludeTrustContext(bool value) { m_includeTrustContextHasBeenSet = true; m_includeTrustContext = value; }
106 private:
107
109 bool m_s3HasBeenSet = false;
110
112 bool m_cloudWatchLogsHasBeenSet = false;
113
115 bool m_kinesisDataFirehoseHasBeenSet = false;
116
117 Aws::String m_logVersion;
118 bool m_logVersionHasBeenSet = false;
119
120 bool m_includeTrustContext;
121 bool m_includeTrustContextHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace EC2
126} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestinationOptions &&value)
AWS_EC2_API VerifiedAccessLogOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestinationOptions &value)
VerifiedAccessLogOptions & WithLogVersion(const Aws::String &value)
void SetS3(const VerifiedAccessLogS3DestinationOptions &value)
VerifiedAccessLogOptions & WithCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestinationOptions &value)
AWS_EC2_API VerifiedAccessLogOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetS3(VerifiedAccessLogS3DestinationOptions &&value)
const VerifiedAccessLogS3DestinationOptions & GetS3() const
VerifiedAccessLogOptions & WithLogVersion(const char *value)
const VerifiedAccessLogKinesisDataFirehoseDestinationOptions & GetKinesisDataFirehose() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
VerifiedAccessLogOptions & WithKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestinationOptions &&value)
VerifiedAccessLogOptions & WithCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestinationOptions &&value)
void SetCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestinationOptions &value)
void SetCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestinationOptions &&value)
const VerifiedAccessLogCloudWatchLogsDestinationOptions & GetCloudWatchLogs() const
VerifiedAccessLogOptions & WithS3(VerifiedAccessLogS3DestinationOptions &&value)
VerifiedAccessLogOptions & WithKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestinationOptions &value)
VerifiedAccessLogOptions & WithIncludeTrustContext(bool value)
VerifiedAccessLogOptions & WithS3(const VerifiedAccessLogS3DestinationOptions &value)
VerifiedAccessLogOptions & WithLogVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream