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

The Amazon S3 configuration for monitoring log publishing. You can configure * your jobs to send log information to Amazon S3.

See Also:

AWS * API Reference

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

The Amazon S3 destination URI for log publishing.

*/ inline const Aws::String& GetLogUri() const{ return m_logUri; } /** *

The Amazon S3 destination URI for log publishing.

*/ inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; } /** *

The Amazon S3 destination URI for log publishing.

*/ inline void SetLogUri(const Aws::String& value) { m_logUriHasBeenSet = true; m_logUri = value; } /** *

The Amazon S3 destination URI for log publishing.

*/ inline void SetLogUri(Aws::String&& value) { m_logUriHasBeenSet = true; m_logUri = std::move(value); } /** *

The Amazon S3 destination URI for log publishing.

*/ inline void SetLogUri(const char* value) { m_logUriHasBeenSet = true; m_logUri.assign(value); } /** *

The Amazon S3 destination URI for log publishing.

*/ inline S3MonitoringConfiguration& WithLogUri(const Aws::String& value) { SetLogUri(value); return *this;} /** *

The Amazon S3 destination URI for log publishing.

*/ inline S3MonitoringConfiguration& WithLogUri(Aws::String&& value) { SetLogUri(std::move(value)); return *this;} /** *

The Amazon S3 destination URI for log publishing.

*/ inline S3MonitoringConfiguration& WithLogUri(const char* value) { SetLogUri(value); return *this;} /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; } /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; } /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; } /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); } /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); } /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline S3MonitoringConfiguration& WithEncryptionKeyArn(const Aws::String& value) { SetEncryptionKeyArn(value); return *this;} /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline S3MonitoringConfiguration& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;} /** *

The KMS key ARN to encrypt the logs published to the given Amazon S3 * destination.

*/ inline S3MonitoringConfiguration& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;} private: Aws::String m_logUri; bool m_logUriHasBeenSet = false; Aws::String m_encryptionKeyArn; bool m_encryptionKeyArnHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws