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

The function's X-Ray tracing configuration.

See Also:

AWS * API Reference

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

The tracing mode.

*/ inline const Aws::String& GetMode() const{ return m_mode; } /** *

The tracing mode.

*/ inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; } /** *

The tracing mode.

*/ inline void SetMode(const Aws::String& value) { m_modeHasBeenSet = true; m_mode = value; } /** *

The tracing mode.

*/ inline void SetMode(Aws::String&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); } /** *

The tracing mode.

*/ inline void SetMode(const char* value) { m_modeHasBeenSet = true; m_mode.assign(value); } /** *

The tracing mode.

*/ inline AwsLambdaFunctionTracingConfig& WithMode(const Aws::String& value) { SetMode(value); return *this;} /** *

The tracing mode.

*/ inline AwsLambdaFunctionTracingConfig& WithMode(Aws::String&& value) { SetMode(std::move(value)); return *this;} /** *

The tracing mode.

*/ inline AwsLambdaFunctionTracingConfig& WithMode(const char* value) { SetMode(value); return *this;} private: Aws::String m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws