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

Settings used to configure delivery mode and destination for conversation * logs.

See Also:

AWS * API Reference

*/ class LogSettingsRequest { public: AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest(); AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline const LogType& GetLogType() const{ return m_logType; } /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; } /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline void SetLogType(const LogType& value) { m_logTypeHasBeenSet = true; m_logType = value; } /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline void SetLogType(LogType&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); } /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline LogSettingsRequest& WithLogType(const LogType& value) { SetLogType(value); return *this;} /** *

The type of logging to enable. Text logs are delivered to a CloudWatch Logs * log group. Audio logs are delivered to an S3 bucket.

*/ inline LogSettingsRequest& WithLogType(LogType&& value) { SetLogType(std::move(value)); return *this;} /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline const Destination& GetDestination() const{ return m_destination; } /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline LogSettingsRequest& WithDestination(const Destination& value) { SetDestination(value); return *this;} /** *

Where the logs will be delivered. Text logs are delivered to a CloudWatch * Logs log group. Audio logs are delivered to an S3 bucket.

*/ inline LogSettingsRequest& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline LogSettingsRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline LogSettingsRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the AWS KMS customer managed key for * encrypting audio logs delivered to an S3 bucket. The key does not apply to * CloudWatch Logs and is optional for S3 buckets.

*/ inline LogSettingsRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline LogSettingsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline LogSettingsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch Logs log group or S3 bucket * where the logs should be delivered.

*/ inline LogSettingsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} private: LogType m_logType; bool m_logTypeHasBeenSet = false; Destination m_destination; bool m_destinationHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws