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

Details for a cluster logging configuration.

See Also:

AWS * API Reference

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

Whether the logging types that are listed in Types are * enabled.

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

Whether the logging types that are listed in Types are * enabled.

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

Whether the logging types that are listed in Types are * enabled.

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

Whether the logging types that are listed in Types are * enabled.

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

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline const Aws::Vector& GetTypes() const{ return m_types; } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline void SetTypes(const Aws::Vector& value) { m_typesHasBeenSet = true; m_types = value; } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline void SetTypes(Aws::Vector&& value) { m_typesHasBeenSet = true; m_types = std::move(value); } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline AwsEksClusterLoggingClusterLoggingDetails& WithTypes(const Aws::Vector& value) { SetTypes(value); return *this;} /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline AwsEksClusterLoggingClusterLoggingDetails& WithTypes(Aws::Vector&& value) { SetTypes(std::move(value)); return *this;} /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline AwsEksClusterLoggingClusterLoggingDetails& AddTypes(const Aws::String& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline AwsEksClusterLoggingClusterLoggingDetails& AddTypes(Aws::String&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; } /** *

A list of logging types. Valid values are as follows:

  • * api

  • audit

  • * authenticator

  • controllerManager *

  • scheduler

*/ inline AwsEksClusterLoggingClusterLoggingDetails& AddTypes(const char* value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::Vector m_types; bool m_typesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws