AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SamplingStatisticSummary.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
34 {
35 public:
36 AWS_XRAY_API SamplingStatisticSummary() = default;
40
41
43
46 inline const Aws::String& GetRuleName() const { return m_ruleName; }
47 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
48 template<typename RuleNameT = Aws::String>
49 void SetRuleName(RuleNameT&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::forward<RuleNameT>(value); }
50 template<typename RuleNameT = Aws::String>
51 SamplingStatisticSummary& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
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) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
62 template<typename TimestampT = Aws::Utils::DateTime>
63 SamplingStatisticSummary& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
65
67
70 inline int GetRequestCount() const { return m_requestCount; }
71 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
72 inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
73 inline SamplingStatisticSummary& WithRequestCount(int value) { SetRequestCount(value); return *this;}
75
77
80 inline int GetBorrowCount() const { return m_borrowCount; }
81 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
82 inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
83 inline SamplingStatisticSummary& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
85
87
90 inline int GetSampledCount() const { return m_sampledCount; }
91 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
92 inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
93 inline SamplingStatisticSummary& WithSampledCount(int value) { SetSampledCount(value); return *this;}
95 private:
96
97 Aws::String m_ruleName;
98 bool m_ruleNameHasBeenSet = false;
99
100 Aws::Utils::DateTime m_timestamp{};
101 bool m_timestampHasBeenSet = false;
102
103 int m_requestCount{0};
104 bool m_requestCountHasBeenSet = false;
105
106 int m_borrowCount{0};
107 bool m_borrowCountHasBeenSet = false;
108
109 int m_sampledCount{0};
110 bool m_sampledCountHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace XRay
115} // 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