/** * 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 SecurityHub { namespace Model { /** *

The LoggingConfiguration data type is used to set CloudWatch * Logs options.

See Also:

AWS * API Reference

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

An array of objects that describes where your execution history events will * be logged.

*/ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& AddDestinations(const AwsStepFunctionStateMachineLoggingConfigurationDestinationsDetails& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** *

An array of objects that describes where your execution history events will * be logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& AddDestinations(AwsStepFunctionStateMachineLoggingConfigurationDestinationsDetails&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** *

Determines whether execution data is included in your log. When set to * false, data is excluded.

*/ inline bool GetIncludeExecutionData() const{ return m_includeExecutionData; } /** *

Determines whether execution data is included in your log. When set to * false, data is excluded.

*/ inline bool IncludeExecutionDataHasBeenSet() const { return m_includeExecutionDataHasBeenSet; } /** *

Determines whether execution data is included in your log. When set to * false, data is excluded.

*/ inline void SetIncludeExecutionData(bool value) { m_includeExecutionDataHasBeenSet = true; m_includeExecutionData = value; } /** *

Determines whether execution data is included in your log. When set to * false, data is excluded.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithIncludeExecutionData(bool value) { SetIncludeExecutionData(value); return *this;} /** *

Defines which category of execution history events are logged.

*/ inline const Aws::String& GetLevel() const{ return m_level; } /** *

Defines which category of execution history events are logged.

*/ inline bool LevelHasBeenSet() const { return m_levelHasBeenSet; } /** *

Defines which category of execution history events are logged.

*/ inline void SetLevel(const Aws::String& value) { m_levelHasBeenSet = true; m_level = value; } /** *

Defines which category of execution history events are logged.

*/ inline void SetLevel(Aws::String&& value) { m_levelHasBeenSet = true; m_level = std::move(value); } /** *

Defines which category of execution history events are logged.

*/ inline void SetLevel(const char* value) { m_levelHasBeenSet = true; m_level.assign(value); } /** *

Defines which category of execution history events are logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithLevel(const Aws::String& value) { SetLevel(value); return *this;} /** *

Defines which category of execution history events are logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithLevel(Aws::String&& value) { SetLevel(std::move(value)); return *this;} /** *

Defines which category of execution history events are logged.

*/ inline AwsStepFunctionStateMachineLoggingConfigurationDetails& WithLevel(const char* value) { SetLevel(value); return *this;} private: Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; bool m_includeExecutionData; bool m_includeExecutionDataHasBeenSet = false; Aws::String m_level; bool m_levelHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws