AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SamplingRuleUpdate.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_XRAY_API SamplingRuleUpdate() = default;
40
41
43
47 inline const Aws::String& GetRuleName() const { return m_ruleName; }
48 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
49 template<typename RuleNameT = Aws::String>
50 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
51 template<typename RuleNameT = Aws::String>
52 SamplingRuleUpdate& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetRuleARN() const { return m_ruleARN; }
61 inline bool RuleARNHasBeenSet() const { return m_ruleARNHasBeenSet; }
62 template<typename RuleARNT = Aws::String>
63 void SetRuleARN(RuleARNT&& value) { m_ruleARNHasBeenSet = true; m_ruleARN = std::forward<RuleARNT>(value); }
64 template<typename RuleARNT = Aws::String>
65 SamplingRuleUpdate& WithRuleARN(RuleARNT&& value) { SetRuleARN(std::forward<RuleARNT>(value)); return *this;}
67
69
73 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
74 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
75 template<typename ResourceARNT = Aws::String>
76 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
77 template<typename ResourceARNT = Aws::String>
78 SamplingRuleUpdate& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
80
82
85 inline int GetPriority() const { return m_priority; }
86 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
87 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
88 inline SamplingRuleUpdate& WithPriority(int value) { SetPriority(value); return *this;}
90
92
96 inline double GetFixedRate() const { return m_fixedRate; }
97 inline bool FixedRateHasBeenSet() const { return m_fixedRateHasBeenSet; }
98 inline void SetFixedRate(double value) { m_fixedRateHasBeenSet = true; m_fixedRate = value; }
99 inline SamplingRuleUpdate& WithFixedRate(double value) { SetFixedRate(value); return *this;}
101
103
108 inline int GetReservoirSize() const { return m_reservoirSize; }
109 inline bool ReservoirSizeHasBeenSet() const { return m_reservoirSizeHasBeenSet; }
110 inline void SetReservoirSize(int value) { m_reservoirSizeHasBeenSet = true; m_reservoirSize = value; }
111 inline SamplingRuleUpdate& WithReservoirSize(int value) { SetReservoirSize(value); return *this;}
113
115
118 inline const Aws::String& GetHost() const { return m_host; }
119 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
120 template<typename HostT = Aws::String>
121 void SetHost(HostT&& value) { m_hostHasBeenSet = true; m_host = std::forward<HostT>(value); }
122 template<typename HostT = Aws::String>
123 SamplingRuleUpdate& WithHost(HostT&& value) { SetHost(std::forward<HostT>(value)); return *this;}
125
127
131 inline const Aws::String& GetServiceName() const { return m_serviceName; }
132 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
133 template<typename ServiceNameT = Aws::String>
134 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
135 template<typename ServiceNameT = Aws::String>
136 SamplingRuleUpdate& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
138
140
144 inline const Aws::String& GetServiceType() const { return m_serviceType; }
145 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
146 template<typename ServiceTypeT = Aws::String>
147 void SetServiceType(ServiceTypeT&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::forward<ServiceTypeT>(value); }
148 template<typename ServiceTypeT = Aws::String>
149 SamplingRuleUpdate& WithServiceType(ServiceTypeT&& value) { SetServiceType(std::forward<ServiceTypeT>(value)); return *this;}
151
153
156 inline const Aws::String& GetHTTPMethod() const { return m_hTTPMethod; }
157 inline bool HTTPMethodHasBeenSet() const { return m_hTTPMethodHasBeenSet; }
158 template<typename HTTPMethodT = Aws::String>
159 void SetHTTPMethod(HTTPMethodT&& value) { m_hTTPMethodHasBeenSet = true; m_hTTPMethod = std::forward<HTTPMethodT>(value); }
160 template<typename HTTPMethodT = Aws::String>
161 SamplingRuleUpdate& WithHTTPMethod(HTTPMethodT&& value) { SetHTTPMethod(std::forward<HTTPMethodT>(value)); return *this;}
163
165
168 inline const Aws::String& GetURLPath() const { return m_uRLPath; }
169 inline bool URLPathHasBeenSet() const { return m_uRLPathHasBeenSet; }
170 template<typename URLPathT = Aws::String>
171 void SetURLPath(URLPathT&& value) { m_uRLPathHasBeenSet = true; m_uRLPath = std::forward<URLPathT>(value); }
172 template<typename URLPathT = Aws::String>
173 SamplingRuleUpdate& WithURLPath(URLPathT&& value) { SetURLPath(std::forward<URLPathT>(value)); return *this;}
175
177
180 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
181 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
182 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
183 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
184 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
185 SamplingRuleUpdate& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
186 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
187 SamplingRuleUpdate& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
188 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
189 }
191 private:
192
193 Aws::String m_ruleName;
194 bool m_ruleNameHasBeenSet = false;
195
196 Aws::String m_ruleARN;
197 bool m_ruleARNHasBeenSet = false;
198
199 Aws::String m_resourceARN;
200 bool m_resourceARNHasBeenSet = false;
201
202 int m_priority{0};
203 bool m_priorityHasBeenSet = false;
204
205 double m_fixedRate{0.0};
206 bool m_fixedRateHasBeenSet = false;
207
208 int m_reservoirSize{0};
209 bool m_reservoirSizeHasBeenSet = false;
210
211 Aws::String m_host;
212 bool m_hostHasBeenSet = false;
213
214 Aws::String m_serviceName;
215 bool m_serviceNameHasBeenSet = false;
216
217 Aws::String m_serviceType;
218 bool m_serviceTypeHasBeenSet = false;
219
220 Aws::String m_hTTPMethod;
221 bool m_hTTPMethodHasBeenSet = false;
222
223 Aws::String m_uRLPath;
224 bool m_uRLPathHasBeenSet = false;
225
227 bool m_attributesHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace XRay
232} // namespace Aws
SamplingRuleUpdate & WithFixedRate(double value)
const Aws::String & GetServiceName() const
void SetServiceName(ServiceNameT &&value)
void SetAttributes(AttributesT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetHTTPMethod() const
SamplingRuleUpdate & WithHost(HostT &&value)
SamplingRuleUpdate & WithAttributes(AttributesT &&value)
const Aws::String & GetURLPath() const
void SetServiceType(ServiceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_XRAY_API SamplingRuleUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingRuleUpdate & WithPriority(int value)
SamplingRuleUpdate & WithURLPath(URLPathT &&value)
const Aws::String & GetHost() const
AWS_XRAY_API SamplingRuleUpdate(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API SamplingRuleUpdate()=default
SamplingRuleUpdate & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::String & GetResourceARN() const
SamplingRuleUpdate & WithReservoirSize(int value)
void SetHTTPMethod(HTTPMethodT &&value)
SamplingRuleUpdate & WithRuleName(RuleNameT &&value)
SamplingRuleUpdate & WithRuleARN(RuleARNT &&value)
void SetResourceARN(ResourceARNT &&value)
SamplingRuleUpdate & WithResourceARN(ResourceARNT &&value)
SamplingRuleUpdate & WithHTTPMethod(HTTPMethodT &&value)
const Aws::String & GetServiceType() const
const Aws::String & GetRuleName() const
SamplingRuleUpdate & WithServiceType(ServiceTypeT &&value)
SamplingRuleUpdate & WithServiceName(ServiceNameT &&value)
const Aws::String & GetRuleARN() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue