AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
TrustAnchorDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
11#include <aws/rolesanywhere/model/NotificationSettingDetail.h>
12#include <aws/rolesanywhere/model/Source.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RolesAnywhere {
24namespace Model {
25
33 public:
34 AWS_ROLESANYWHERE_API TrustAnchorDetail() = default;
35 AWS_ROLESANYWHERE_API TrustAnchorDetail(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROLESANYWHERE_API TrustAnchorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
44 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
45 template <typename TrustAnchorIdT = Aws::String>
46 void SetTrustAnchorId(TrustAnchorIdT&& value) {
47 m_trustAnchorIdHasBeenSet = true;
48 m_trustAnchorId = std::forward<TrustAnchorIdT>(value);
49 }
50 template <typename TrustAnchorIdT = Aws::String>
51 TrustAnchorDetail& WithTrustAnchorId(TrustAnchorIdT&& value) {
52 SetTrustAnchorId(std::forward<TrustAnchorIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetTrustAnchorArn() const { return m_trustAnchorArn; }
62 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
63 template <typename TrustAnchorArnT = Aws::String>
64 void SetTrustAnchorArn(TrustAnchorArnT&& value) {
65 m_trustAnchorArnHasBeenSet = true;
66 m_trustAnchorArn = std::forward<TrustAnchorArnT>(value);
67 }
68 template <typename TrustAnchorArnT = Aws::String>
69 TrustAnchorDetail& WithTrustAnchorArn(TrustAnchorArnT&& value) {
70 SetTrustAnchorArn(std::forward<TrustAnchorArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 template <typename NameT = Aws::String>
82 void SetName(NameT&& value) {
83 m_nameHasBeenSet = true;
84 m_name = std::forward<NameT>(value);
85 }
86 template <typename NameT = Aws::String>
87 TrustAnchorDetail& WithName(NameT&& value) {
88 SetName(std::forward<NameT>(value));
89 return *this;
90 }
92
94
97 inline const Source& GetSource() const { return m_source; }
98 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
99 template <typename SourceT = Source>
100 void SetSource(SourceT&& value) {
101 m_sourceHasBeenSet = true;
102 m_source = std::forward<SourceT>(value);
103 }
104 template <typename SourceT = Source>
105 TrustAnchorDetail& WithSource(SourceT&& value) {
106 SetSource(std::forward<SourceT>(value));
107 return *this;
108 }
110
112
115 inline bool GetEnabled() const { return m_enabled; }
116 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
117 inline void SetEnabled(bool value) {
118 m_enabledHasBeenSet = true;
119 m_enabled = value;
120 }
121 inline TrustAnchorDetail& WithEnabled(bool value) {
122 SetEnabled(value);
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
132 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 template <typename CreatedAtT = Aws::Utils::DateTime>
134 void SetCreatedAt(CreatedAtT&& value) {
135 m_createdAtHasBeenSet = true;
136 m_createdAt = std::forward<CreatedAtT>(value);
137 }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 TrustAnchorDetail& WithCreatedAt(CreatedAtT&& value) {
140 SetCreatedAt(std::forward<CreatedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
150 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
151 template <typename UpdatedAtT = Aws::Utils::DateTime>
152 void SetUpdatedAt(UpdatedAtT&& value) {
153 m_updatedAtHasBeenSet = true;
154 m_updatedAt = std::forward<UpdatedAtT>(value);
155 }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 TrustAnchorDetail& WithUpdatedAt(UpdatedAtT&& value) {
158 SetUpdatedAt(std::forward<UpdatedAtT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Vector<NotificationSettingDetail>& GetNotificationSettings() const { return m_notificationSettings; }
168 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
169 template <typename NotificationSettingsT = Aws::Vector<NotificationSettingDetail>>
170 void SetNotificationSettings(NotificationSettingsT&& value) {
171 m_notificationSettingsHasBeenSet = true;
172 m_notificationSettings = std::forward<NotificationSettingsT>(value);
173 }
174 template <typename NotificationSettingsT = Aws::Vector<NotificationSettingDetail>>
175 TrustAnchorDetail& WithNotificationSettings(NotificationSettingsT&& value) {
176 SetNotificationSettings(std::forward<NotificationSettingsT>(value));
177 return *this;
178 }
179 template <typename NotificationSettingsT = NotificationSettingDetail>
180 TrustAnchorDetail& AddNotificationSettings(NotificationSettingsT&& value) {
181 m_notificationSettingsHasBeenSet = true;
182 m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_trustAnchorId;
188
189 Aws::String m_trustAnchorArn;
190
191 Aws::String m_name;
192
193 Source m_source;
194
195 bool m_enabled{false};
196
197 Aws::Utils::DateTime m_createdAt{};
198
199 Aws::Utils::DateTime m_updatedAt{};
200
201 Aws::Vector<NotificationSettingDetail> m_notificationSettings;
202 bool m_trustAnchorIdHasBeenSet = false;
203 bool m_trustAnchorArnHasBeenSet = false;
204 bool m_nameHasBeenSet = false;
205 bool m_sourceHasBeenSet = false;
206 bool m_enabledHasBeenSet = false;
207 bool m_createdAtHasBeenSet = false;
208 bool m_updatedAtHasBeenSet = false;
209 bool m_notificationSettingsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace RolesAnywhere
214} // namespace Aws
TrustAnchorDetail & WithEnabled(bool value)
TrustAnchorDetail & WithCreatedAt(CreatedAtT &&value)
AWS_ROLESANYWHERE_API TrustAnchorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TrustAnchorDetail & WithName(NameT &&value)
TrustAnchorDetail & WithNotificationSettings(NotificationSettingsT &&value)
AWS_ROLESANYWHERE_API TrustAnchorDetail(Aws::Utils::Json::JsonView jsonValue)
void SetNotificationSettings(NotificationSettingsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
TrustAnchorDetail & WithUpdatedAt(UpdatedAtT &&value)
TrustAnchorDetail & WithSource(SourceT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
TrustAnchorDetail & AddNotificationSettings(NotificationSettingsT &&value)
TrustAnchorDetail & WithTrustAnchorArn(TrustAnchorArnT &&value)
void SetTrustAnchorArn(TrustAnchorArnT &&value)
const Aws::Vector< NotificationSettingDetail > & GetNotificationSettings() const
void SetTrustAnchorId(TrustAnchorIdT &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROLESANYWHERE_API TrustAnchorDetail()=default
TrustAnchorDetail & WithTrustAnchorId(TrustAnchorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue