/** * 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 XRay { namespace Model { /** */ class UpdateSamplingRuleRequest : public XRayRequest { public: AWS_XRAY_API UpdateSamplingRuleRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateSamplingRule"; } AWS_XRAY_API Aws::String SerializePayload() const override; /** *

The rule and fields to change.

*/ inline const SamplingRuleUpdate& GetSamplingRuleUpdate() const{ return m_samplingRuleUpdate; } /** *

The rule and fields to change.

*/ inline bool SamplingRuleUpdateHasBeenSet() const { return m_samplingRuleUpdateHasBeenSet; } /** *

The rule and fields to change.

*/ inline void SetSamplingRuleUpdate(const SamplingRuleUpdate& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = value; } /** *

The rule and fields to change.

*/ inline void SetSamplingRuleUpdate(SamplingRuleUpdate&& value) { m_samplingRuleUpdateHasBeenSet = true; m_samplingRuleUpdate = std::move(value); } /** *

The rule and fields to change.

*/ inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(const SamplingRuleUpdate& value) { SetSamplingRuleUpdate(value); return *this;} /** *

The rule and fields to change.

*/ inline UpdateSamplingRuleRequest& WithSamplingRuleUpdate(SamplingRuleUpdate&& value) { SetSamplingRuleUpdate(std::move(value)); return *this;} private: SamplingRuleUpdate m_samplingRuleUpdate; bool m_samplingRuleUpdateHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws