/** * 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 { /** *

Options for Verified Access logs.

See Also:

AWS * API Reference

*/ class VerifiedAccessLogOptions { public: AWS_EC2_API VerifiedAccessLogOptions(); AWS_EC2_API VerifiedAccessLogOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VerifiedAccessLogOptions& 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; /** *

Sends Verified Access logs to Amazon S3.

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

Sends Verified Access logs to Amazon S3.

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

Sends Verified Access logs to Amazon S3.

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

Sends Verified Access logs to Amazon S3.

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

Sends Verified Access logs to Amazon S3.

*/ inline VerifiedAccessLogOptions& WithS3(const VerifiedAccessLogS3DestinationOptions& value) { SetS3(value); return *this;} /** *

Sends Verified Access logs to Amazon S3.

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

Sends Verified Access logs to CloudWatch Logs.

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

Sends Verified Access logs to CloudWatch Logs.

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

Sends Verified Access logs to CloudWatch Logs.

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

Sends Verified Access logs to CloudWatch Logs.

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

Sends Verified Access logs to CloudWatch Logs.

*/ inline VerifiedAccessLogOptions& WithCloudWatchLogs(const VerifiedAccessLogCloudWatchLogsDestinationOptions& value) { SetCloudWatchLogs(value); return *this;} /** *

Sends Verified Access logs to CloudWatch Logs.

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

Sends Verified Access logs to Kinesis.

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

Sends Verified Access logs to Kinesis.

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

Sends Verified Access logs to Kinesis.

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

Sends Verified Access logs to Kinesis.

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

Sends Verified Access logs to Kinesis.

*/ inline VerifiedAccessLogOptions& WithKinesisDataFirehose(const VerifiedAccessLogKinesisDataFirehoseDestinationOptions& value) { SetKinesisDataFirehose(value); return *this;} /** *

Sends Verified Access logs to Kinesis.

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

The logging version to use.

Valid values: ocsf-0.1 | * ocsf-1.0.0-rc.2

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

Include trust data sent by trust providers into the logs.

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

Include trust data sent by trust providers into the logs.

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

Include trust data sent by trust providers into the logs.

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

Include trust data sent by trust providers into the logs.

*/ inline VerifiedAccessLogOptions& WithIncludeTrustContext(bool value) { SetIncludeTrustContext(value); return *this;} private: VerifiedAccessLogS3DestinationOptions m_s3; bool m_s3HasBeenSet = false; VerifiedAccessLogCloudWatchLogsDestinationOptions m_cloudWatchLogs; bool m_cloudWatchLogsHasBeenSet = false; VerifiedAccessLogKinesisDataFirehoseDestinationOptions 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