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/xray/XRay_EXPORTS.h>
8 #include <aws/xray/XRayRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace XRay
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_XRAY_API DeleteSamplingRuleRequest : public XRayRequest
22   {
23   public:
24     DeleteSamplingRuleRequest();
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 "DeleteSamplingRule"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
37      * both.</p>
38      */
GetRuleName()39     inline const Aws::String& GetRuleName() const{ return m_ruleName; }
40 
41     /**
42      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
43      * both.</p>
44      */
RuleNameHasBeenSet()45     inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
46 
47     /**
48      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
49      * both.</p>
50      */
SetRuleName(const Aws::String & value)51     inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 
53     /**
54      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
55      * both.</p>
56      */
SetRuleName(Aws::String && value)57     inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
58 
59     /**
60      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
61      * both.</p>
62      */
SetRuleName(const char * value)63     inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
64 
65     /**
66      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
67      * both.</p>
68      */
WithRuleName(const Aws::String & value)69     inline DeleteSamplingRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
70 
71     /**
72      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
73      * both.</p>
74      */
WithRuleName(Aws::String && value)75     inline DeleteSamplingRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
76 
77     /**
78      * <p>The name of the sampling rule. Specify a rule by either name or ARN, but not
79      * both.</p>
80      */
WithRuleName(const char * value)81     inline DeleteSamplingRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
82 
83 
84     /**
85      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
86      * both.</p>
87      */
GetRuleARN()88     inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
89 
90     /**
91      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
92      * both.</p>
93      */
RuleARNHasBeenSet()94     inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
95 
96     /**
97      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
98      * both.</p>
99      */
SetRuleARN(const Aws::String & value)100     inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
101 
102     /**
103      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
104      * both.</p>
105      */
SetRuleARN(Aws::String && value)106     inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
107 
108     /**
109      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
110      * both.</p>
111      */
SetRuleARN(const char * value)112     inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
113 
114     /**
115      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
116      * both.</p>
117      */
WithRuleARN(const Aws::String & value)118     inline DeleteSamplingRuleRequest& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
119 
120     /**
121      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
122      * both.</p>
123      */
WithRuleARN(Aws::String && value)124     inline DeleteSamplingRuleRequest& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
125 
126     /**
127      * <p>The ARN of the sampling rule. Specify a rule by either name or ARN, but not
128      * both.</p>
129      */
WithRuleARN(const char * value)130     inline DeleteSamplingRuleRequest& WithRuleARN(const char* value) { SetRuleARN(value); return *this;}
131 
132   private:
133 
134     Aws::String m_ruleName;
135     bool m_ruleNameHasBeenSet;
136 
137     Aws::String m_ruleARN;
138     bool m_ruleARNHasBeenSet;
139   };
140 
141 } // namespace Model
142 } // namespace XRay
143 } // namespace Aws
144