/** * 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 WAF { namespace Model { /** */ class GetRuleRequest : public WAFRequest { public: AWS_WAF_API GetRuleRequest(); // 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 "GetRule"; } AWS_WAF_API Aws::String SerializePayload() const override; AWS_WAF_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline const Aws::String& GetRuleId() const{ return m_ruleId; } /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline GetRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline GetRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} /** *

The RuleId of the Rule that you want to get. * RuleId is returned by CreateRule and by * ListRules.

*/ inline GetRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;} private: Aws::String m_ruleId; bool m_ruleIdHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws