AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SamplingBoostStatisticsDocument.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
33 public:
34 AWS_XRAY_API SamplingBoostStatisticsDocument() = default;
38
40
43 inline const Aws::String& GetRuleName() const { return m_ruleName; }
44 inline bool RuleNameHasBeenSet() const { return m_ruleNameHasBeenSet; }
45 template <typename RuleNameT = Aws::String>
46 void SetRuleName(RuleNameT&& value) {
47 m_ruleNameHasBeenSet = true;
48 m_ruleName = std::forward<RuleNameT>(value);
49 }
50 template <typename RuleNameT = Aws::String>
52 SetRuleName(std::forward<RuleNameT>(value));
53 return *this;
54 }
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) {
66 m_serviceNameHasBeenSet = true;
67 m_serviceName = std::forward<ServiceNameT>(value);
68 }
69 template <typename ServiceNameT = Aws::String>
71 SetServiceName(std::forward<ServiceNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
81 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
82 template <typename TimestampT = Aws::Utils::DateTime>
83 void SetTimestamp(TimestampT&& value) {
84 m_timestampHasBeenSet = true;
85 m_timestamp = std::forward<TimestampT>(value);
86 }
87 template <typename TimestampT = Aws::Utils::DateTime>
89 SetTimestamp(std::forward<TimestampT>(value));
90 return *this;
91 }
93
95
98 inline int GetAnomalyCount() const { return m_anomalyCount; }
99 inline bool AnomalyCountHasBeenSet() const { return m_anomalyCountHasBeenSet; }
100 inline void SetAnomalyCount(int value) {
101 m_anomalyCountHasBeenSet = true;
102 m_anomalyCount = value;
103 }
105 SetAnomalyCount(value);
106 return *this;
107 }
109
111
114 inline int GetTotalCount() const { return m_totalCount; }
115 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
116 inline void SetTotalCount(int value) {
117 m_totalCountHasBeenSet = true;
118 m_totalCount = value;
119 }
121 SetTotalCount(value);
122 return *this;
123 }
125
127
130 inline int GetSampledAnomalyCount() const { return m_sampledAnomalyCount; }
131 inline bool SampledAnomalyCountHasBeenSet() const { return m_sampledAnomalyCountHasBeenSet; }
132 inline void SetSampledAnomalyCount(int value) {
133 m_sampledAnomalyCountHasBeenSet = true;
134 m_sampledAnomalyCount = value;
135 }
138 return *this;
139 }
141 private:
142 Aws::String m_ruleName;
143
144 Aws::String m_serviceName;
145
146 Aws::Utils::DateTime m_timestamp{};
147
148 int m_anomalyCount{0};
149
150 int m_totalCount{0};
151
152 int m_sampledAnomalyCount{0};
153 bool m_ruleNameHasBeenSet = false;
154 bool m_serviceNameHasBeenSet = false;
155 bool m_timestampHasBeenSet = false;
156 bool m_anomalyCountHasBeenSet = false;
157 bool m_totalCountHasBeenSet = false;
158 bool m_sampledAnomalyCountHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace XRay
163} // 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