/** * 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 managed log persistence configuration for a job run.

See * Also:

AWS * API Reference

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

Enables managed logging and defaults to true. If set to false, managed * logging will be turned off.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Enables managed logging and defaults to true. If set to false, managed * logging will be turned off.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Enables managed logging and defaults to true. If set to false, managed * logging will be turned off.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Enables managed logging and defaults to true. If set to false, managed * logging will be turned off.

*/ inline ManagedPersistenceMonitoringConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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

The KMS key ARN to encrypt the logs stored in managed log persistence.

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