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

Contains the run command configuration for the cluster.

See * Also:

AWS * API Reference

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

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier of the KMS key that is used to encrypt the data between the * local client and the container.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline const AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails& GetLogConfiguration() const{ return m_logConfiguration; } /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline bool LogConfigurationHasBeenSet() const { return m_logConfigurationHasBeenSet; } /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline void SetLogConfiguration(const AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = value; } /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline void SetLogConfiguration(AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails&& value) { m_logConfigurationHasBeenSet = true; m_logConfiguration = std::move(value); } /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithLogConfiguration(const AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails& value) { SetLogConfiguration(value); return *this;} /** *

The log configuration for the results of the run command actions. Required if * Logging is NONE.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithLogConfiguration(AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails&& value) { SetLogConfiguration(std::move(value)); return *this;} /** *

The log setting to use for redirecting logs for run command results.

*/ inline const Aws::String& GetLogging() const{ return m_logging; } /** *

The log setting to use for redirecting logs for run command results.

*/ inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; } /** *

The log setting to use for redirecting logs for run command results.

*/ inline void SetLogging(const Aws::String& value) { m_loggingHasBeenSet = true; m_logging = value; } /** *

The log setting to use for redirecting logs for run command results.

*/ inline void SetLogging(Aws::String&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); } /** *

The log setting to use for redirecting logs for run command results.

*/ inline void SetLogging(const char* value) { m_loggingHasBeenSet = true; m_logging.assign(value); } /** *

The log setting to use for redirecting logs for run command results.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithLogging(const Aws::String& value) { SetLogging(value); return *this;} /** *

The log setting to use for redirecting logs for run command results.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithLogging(Aws::String&& value) { SetLogging(std::move(value)); return *this;} /** *

The log setting to use for redirecting logs for run command results.

*/ inline AwsEcsClusterConfigurationExecuteCommandConfigurationDetails& WithLogging(const char* value) { SetLogging(value); return *this;} private: Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; AwsEcsClusterConfigurationExecuteCommandConfigurationLogConfigurationDetails m_logConfiguration; bool m_logConfigurationHasBeenSet = false; Aws::String m_logging; bool m_loggingHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws