AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SamplingStatisticsDocument.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/xray/XRay_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace XRay {
21namespace Model {
22
33 public:
34 AWS_XRAY_API SamplingStatisticsDocument() = default;
38
40
43 inline const Aws::String& GetRuleName() const { return m_ruleName; }
44 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
45 template <typename RuleNameT = Aws::String>
46 void SetRuleName(RuleNameT&& value) {
47 m_ruleNameHasBeenSet = true;
48 m_ruleName = std::forward<RuleNameT>(value);
49 }
50 template <typename RuleNameT = Aws::String>
52 SetRuleName(std::forward<RuleNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetClientID() const { return m_clientID; }
62 inline bool ClientIDHasBeenSet() const { return m_clientIDHasBeenSet; }
63 template <typename ClientIDT = Aws::String>
64 void SetClientID(ClientIDT&& value) {
65 m_clientIDHasBeenSet = true;
66 m_clientID = std::forward<ClientIDT>(value);
67 }
68 template <typename ClientIDT = Aws::String>
70 SetClientID(std::forward<ClientIDT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
80 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
81 template <typename TimestampT = Aws::Utils::DateTime>
82 void SetTimestamp(TimestampT&& value) {
83 m_timestampHasBeenSet = true;
84 m_timestamp = std::forward<TimestampT>(value);
85 }
86 template <typename TimestampT = Aws::Utils::DateTime>
88 SetTimestamp(std::forward<TimestampT>(value));
89 return *this;
90 }
92
94
97 inline int GetRequestCount() const { return m_requestCount; }
98 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
99 inline void SetRequestCount(int value) {
100 m_requestCountHasBeenSet = true;
101 m_requestCount = value;
102 }
104 SetRequestCount(value);
105 return *this;
106 }
108
110
113 inline int GetSampledCount() const { return m_sampledCount; }
114 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
115 inline void SetSampledCount(int value) {
116 m_sampledCountHasBeenSet = true;
117 m_sampledCount = value;
118 }
120 SetSampledCount(value);
121 return *this;
122 }
124
126
129 inline int GetBorrowCount() const { return m_borrowCount; }
130 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
131 inline void SetBorrowCount(int value) {
132 m_borrowCountHasBeenSet = true;
133 m_borrowCount = value;
134 }
136 SetBorrowCount(value);
137 return *this;
138 }
140 private:
141 Aws::String m_ruleName;
142
143 Aws::String m_clientID;
144
145 Aws::Utils::DateTime m_timestamp{};
146
147 int m_requestCount{0};
148
149 int m_sampledCount{0};
150
151 int m_borrowCount{0};
152 bool m_ruleNameHasBeenSet = false;
153 bool m_clientIDHasBeenSet = false;
154 bool m_timestampHasBeenSet = false;
155 bool m_requestCountHasBeenSet = false;
156 bool m_sampledCountHasBeenSet = false;
157 bool m_borrowCountHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace XRay
162} // namespace Aws
SamplingStatisticsDocument & WithClientID(ClientIDT &&value)
AWS_XRAY_API SamplingStatisticsDocument(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticsDocument & WithRuleName(RuleNameT &&value)
AWS_XRAY_API SamplingStatisticsDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticsDocument & WithBorrowCount(int value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingStatisticsDocument & WithRequestCount(int value)
SamplingStatisticsDocument & WithTimestamp(TimestampT &&value)
AWS_XRAY_API SamplingStatisticsDocument()=default
SamplingStatisticsDocument & WithSampledCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue