AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
AssociationSummary.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 AssociationSummary() = default;
33 AWS_GUARDDUTY_API AssociationSummary(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 AssociationSummary& 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 AssociationSummary& 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 AssociationSummary& WithRuleId(RuleIdT&& value) {
86 SetRuleId(std::forward<RuleIdT>(value));
87 return *this;
88 }
90
92
96 inline AssociationMode GetMode() const { return m_mode; }
97 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
98 inline void SetMode(AssociationMode value) {
99 m_modeHasBeenSet = true;
100 m_mode = value;
101 }
103 SetMode(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
113 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
114 template <typename CreatedAtT = Aws::Utils::DateTime>
115 void SetCreatedAt(CreatedAtT&& value) {
116 m_createdAtHasBeenSet = true;
117 m_createdAt = std::forward<CreatedAtT>(value);
118 }
119 template <typename CreatedAtT = Aws::Utils::DateTime>
120 AssociationSummary& WithCreatedAt(CreatedAtT&& value) {
121 SetCreatedAt(std::forward<CreatedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
131 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
132 template <typename UpdatedAtT = Aws::Utils::DateTime>
133 void SetUpdatedAt(UpdatedAtT&& value) {
134 m_updatedAtHasBeenSet = true;
135 m_updatedAt = std::forward<UpdatedAtT>(value);
136 }
137 template <typename UpdatedAtT = Aws::Utils::DateTime>
138 AssociationSummary& WithUpdatedAt(UpdatedAtT&& value) {
139 SetUpdatedAt(std::forward<UpdatedAtT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
149 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
150 template <typename ExpiresAtT = Aws::Utils::DateTime>
151 void SetExpiresAt(ExpiresAtT&& value) {
152 m_expiresAtHasBeenSet = true;
153 m_expiresAt = std::forward<ExpiresAtT>(value);
154 }
155 template <typename ExpiresAtT = Aws::Utils::DateTime>
156 AssociationSummary& WithExpiresAt(ExpiresAtT&& value) {
157 SetExpiresAt(std::forward<ExpiresAtT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_associationId;
163
164 Aws::String m_arn;
165
166 Aws::String m_ruleId;
167
169
170 Aws::Utils::DateTime m_createdAt{};
171
172 Aws::Utils::DateTime m_updatedAt{};
173
174 Aws::Utils::DateTime m_expiresAt{};
175 bool m_associationIdHasBeenSet = false;
176 bool m_arnHasBeenSet = false;
177 bool m_ruleIdHasBeenSet = false;
178 bool m_modeHasBeenSet = false;
179 bool m_createdAtHasBeenSet = false;
180 bool m_updatedAtHasBeenSet = false;
181 bool m_expiresAtHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace GuardDuty
186} // namespace Aws
AssociationSummary & WithArn(ArnT &&value)
AWS_GUARDDUTY_API AssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociationId(AssociationIdT &&value)
AssociationSummary & WithUpdatedAt(UpdatedAtT &&value)
AssociationSummary & WithExpiresAt(ExpiresAtT &&value)
AssociationSummary & WithCreatedAt(CreatedAtT &&value)
AWS_GUARDDUTY_API AssociationSummary()=default
AssociationSummary & WithAssociationId(AssociationIdT &&value)
AssociationSummary & WithRuleId(RuleIdT &&value)
const Aws::String & GetAssociationId() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_GUARDDUTY_API AssociationSummary(Aws::Utils::Json::JsonView jsonValue)
AssociationSummary & WithMode(AssociationMode value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Utils::DateTime & GetExpiresAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue