AWS SDK for C++

AWS SDK for C++ Version 1.11.892

Loading...
Searching...
No Matches
AssociationDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/AssociationMode.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 AssociationDetail() = default;
33 AWS_GUARDDUTY_API AssociationDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAssociationId() const { return m_associationId; }
42 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
43 template <typename AssociationIdT = Aws::String>
44 void SetAssociationId(AssociationIdT&& value) {
45 m_associationIdHasBeenSet = true;
46 m_associationId = std::forward<AssociationIdT>(value);
47 }
48 template <typename AssociationIdT = Aws::String>
49 AssociationDetail& WithAssociationId(AssociationIdT&& value) {
50 SetAssociationId(std::forward<AssociationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 AssociationDetail& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRuleId() const { return m_ruleId; }
78 inline bool RuleIdHasBeenSet() const { return m_ruleIdHasBeenSet; }
79 template <typename RuleIdT = Aws::String>
80 void SetRuleId(RuleIdT&& value) {
81 m_ruleIdHasBeenSet = true;
82 m_ruleId = std::forward<RuleIdT>(value);
83 }
84 template <typename RuleIdT = Aws::String>
85 AssociationDetail& WithRuleId(RuleIdT&& value) {
86 SetRuleId(std::forward<RuleIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAccountId() const { return m_accountId; }
96 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
97 template <typename AccountIdT = Aws::String>
98 void SetAccountId(AccountIdT&& value) {
99 m_accountIdHasBeenSet = true;
100 m_accountId = std::forward<AccountIdT>(value);
101 }
102 template <typename AccountIdT = Aws::String>
103 AssociationDetail& WithAccountId(AccountIdT&& value) {
104 SetAccountId(std::forward<AccountIdT>(value));
105 return *this;
106 }
108
110
114 inline AssociationMode GetMode() const { return m_mode; }
115 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
116 inline void SetMode(AssociationMode value) {
117 m_modeHasBeenSet = true;
118 m_mode = value;
119 }
121 SetMode(value);
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
131 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
132 template <typename CreatedAtT = Aws::Utils::DateTime>
133 void SetCreatedAt(CreatedAtT&& value) {
134 m_createdAtHasBeenSet = true;
135 m_createdAt = std::forward<CreatedAtT>(value);
136 }
137 template <typename CreatedAtT = Aws::Utils::DateTime>
138 AssociationDetail& WithCreatedAt(CreatedAtT&& value) {
139 SetCreatedAt(std::forward<CreatedAtT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
149 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
150 template <typename UpdatedAtT = Aws::Utils::DateTime>
151 void SetUpdatedAt(UpdatedAtT&& value) {
152 m_updatedAtHasBeenSet = true;
153 m_updatedAt = std::forward<UpdatedAtT>(value);
154 }
155 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 AssociationDetail& WithUpdatedAt(UpdatedAtT&& value) {
157 SetUpdatedAt(std::forward<UpdatedAtT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
167 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
168 template <typename ExpiresAtT = Aws::Utils::DateTime>
169 void SetExpiresAt(ExpiresAtT&& value) {
170 m_expiresAtHasBeenSet = true;
171 m_expiresAt = std::forward<ExpiresAtT>(value);
172 }
173 template <typename ExpiresAtT = Aws::Utils::DateTime>
174 AssociationDetail& WithExpiresAt(ExpiresAtT&& value) {
175 SetExpiresAt(std::forward<ExpiresAtT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_associationId;
181
182 Aws::String m_arn;
183
184 Aws::String m_ruleId;
185
186 Aws::String m_accountId;
187
189
190 Aws::Utils::DateTime m_createdAt{};
191
192 Aws::Utils::DateTime m_updatedAt{};
193
194 Aws::Utils::DateTime m_expiresAt{};
195 bool m_associationIdHasBeenSet = false;
196 bool m_arnHasBeenSet = false;
197 bool m_ruleIdHasBeenSet = false;
198 bool m_accountIdHasBeenSet = false;
199 bool m_modeHasBeenSet = false;
200 bool m_createdAtHasBeenSet = false;
201 bool m_updatedAtHasBeenSet = false;
202 bool m_expiresAtHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace GuardDuty
207} // namespace Aws
AssociationDetail & WithUpdatedAt(UpdatedAtT &&value)
AWS_GUARDDUTY_API AssociationDetail(Aws::Utils::Json::JsonView jsonValue)
AssociationDetail & WithAssociationId(AssociationIdT &&value)
const Aws::String & GetAccountId() const
AssociationDetail & WithRuleId(RuleIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AssociationDetail & WithMode(AssociationMode value)
AssociationDetail & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetAssociationId() const
AssociationDetail & WithExpiresAt(ExpiresAtT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
AssociationDetail & WithAccountId(AccountIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_GUARDDUTY_API AssociationDetail()=default
void SetAssociationId(AssociationIdT &&value)
AssociationDetail & WithArn(ArnT &&value)
AWS_GUARDDUTY_API AssociationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue