/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the options for Verified Access logs.

See Also:

AWS * API Reference

*/ class VerifiedAccessLogs { public: AWS_EC2_API VerifiedAccessLogs(); AWS_EC2_API VerifiedAccessLogs(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VerifiedAccessLogs& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Amazon S3 logging options.

*/ inline const VerifiedAccessLogS3Destination& GetS3() const{ return m_s3; } /** *

Amazon S3 logging options.

*/ inline bool S3HasBeenSet() const { return m_s3HasBeenSet; } /** *

Amazon S3 logging options.

*/ inline void SetS3(const VerifiedAccessLogS3Destination& value) { m_s3HasBeenSet = true; m_s3 = value; } /** *

Amazon S3 logging options.

*/ inline void SetS3(VerifiedAccessLogS3Destination&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); } /** *

Amazon S3 logging options.

*/ inline VerifiedAccessLogs& WithS3(const VerifiedAccessLogS3Destination& value) { SetS3(value); return *this;} /** *

Amazon S3 logging options.

*/ inline VerifiedAccessLogs& WithS3(VerifiedAccessLogS3Destination&& value) { SetS3(std::move(value)); return *this;} /** *

CloudWatch Logs logging destination.

*/ inline const VerifiedAccessLogCloudWatchLogsDestination& GetCloudWatchLogs() const{ return m_cloudWatchLogs; } /** *

CloudWatch Logs logging destination.

*/ inline bool CloudWatchLogsHasBeenSet() const { return m_cloudWatchLogsHasBeenSet; } /** *

CloudWatch Logs logging destination.

*/ inline void SetCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestination& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = value; } /** *

CloudWatch Logs logging destination.

*/ inline void SetCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestination&& value) { m_cloudWatchLogsHasBeenSet = true; m_cloudWatchLogs = std::move(value); } /** *

CloudWatch Logs logging destination.

*/ inline VerifiedAccessLogs& WithCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestination& value) { SetCloudWatchLogs(value); return *this;} /** *

CloudWatch Logs logging destination.

*/ inline VerifiedAccessLogs& WithCloudWatchLogs(VerifiedAccessLogCloudWatchLogsDestination&& value) { SetCloudWatchLogs(std::move(value)); return *this;} /** *

Kinesis logging destination.

*/ inline const VerifiedAccessLogKinesisDataFirehoseDestination& GetKinesisDataFirehose() const{ return m_kinesisDataFirehose; } /** *

Kinesis logging destination.

*/ inline bool KinesisDataFirehoseHasBeenSet() const { return m_kinesisDataFirehoseHasBeenSet; } /** *

Kinesis logging destination.

*/ inline void SetKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestination& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = value; } /** *

Kinesis logging destination.

*/ inline void SetKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestination&& value) { m_kinesisDataFirehoseHasBeenSet = true; m_kinesisDataFirehose = std::move(value); } /** *

Kinesis logging destination.

*/ inline VerifiedAccessLogs& WithKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestination& value) { SetKinesisDataFirehose(value); return *this;} /** *

Kinesis logging destination.

*/ inline VerifiedAccessLogs& WithKinesisDataFirehose(VerifiedAccessLogKinesisDataFirehoseDestination&& value) { SetKinesisDataFirehose(std::move(value)); return *this;} /** *

Describes current setting for the logging version.

*/ inline const Aws::String& GetLogVersion() const{ return m_logVersion; } /** *

Describes current setting for the logging version.

*/ inline bool LogVersionHasBeenSet() const { return m_logVersionHasBeenSet; } /** *

Describes current setting for the logging version.

*/ inline void SetLogVersion(const Aws::String& value) { m_logVersionHasBeenSet = true; m_logVersion = value; } /** *

Describes current setting for the logging version.

*/ inline void SetLogVersion(Aws::String&& value) { m_logVersionHasBeenSet = true; m_logVersion = std::move(value); } /** *

Describes current setting for the logging version.

*/ inline void SetLogVersion(const char* value) { m_logVersionHasBeenSet = true; m_logVersion.assign(value); } /** *

Describes current setting for the logging version.

*/ inline VerifiedAccessLogs& WithLogVersion(const Aws::String& value) { SetLogVersion(value); return *this;} /** *

Describes current setting for the logging version.

*/ inline VerifiedAccessLogs& WithLogVersion(Aws::String&& value) { SetLogVersion(std::move(value)); return *this;} /** *

Describes current setting for the logging version.

*/ inline VerifiedAccessLogs& WithLogVersion(const char* value) { SetLogVersion(value); return *this;} /** *

Describes current setting for including trust data into the logs.

*/ inline bool GetIncludeTrustContext() const{ return m_includeTrustContext; } /** *

Describes current setting for including trust data into the logs.

*/ inline bool IncludeTrustContextHasBeenSet() const { return m_includeTrustContextHasBeenSet; } /** *

Describes current setting for including trust data into the logs.

*/ inline void SetIncludeTrustContext(bool value) { m_includeTrustContextHasBeenSet = true; m_includeTrustContext = value; } /** *

Describes current setting for including trust data into the logs.

*/ inline VerifiedAccessLogs& WithIncludeTrustContext(bool value) { SetIncludeTrustContext(value); return *this;} private: VerifiedAccessLogS3Destination m_s3; bool m_s3HasBeenSet = false; VerifiedAccessLogCloudWatchLogsDestination m_cloudWatchLogs; bool m_cloudWatchLogsHasBeenSet = false; VerifiedAccessLogKinesisDataFirehoseDestination m_kinesisDataFirehose; bool m_kinesisDataFirehoseHasBeenSet = false; Aws::String m_logVersion; bool m_logVersionHasBeenSet = false; bool m_includeTrustContext; bool m_includeTrustContextHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws