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

The function's X-Ray * tracing configuration. To sample and record incoming requests, set * Mode to Active.

See Also:

AWS * API Reference

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

The tracing mode.

*/ inline const TracingMode& GetMode() const{ return m_mode; } /** *

The tracing mode.

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

The tracing mode.

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

The tracing mode.

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

The tracing mode.

*/ inline TracingConfig& WithMode(const TracingMode& value) { SetMode(value); return *this;} /** *

The tracing mode.

*/ inline TracingConfig& WithMode(TracingMode&& value) { SetMode(std::move(value)); return *this;} private: TracingMode m_mode; bool m_modeHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws