AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
SamplingBoostStatisticsDocument.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 SamplingBoostStatisticsDocument() = 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 SamplingBoostStatisticsDocument& WithRuleName(RuleNameT&& value) { SetRuleName(std::forward<RuleNameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetServiceName() const { return m_serviceName; }
63 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
64 template<typename ServiceNameT = Aws::String>
65 void SetServiceName(ServiceNameT&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::forward<ServiceNameT>(value); }
66 template<typename ServiceNameT = Aws::String>
67 SamplingBoostStatisticsDocument& WithServiceName(ServiceNameT&& value) { SetServiceName(std::forward<ServiceNameT>(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
75 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
76 template<typename TimestampT = Aws::Utils::DateTime>
77 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
78 template<typename TimestampT = Aws::Utils::DateTime>
79 SamplingBoostStatisticsDocument& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
81
83
86 inline int GetAnomalyCount() const { return m_anomalyCount; }
87 inline bool AnomalyCountHasBeenSet() const { return m_anomalyCountHasBeenSet; }
88 inline void SetAnomalyCount(int value) { m_anomalyCountHasBeenSet = true; m_anomalyCount = value; }
89 inline SamplingBoostStatisticsDocument& WithAnomalyCount(int value) { SetAnomalyCount(value); return *this;}
91
93
96 inline int GetTotalCount() const { return m_totalCount; }
97 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
98 inline void SetTotalCount(int value) { m_totalCountHasBeenSet = true; m_totalCount = value; }
99 inline SamplingBoostStatisticsDocument& WithTotalCount(int value) { SetTotalCount(value); return *this;}
101
103
106 inline int GetSampledAnomalyCount() const { return m_sampledAnomalyCount; }
107 inline bool SampledAnomalyCountHasBeenSet() const { return m_sampledAnomalyCountHasBeenSet; }
108 inline void SetSampledAnomalyCount(int value) { m_sampledAnomalyCountHasBeenSet = true; m_sampledAnomalyCount = value; }
111 private:
112
113 Aws::String m_ruleName;
114 bool m_ruleNameHasBeenSet = false;
115
116 Aws::String m_serviceName;
117 bool m_serviceNameHasBeenSet = false;
118
119 Aws::Utils::DateTime m_timestamp{};
120 bool m_timestampHasBeenSet = false;
121
122 int m_anomalyCount{0};
123 bool m_anomalyCountHasBeenSet = false;
124
125 int m_totalCount{0};
126 bool m_totalCountHasBeenSet = false;
127
128 int m_sampledAnomalyCount{0};
129 bool m_sampledAnomalyCountHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace XRay
134} // namespace Aws
SamplingBoostStatisticsDocument & WithTotalCount(int value)
AWS_XRAY_API SamplingBoostStatisticsDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
SamplingBoostStatisticsDocument & WithServiceName(ServiceNameT &&value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
SamplingBoostStatisticsDocument & WithSampledAnomalyCount(int value)
AWS_XRAY_API SamplingBoostStatisticsDocument(Aws::Utils::Json::JsonView jsonValue)
SamplingBoostStatisticsDocument & WithTimestamp(TimestampT &&value)
SamplingBoostStatisticsDocument & WithAnomalyCount(int value)
SamplingBoostStatisticsDocument & WithRuleName(RuleNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue