AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
RdsLoginActivity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/ActivityWindow.h>
10#include <aws/guardduty/model/Enrichment.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API RdsLoginActivity() = default;
33 AWS_GUARDDUTY_API RdsLoginActivity(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetOutcome() const { return m_outcome; }
42 inline bool OutcomeHasBeenSet() const { return m_outcomeHasBeenSet; }
43 template <typename OutcomeT = Aws::String>
44 void SetOutcome(OutcomeT&& value) {
45 m_outcomeHasBeenSet = true;
46 m_outcome = std::forward<OutcomeT>(value);
47 }
48 template <typename OutcomeT = Aws::String>
49 RdsLoginActivity& WithOutcome(OutcomeT&& value) {
50 SetOutcome(std::forward<OutcomeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRate() const { return m_rate; }
60 inline bool RateHasBeenSet() const { return m_rateHasBeenSet; }
61 template <typename RateT = Aws::String>
62 void SetRate(RateT&& value) {
63 m_rateHasBeenSet = true;
64 m_rate = std::forward<RateT>(value);
65 }
66 template <typename RateT = Aws::String>
67 RdsLoginActivity& WithRate(RateT&& value) {
68 SetRate(std::forward<RateT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAnomalyContext() const { return m_anomalyContext; }
78 inline bool AnomalyContextHasBeenSet() const { return m_anomalyContextHasBeenSet; }
79 template <typename AnomalyContextT = Aws::String>
80 void SetAnomalyContext(AnomalyContextT&& value) {
81 m_anomalyContextHasBeenSet = true;
82 m_anomalyContext = std::forward<AnomalyContextT>(value);
83 }
84 template <typename AnomalyContextT = Aws::String>
85 RdsLoginActivity& WithAnomalyContext(AnomalyContextT&& value) {
86 SetAnomalyContext(std::forward<AnomalyContextT>(value));
87 return *this;
88 }
90
92
95 inline long long GetLoginCount() const { return m_loginCount; }
96 inline bool LoginCountHasBeenSet() const { return m_loginCountHasBeenSet; }
97 inline void SetLoginCount(long long value) {
98 m_loginCountHasBeenSet = true;
99 m_loginCount = value;
100 }
101 inline RdsLoginActivity& WithLoginCount(long long value) {
102 SetLoginCount(value);
103 return *this;
104 }
106
108
111 inline const ActivityWindow& GetActivityWindow() const { return m_activityWindow; }
112 inline bool ActivityWindowHasBeenSet() const { return m_activityWindowHasBeenSet; }
113 template <typename ActivityWindowT = ActivityWindow>
114 void SetActivityWindow(ActivityWindowT&& value) {
115 m_activityWindowHasBeenSet = true;
116 m_activityWindow = std::forward<ActivityWindowT>(value);
117 }
118 template <typename ActivityWindowT = ActivityWindow>
119 RdsLoginActivity& WithActivityWindow(ActivityWindowT&& value) {
120 SetActivityWindow(std::forward<ActivityWindowT>(value));
121 return *this;
122 }
124
126
130 inline const Enrichment& GetEnrichment() const { return m_enrichment; }
131 inline bool EnrichmentHasBeenSet() const { return m_enrichmentHasBeenSet; }
132 template <typename EnrichmentT = Enrichment>
133 void SetEnrichment(EnrichmentT&& value) {
134 m_enrichmentHasBeenSet = true;
135 m_enrichment = std::forward<EnrichmentT>(value);
136 }
137 template <typename EnrichmentT = Enrichment>
138 RdsLoginActivity& WithEnrichment(EnrichmentT&& value) {
139 SetEnrichment(std::forward<EnrichmentT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_outcome;
145
146 Aws::String m_rate;
147
148 Aws::String m_anomalyContext;
149
150 long long m_loginCount{0};
151
152 ActivityWindow m_activityWindow;
153
154 Enrichment m_enrichment;
155 bool m_outcomeHasBeenSet = false;
156 bool m_rateHasBeenSet = false;
157 bool m_anomalyContextHasBeenSet = false;
158 bool m_loginCountHasBeenSet = false;
159 bool m_activityWindowHasBeenSet = false;
160 bool m_enrichmentHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace GuardDuty
165} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAnomalyContext() const
const ActivityWindow & GetActivityWindow() const
RdsLoginActivity & WithOutcome(OutcomeT &&value)
AWS_GUARDDUTY_API RdsLoginActivity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAnomalyContext(AnomalyContextT &&value)
void SetActivityWindow(ActivityWindowT &&value)
const Enrichment & GetEnrichment() const
AWS_GUARDDUTY_API RdsLoginActivity(Aws::Utils::Json::JsonView jsonValue)
RdsLoginActivity & WithActivityWindow(ActivityWindowT &&value)
RdsLoginActivity & WithRate(RateT &&value)
RdsLoginActivity & WithAnomalyContext(AnomalyContextT &&value)
const Aws::String & GetRate() const
AWS_GUARDDUTY_API RdsLoginActivity()=default
RdsLoginActivity & WithEnrichment(EnrichmentT &&value)
RdsLoginActivity & WithLoginCount(long long value)
const Aws::String & GetOutcome() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue