AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
NetworkAnomaly.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API NetworkAnomaly() = default;
31 AWS_GUARDDUTY_API NetworkAnomaly(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBaselineBytes() const { return m_baselineBytes; }
40 inline bool BaselineBytesHasBeenSet() const { return m_baselineBytesHasBeenSet; }
41 template <typename BaselineBytesT = Aws::String>
42 void SetBaselineBytes(BaselineBytesT&& value) {
43 m_baselineBytesHasBeenSet = true;
44 m_baselineBytes = std::forward<BaselineBytesT>(value);
45 }
46 template <typename BaselineBytesT = Aws::String>
47 NetworkAnomaly& WithBaselineBytes(BaselineBytesT&& value) {
48 SetBaselineBytes(std::forward<BaselineBytesT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDeviation() const { return m_deviation; }
58 inline bool DeviationHasBeenSet() const { return m_deviationHasBeenSet; }
59 template <typename DeviationT = Aws::String>
60 void SetDeviation(DeviationT&& value) {
61 m_deviationHasBeenSet = true;
62 m_deviation = std::forward<DeviationT>(value);
63 }
64 template <typename DeviationT = Aws::String>
65 NetworkAnomaly& WithDeviation(DeviationT&& value) {
66 SetDeviation(std::forward<DeviationT>(value));
67 return *this;
68 }
70
72
75 inline int GetProfileAgeDays() const { return m_profileAgeDays; }
76 inline bool ProfileAgeDaysHasBeenSet() const { return m_profileAgeDaysHasBeenSet; }
77 inline void SetProfileAgeDays(int value) {
78 m_profileAgeDaysHasBeenSet = true;
79 m_profileAgeDays = value;
80 }
82 SetProfileAgeDays(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetRemoteService() const { return m_remoteService; }
92 inline bool RemoteServiceHasBeenSet() const { return m_remoteServiceHasBeenSet; }
93 template <typename RemoteServiceT = Aws::String>
94 void SetRemoteService(RemoteServiceT&& value) {
95 m_remoteServiceHasBeenSet = true;
96 m_remoteService = std::forward<RemoteServiceT>(value);
97 }
98 template <typename RemoteServiceT = Aws::String>
99 NetworkAnomaly& WithRemoteService(RemoteServiceT&& value) {
100 SetRemoteService(std::forward<RemoteServiceT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetRemoteRegion() const { return m_remoteRegion; }
110 inline bool RemoteRegionHasBeenSet() const { return m_remoteRegionHasBeenSet; }
111 template <typename RemoteRegionT = Aws::String>
112 void SetRemoteRegion(RemoteRegionT&& value) {
113 m_remoteRegionHasBeenSet = true;
114 m_remoteRegion = std::forward<RemoteRegionT>(value);
115 }
116 template <typename RemoteRegionT = Aws::String>
117 NetworkAnomaly& WithRemoteRegion(RemoteRegionT&& value) {
118 SetRemoteRegion(std::forward<RemoteRegionT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDuration() const { return m_duration; }
128 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
129 template <typename DurationT = Aws::String>
130 void SetDuration(DurationT&& value) {
131 m_durationHasBeenSet = true;
132 m_duration = std::forward<DurationT>(value);
133 }
134 template <typename DurationT = Aws::String>
135 NetworkAnomaly& WithDuration(DurationT&& value) {
136 SetDuration(std::forward<DurationT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetResetRatio() const { return m_resetRatio; }
146 inline bool ResetRatioHasBeenSet() const { return m_resetRatioHasBeenSet; }
147 template <typename ResetRatioT = Aws::String>
148 void SetResetRatio(ResetRatioT&& value) {
149 m_resetRatioHasBeenSet = true;
150 m_resetRatio = std::forward<ResetRatioT>(value);
151 }
152 template <typename ResetRatioT = Aws::String>
153 NetworkAnomaly& WithResetRatio(ResetRatioT&& value) {
154 SetResetRatio(std::forward<ResetRatioT>(value));
155 return *this;
156 }
158
160
163 inline long long GetTargetHostCount() const { return m_targetHostCount; }
164 inline bool TargetHostCountHasBeenSet() const { return m_targetHostCountHasBeenSet; }
165 inline void SetTargetHostCount(long long value) {
166 m_targetHostCountHasBeenSet = true;
167 m_targetHostCount = value;
168 }
169 inline NetworkAnomaly& WithTargetHostCount(long long value) {
170 SetTargetHostCount(value);
171 return *this;
172 }
174 private:
175 Aws::String m_baselineBytes;
176
177 Aws::String m_deviation;
178
179 int m_profileAgeDays{0};
180
181 Aws::String m_remoteService;
182
183 Aws::String m_remoteRegion;
184
185 Aws::String m_duration;
186
187 Aws::String m_resetRatio;
188
189 long long m_targetHostCount{0};
190 bool m_baselineBytesHasBeenSet = false;
191 bool m_deviationHasBeenSet = false;
192 bool m_profileAgeDaysHasBeenSet = false;
193 bool m_remoteServiceHasBeenSet = false;
194 bool m_remoteRegionHasBeenSet = false;
195 bool m_durationHasBeenSet = false;
196 bool m_resetRatioHasBeenSet = false;
197 bool m_targetHostCountHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace GuardDuty
202} // namespace Aws
AWS_GUARDDUTY_API NetworkAnomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRemoteService() const
void SetRemoteRegion(RemoteRegionT &&value)
NetworkAnomaly & WithTargetHostCount(long long value)
const Aws::String & GetDuration() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API NetworkAnomaly(Aws::Utils::Json::JsonView jsonValue)
void SetRemoteService(RemoteServiceT &&value)
void SetBaselineBytes(BaselineBytesT &&value)
NetworkAnomaly & WithRemoteRegion(RemoteRegionT &&value)
const Aws::String & GetResetRatio() const
NetworkAnomaly & WithProfileAgeDays(int value)
NetworkAnomaly & WithBaselineBytes(BaselineBytesT &&value)
const Aws::String & GetBaselineBytes() const
const Aws::String & GetRemoteRegion() const
NetworkAnomaly & WithDuration(DurationT &&value)
void SetResetRatio(ResetRatioT &&value)
NetworkAnomaly & WithResetRatio(ResetRatioT &&value)
const Aws::String & GetDeviation() const
NetworkAnomaly & WithDeviation(DeviationT &&value)
AWS_GUARDDUTY_API NetworkAnomaly()=default
void SetDeviation(DeviationT &&value)
NetworkAnomaly & WithRemoteService(RemoteServiceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue