/** * 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 DeleteSamplingRuleRequest : public XRayRequest { public: AWS_XRAY_API DeleteSamplingRuleRequest(); // 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 "DeleteSamplingRule"; } AWS_XRAY_API Aws::String SerializePayload() const override; /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline const Aws::String& GetRuleName() const{ return m_ruleName; } /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; } /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; } /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); } /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); } /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;} /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;} /** *

The name of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;} /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline const Aws::String& GetRuleARN() const{ return m_ruleARN; } /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; } /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; } /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); } /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); } /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;} /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;} /** *

The ARN of the sampling rule. Specify a rule by either name or ARN, but not * both.

*/ inline DeleteSamplingRuleRequest& WithRuleARN(const char* value) { SetRuleARN(value); return *this;} private: Aws::String m_ruleName; bool m_ruleNameHasBeenSet = false; Aws::String m_ruleARN; bool m_ruleARNHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws