AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
40
41
43
46 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
47 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
48 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
49 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
50 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
51 inline SamplingStatisticSummary& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
52 inline SamplingStatisticSummary& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
53 inline SamplingStatisticSummary& WithRuleName(const char* value) { SetRuleName(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
61 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
62 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
63 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
64 inline SamplingStatisticSummary& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
65 inline SamplingStatisticSummary& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
67
69
72 inline int GetRequestCount() const{ return m_requestCount; }
73 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
74 inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
75 inline SamplingStatisticSummary& WithRequestCount(int value) { SetRequestCount(value); return *this;}
77
79
82 inline int GetBorrowCount() const{ return m_borrowCount; }
83 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
84 inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
85 inline SamplingStatisticSummary& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
87
89
92 inline int GetSampledCount() const{ return m_sampledCount; }
93 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
94 inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
95 inline SamplingStatisticSummary& WithSampledCount(int value) { SetSampledCount(value); return *this;}
97 private:
98
99 Aws::String m_ruleName;
100 bool m_ruleNameHasBeenSet = false;
101
102 Aws::Utils::DateTime m_timestamp;
103 bool m_timestampHasBeenSet = false;
104
105 int m_requestCount;
106 bool m_requestCountHasBeenSet = false;
107
108 int m_borrowCount;
109 bool m_borrowCountHasBeenSet = false;
110
111 int m_sampledCount;
112 bool m_sampledCountHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace XRay
117} // namespace Aws
SamplingStatisticSummary & WithTimestamp(const Aws::Utils::DateTime &value)
AWS_XRAY_API SamplingStatisticSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(const Aws::Utils::DateTime &value)
SamplingStatisticSummary & WithRuleName(Aws::String &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
SamplingStatisticSummary & WithRequestCount(int value)
SamplingStatisticSummary & WithSampledCount(int value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingStatisticSummary & WithRuleName(const char *value)
AWS_XRAY_API SamplingStatisticSummary(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticSummary & WithTimestamp(Aws::Utils::DateTime &&value)
SamplingStatisticSummary & WithRuleName(const Aws::String &value)
const Aws::Utils::DateTime & GetTimestamp() const
SamplingStatisticSummary & WithBorrowCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue