AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
AllowListSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/macie2/Macie2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
30 public:
31 AWS_MACIE2_API AllowListSummary() = default;
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 AllowListSummary& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
60 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
61 template <typename CreatedAtT = Aws::Utils::DateTime>
62 void SetCreatedAt(CreatedAtT&& value) {
63 m_createdAtHasBeenSet = true;
64 m_createdAt = std::forward<CreatedAtT>(value);
65 }
66 template <typename CreatedAtT = Aws::Utils::DateTime>
67 AllowListSummary& WithCreatedAt(CreatedAtT&& value) {
68 SetCreatedAt(std::forward<CreatedAtT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 AllowListSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetId() const { return m_id; }
96 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
97 template <typename IdT = Aws::String>
98 void SetId(IdT&& value) {
99 m_idHasBeenSet = true;
100 m_id = std::forward<IdT>(value);
101 }
102 template <typename IdT = Aws::String>
103 AllowListSummary& WithId(IdT&& value) {
104 SetId(std::forward<IdT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 template <typename NameT = Aws::String>
116 void SetName(NameT&& value) {
117 m_nameHasBeenSet = true;
118 m_name = std::forward<NameT>(value);
119 }
120 template <typename NameT = Aws::String>
121 AllowListSummary& WithName(NameT&& value) {
122 SetName(std::forward<NameT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) {
136 m_updatedAtHasBeenSet = true;
137 m_updatedAt = std::forward<UpdatedAtT>(value);
138 }
139 template <typename UpdatedAtT = Aws::Utils::DateTime>
140 AllowListSummary& WithUpdatedAt(UpdatedAtT&& value) {
141 SetUpdatedAt(std::forward<UpdatedAtT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_arn;
147
148 Aws::Utils::DateTime m_createdAt{};
149
150 Aws::String m_description;
151
152 Aws::String m_id;
153
154 Aws::String m_name;
155
156 Aws::Utils::DateTime m_updatedAt{};
157 bool m_arnHasBeenSet = false;
158 bool m_createdAtHasBeenSet = false;
159 bool m_descriptionHasBeenSet = false;
160 bool m_idHasBeenSet = false;
161 bool m_nameHasBeenSet = false;
162 bool m_updatedAtHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace Macie2
167} // namespace Aws
AllowListSummary & WithDescription(DescriptionT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetDescription(DescriptionT &&value)
const Aws::String & GetArn() const
const Aws::String & GetDescription() const
AWS_MACIE2_API AllowListSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MACIE2_API AllowListSummary(Aws::Utils::Json::JsonView jsonValue)
AllowListSummary & WithName(NameT &&value)
AWS_MACIE2_API AllowListSummary()=default
const Aws::String & GetName() const
const Aws::String & GetId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
AllowListSummary & WithArn(ArnT &&value)
AllowListSummary & WithCreatedAt(CreatedAtT &&value)
AllowListSummary & WithUpdatedAt(UpdatedAtT &&value)
AllowListSummary & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue