1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/waf-regional/WAFRegional_EXPORTS.h> 8 #include <aws/waf-regional/WAFRegionalRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace WAFRegional 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_WAFREGIONAL_API GetRateBasedRuleRequest : public WAFRegionalRequest 22 { 23 public: 24 GetRateBasedRuleRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "GetRateBasedRule"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 39 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 40 * <a>ListRateBasedRules</a>.</p> 41 */ GetRuleId()42 inline const Aws::String& GetRuleId() const{ return m_ruleId; } 43 44 /** 45 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 46 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 47 * <a>ListRateBasedRules</a>.</p> 48 */ RuleIdHasBeenSet()49 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; } 50 51 /** 52 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 53 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 54 * <a>ListRateBasedRules</a>.</p> 55 */ SetRuleId(const Aws::String & value)56 inline void SetRuleId(const Aws::String& value) { m_ruleIdHasBeenSet = true; m_ruleId = value; } 57 58 /** 59 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 60 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 61 * <a>ListRateBasedRules</a>.</p> 62 */ SetRuleId(Aws::String && value)63 inline void SetRuleId(Aws::String&& value) { m_ruleIdHasBeenSet = true; m_ruleId = std::move(value); } 64 65 /** 66 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 67 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 68 * <a>ListRateBasedRules</a>.</p> 69 */ SetRuleId(const char * value)70 inline void SetRuleId(const char* value) { m_ruleIdHasBeenSet = true; m_ruleId.assign(value); } 71 72 /** 73 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 74 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 75 * <a>ListRateBasedRules</a>.</p> 76 */ WithRuleId(const Aws::String & value)77 inline GetRateBasedRuleRequest& WithRuleId(const Aws::String& value) { SetRuleId(value); return *this;} 78 79 /** 80 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 81 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 82 * <a>ListRateBasedRules</a>.</p> 83 */ WithRuleId(Aws::String && value)84 inline GetRateBasedRuleRequest& WithRuleId(Aws::String&& value) { SetRuleId(std::move(value)); return *this;} 85 86 /** 87 * <p>The <code>RuleId</code> of the <a>RateBasedRule</a> that you want to get. 88 * <code>RuleId</code> is returned by <a>CreateRateBasedRule</a> and by 89 * <a>ListRateBasedRules</a>.</p> 90 */ WithRuleId(const char * value)91 inline GetRateBasedRuleRequest& WithRuleId(const char* value) { SetRuleId(value); return *this;} 92 93 private: 94 95 Aws::String m_ruleId; 96 bool m_ruleIdHasBeenSet; 97 }; 98 99 } // namespace Model 100 } // namespace WAFRegional 101 } // namespace Aws 102