AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SamplingStatisticSummary.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
30 public:
31 AWS_XRAY_API SamplingStatisticSummary() = default;
35
37
40 inline const Aws::String& GetRuleName() const { return m_ruleName; }
41 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
42 template <typename RuleNameT = Aws::String>
43 void SetRuleName(RuleNameT&& value) {
44 m_ruleNameHasBeenSet = true;
45 m_ruleName = std::forward<RuleNameT>(value);
46 }
47 template <typename RuleNameT = Aws::String>
49 SetRuleName(std::forward<RuleNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
59 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
60 template <typename TimestampT = Aws::Utils::DateTime>
61 void SetTimestamp(TimestampT&& value) {
62 m_timestampHasBeenSet = true;
63 m_timestamp = std::forward<TimestampT>(value);
64 }
65 template <typename TimestampT = Aws::Utils::DateTime>
67 SetTimestamp(std::forward<TimestampT>(value));
68 return *this;
69 }
71
73
76 inline int GetRequestCount() const { return m_requestCount; }
77 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
78 inline void SetRequestCount(int value) {
79 m_requestCountHasBeenSet = true;
80 m_requestCount = value;
81 }
83 SetRequestCount(value);
84 return *this;
85 }
87
89
92 inline int GetBorrowCount() const { return m_borrowCount; }
93 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
94 inline void SetBorrowCount(int value) {
95 m_borrowCountHasBeenSet = true;
96 m_borrowCount = value;
97 }
99 SetBorrowCount(value);
100 return *this;
101 }
103
105
108 inline int GetSampledCount() const { return m_sampledCount; }
109 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
110 inline void SetSampledCount(int value) {
111 m_sampledCountHasBeenSet = true;
112 m_sampledCount = value;
113 }
115 SetSampledCount(value);
116 return *this;
117 }
119 private:
120 Aws::String m_ruleName;
121
122 Aws::Utils::DateTime m_timestamp{};
123
124 int m_requestCount{0};
125
126 int m_borrowCount{0};
127
128 int m_sampledCount{0};
129 bool m_ruleNameHasBeenSet = false;
130 bool m_timestampHasBeenSet = false;
131 bool m_requestCountHasBeenSet = false;
132 bool m_borrowCountHasBeenSet = false;
133 bool m_sampledCountHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace XRay
138} // namespace Aws
AWS_XRAY_API SamplingStatisticSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticSummary & WithRuleName(RuleNameT &&value)
SamplingStatisticSummary & WithRequestCount(int value)
SamplingStatisticSummary & WithSampledCount(int value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_XRAY_API SamplingStatisticSummary(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticSummary & WithTimestamp(TimestampT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_XRAY_API SamplingStatisticSummary()=default
SamplingStatisticSummary & WithBorrowCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue