AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
43
44
46
49 inline const Aws::String& GetRuleName() const{ return m_ruleName; }
50 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
51 inline void SetRuleName(const Aws::String& value) { m_ruleNameHasBeenSet = true; m_ruleName = value; }
52 inline void SetRuleName(Aws::String&& value) { m_ruleNameHasBeenSet = true; m_ruleName = std::move(value); }
53 inline void SetRuleName(const char* value) { m_ruleNameHasBeenSet = true; m_ruleName.assign(value); }
54 inline SamplingStatisticsDocument& WithRuleName(const Aws::String& value) { SetRuleName(value); return *this;}
55 inline SamplingStatisticsDocument& WithRuleName(Aws::String&& value) { SetRuleName(std::move(value)); return *this;}
56 inline SamplingStatisticsDocument& WithRuleName(const char* value) { SetRuleName(value); return *this;}
58
60
63 inline const Aws::String& GetClientID() const{ return m_clientID; }
64 inline bool ClientIDHasBeenSet() const { return m_clientIDHasBeenSet; }
65 inline void SetClientID(const Aws::String& value) { m_clientIDHasBeenSet = true; m_clientID = value; }
66 inline void SetClientID(Aws::String&& value) { m_clientIDHasBeenSet = true; m_clientID = std::move(value); }
67 inline void SetClientID(const char* value) { m_clientIDHasBeenSet = true; m_clientID.assign(value); }
68 inline SamplingStatisticsDocument& WithClientID(const Aws::String& value) { SetClientID(value); return *this;}
69 inline SamplingStatisticsDocument& WithClientID(Aws::String&& value) { SetClientID(std::move(value)); return *this;}
70 inline SamplingStatisticsDocument& WithClientID(const char* value) { SetClientID(value); return *this;}
72
74
77 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
78 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
79 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
80 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
81 inline SamplingStatisticsDocument& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
82 inline SamplingStatisticsDocument& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
84
86
89 inline int GetRequestCount() const{ return m_requestCount; }
90 inline bool RequestCountHasBeenSet() const { return m_requestCountHasBeenSet; }
91 inline void SetRequestCount(int value) { m_requestCountHasBeenSet = true; m_requestCount = value; }
92 inline SamplingStatisticsDocument& WithRequestCount(int value) { SetRequestCount(value); return *this;}
94
96
99 inline int GetSampledCount() const{ return m_sampledCount; }
100 inline bool SampledCountHasBeenSet() const { return m_sampledCountHasBeenSet; }
101 inline void SetSampledCount(int value) { m_sampledCountHasBeenSet = true; m_sampledCount = value; }
102 inline SamplingStatisticsDocument& WithSampledCount(int value) { SetSampledCount(value); return *this;}
104
106
109 inline int GetBorrowCount() const{ return m_borrowCount; }
110 inline bool BorrowCountHasBeenSet() const { return m_borrowCountHasBeenSet; }
111 inline void SetBorrowCount(int value) { m_borrowCountHasBeenSet = true; m_borrowCount = value; }
112 inline SamplingStatisticsDocument& WithBorrowCount(int value) { SetBorrowCount(value); return *this;}
114 private:
115
116 Aws::String m_ruleName;
117 bool m_ruleNameHasBeenSet = false;
118
119 Aws::String m_clientID;
120 bool m_clientIDHasBeenSet = false;
121
122 Aws::Utils::DateTime m_timestamp;
123 bool m_timestampHasBeenSet = false;
124
125 int m_requestCount;
126 bool m_requestCountHasBeenSet = false;
127
128 int m_sampledCount;
129 bool m_sampledCountHasBeenSet = false;
130
131 int m_borrowCount;
132 bool m_borrowCountHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace XRay
137} // namespace Aws
SamplingStatisticsDocument & WithClientID(const Aws::String &value)
SamplingStatisticsDocument & WithRuleName(const Aws::String &value)
AWS_XRAY_API SamplingStatisticsDocument(Aws::Utils::Json::JsonView jsonValue)
AWS_XRAY_API SamplingStatisticsDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingStatisticsDocument & WithClientID(Aws::String &&value)
SamplingStatisticsDocument & WithTimestamp(const Aws::Utils::DateTime &value)
SamplingStatisticsDocument & WithRuleName(Aws::String &&value)
SamplingStatisticsDocument & WithBorrowCount(int value)
const Aws::Utils::DateTime & GetTimestamp() const
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingStatisticsDocument & WithTimestamp(Aws::Utils::DateTime &&value)
SamplingStatisticsDocument & WithRuleName(const char *value)
SamplingStatisticsDocument & WithRequestCount(int value)
void SetTimestamp(const Aws::Utils::DateTime &value)
SamplingStatisticsDocument & WithClientID(const char *value)
SamplingStatisticsDocument & WithSampledCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue