AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SamplingStatisticsDocument.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/DateTime.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
37 {
38 public:
39 AWS_XRAY_API SamplingStatisticsDocument() = default;
43
44
46
49 inline const Aws::String& GetRuleName() const { return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
51 template<typename RuleNameT = Aws::String>
52 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
53 template<typename RuleNameT = Aws::String>
54 SamplingStatisticsDocument& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
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) { m_clientIDHasBeenSet = true; m_clientID = std::forward<ClientIDT>(value); }
65 template<typename ClientIDT = Aws::String>
66 SamplingStatisticsDocument& WithClientID(ClientIDT&& value) { SetClientID(std::forward<ClientIDT>(value)); return *this;}
68
70
73 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
74 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
75 template<typename TimestampT = Aws::Utils::DateTime>
76 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
77 template<typename TimestampT = Aws::Utils::DateTime>
78 SamplingStatisticsDocument& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
80
82
85 inline int GetRequestCount() const { return m_requestCount; }
86 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
87 inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
88 inline SamplingStatisticsDocument& WithRequestCount(int value) { SetRequestCount(value); return *this;}
90
92
95 inline int GetSampledCount() const { return m_sampledCount; }
96 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
97 inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
98 inline SamplingStatisticsDocument& WithSampledCount(int value) { SetSampledCount(value); return *this;}
100
102
105 inline int GetBorrowCount() const { return m_borrowCount; }
106 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
107 inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
108 inline SamplingStatisticsDocument& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
110 private:
111
112 Aws::String m_ruleName;
113 bool m_ruleNameHasBeenSet = false;
114
115 Aws::String m_clientID;
116 bool m_clientIDHasBeenSet = false;
117
118 Aws::Utils::DateTime m_timestamp{};
119 bool m_timestampHasBeenSet = false;
120
121 int m_requestCount{0};
122 bool m_requestCountHasBeenSet = false;
123
124 int m_sampledCount{0};
125 bool m_sampledCountHasBeenSet = false;
126
127 int m_borrowCount{0};
128 bool m_borrowCountHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace XRay
133} // 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