AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteSamplingRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
8 #include <aws/xray/XRayRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace XRay
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteSamplingRule"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetRuleName() const{ return m_ruleName; }
40 
45  inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
46 
51  inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 
57  inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
58 
63  inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
64 
69  inline DeleteSamplingRuleRequest& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
70 
75  inline DeleteSamplingRuleRequest& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
76 
81  inline DeleteSamplingRuleRequest& WithRuleName(const char* value) { SetRuleName(value); return *this;}
82 
83 
88  inline const Aws::String& GetRuleARN() const{ return m_ruleARN; }
89 
94  inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
95 
100  inline void SetRuleARN(const Aws::String& value) { m_ruleARNHasBeenSet = true; m_ruleARN = value; }
101 
106  inline void SetRuleARN(Aws::String&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::move(value); }
107 
112  inline void SetRuleARN(const char* value) { m_ruleARNHasBeenSet = true; m_ruleARN.assign(value); }
113 
118  inline DeleteSamplingRuleRequest& WithRuleARN(const Aws::String& value) { SetRuleARN(value); return *this;}
119 
124  inline DeleteSamplingRuleRequest& WithRuleARN(Aws::String&& value) { SetRuleARN(std::move(value)); return *this;}
125 
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
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleARN
DeleteSamplingRuleRequest & WithRuleARN(const char *value)
Definition: DeleteSamplingRuleRequest.h:130
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleName
DeleteSamplingRuleRequest & WithRuleName(Aws::String &&value)
Definition: DeleteSamplingRuleRequest.h:75
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleARN
void SetRuleARN(Aws::String &&value)
Definition: DeleteSamplingRuleRequest.h:106
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleName
void SetRuleName(Aws::String &&value)
Definition: DeleteSamplingRuleRequest.h:57
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleARN
void SetRuleARN(const Aws::String &value)
Definition: DeleteSamplingRuleRequest.h:100
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleName
DeleteSamplingRuleRequest & WithRuleName(const Aws::String &value)
Definition: DeleteSamplingRuleRequest.h:69
Aws::XRay::Model::DeleteSamplingRuleRequest
Definition: DeleteSamplingRuleRequest.h:22
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleName
void SetRuleName(const Aws::String &value)
Definition: DeleteSamplingRuleRequest.h:51
XRayRequest.h
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleARN
DeleteSamplingRuleRequest & WithRuleARN(Aws::String &&value)
Definition: DeleteSamplingRuleRequest.h:124
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleName
void SetRuleName(const char *value)
Definition: DeleteSamplingRuleRequest.h:63
Aws::XRay::XRayRequest
Definition: XRayRequest.h:17
Aws::XRay::Model::DeleteSamplingRuleRequest::GetRuleARN
const Aws::String & GetRuleARN() const
Definition: DeleteSamplingRuleRequest.h:88
Aws::XRay::Model::DeleteSamplingRuleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::XRay::Model::DeleteSamplingRuleRequest::GetRuleName
const Aws::String & GetRuleName() const
Definition: DeleteSamplingRuleRequest.h:39
AWSString.h
Aws::XRay::Model::DeleteSamplingRuleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteSamplingRuleRequest.h:30
XRay_EXPORTS.h
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleName
DeleteSamplingRuleRequest & WithRuleName(const char *value)
Definition: DeleteSamplingRuleRequest.h:81
Aws::XRay::Model::DeleteSamplingRuleRequest::WithRuleARN
DeleteSamplingRuleRequest & WithRuleARN(const Aws::String &value)
Definition: DeleteSamplingRuleRequest.h:118
Aws::XRay::Model::DeleteSamplingRuleRequest::DeleteSamplingRuleRequest
DeleteSamplingRuleRequest()
AWS_XRAY_API
#define AWS_XRAY_API
Definition: XRay_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::XRay::Model::DeleteSamplingRuleRequest::RuleARNHasBeenSet
bool RuleARNHasBeenSet() const
Definition: DeleteSamplingRuleRequest.h:94
Aws::XRay::Model::DeleteSamplingRuleRequest::RuleNameHasBeenSet
bool RuleNameHasBeenSet() const
Definition: DeleteSamplingRuleRequest.h:45
Aws::XRay::Model::DeleteSamplingRuleRequest::SetRuleARN
void SetRuleARN(const char *value)
Definition: DeleteSamplingRuleRequest.h:112