AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TrustAnchorDetail.h
1
6#pragma once
7#include <aws/rolesanywhere/RolesAnywhere_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/rolesanywhere/model/Source.h>
12#include <aws/rolesanywhere/model/NotificationSettingDetail.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace RolesAnywhere
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ROLESANYWHERE_API TrustAnchorDetail() = default;
40 AWS_ROLESANYWHERE_API TrustAnchorDetail(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROLESANYWHERE_API TrustAnchorDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
50 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
51 template<typename CreatedAtT = Aws::Utils::DateTime>
52 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
53 template<typename CreatedAtT = Aws::Utils::DateTime>
54 TrustAnchorDetail& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
56
58
61 inline bool GetEnabled() const { return m_enabled; }
62 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
63 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
64 inline TrustAnchorDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 TrustAnchorDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
83 inline const Aws::Vector<NotificationSettingDetail>& GetNotificationSettings() const { return m_notificationSettings; }
84 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
85 template<typename NotificationSettingsT = Aws::Vector<NotificationSettingDetail>>
86 void SetNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::forward<NotificationSettingsT>(value); }
87 template<typename NotificationSettingsT = Aws::Vector<NotificationSettingDetail>>
88 TrustAnchorDetail& WithNotificationSettings(NotificationSettingsT&& value) { SetNotificationSettings(std::forward<NotificationSettingsT>(value)); return *this;}
89 template<typename NotificationSettingsT = NotificationSettingDetail>
90 TrustAnchorDetail& AddNotificationSettings(NotificationSettingsT&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.emplace_back(std::forward<NotificationSettingsT>(value)); return *this; }
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) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
101 template<typename SourceT = Source>
102 TrustAnchorDetail& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
104
106
109 inline const Aws::String& GetTrustAnchorArn() const { return m_trustAnchorArn; }
110 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
111 template<typename TrustAnchorArnT = Aws::String>
112 void SetTrustAnchorArn(TrustAnchorArnT&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::forward<TrustAnchorArnT>(value); }
113 template<typename TrustAnchorArnT = Aws::String>
114 TrustAnchorDetail& WithTrustAnchorArn(TrustAnchorArnT&& value) { SetTrustAnchorArn(std::forward<TrustAnchorArnT>(value)); return *this;}
116
118
121 inline const Aws::String& GetTrustAnchorId() const { return m_trustAnchorId; }
122 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
123 template<typename TrustAnchorIdT = Aws::String>
124 void SetTrustAnchorId(TrustAnchorIdT&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::forward<TrustAnchorIdT>(value); }
125 template<typename TrustAnchorIdT = Aws::String>
126 TrustAnchorDetail& WithTrustAnchorId(TrustAnchorIdT&& value) { SetTrustAnchorId(std::forward<TrustAnchorIdT>(value)); return *this;}
128
130
133 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
134 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
135 template<typename UpdatedAtT = Aws::Utils::DateTime>
136 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
137 template<typename UpdatedAtT = Aws::Utils::DateTime>
138 TrustAnchorDetail& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
140 private:
141
142 Aws::Utils::DateTime m_createdAt{};
143 bool m_createdAtHasBeenSet = false;
144
145 bool m_enabled{false};
146 bool m_enabledHasBeenSet = false;
147
148 Aws::String m_name;
149 bool m_nameHasBeenSet = false;
150
151 Aws::Vector<NotificationSettingDetail> m_notificationSettings;
152 bool m_notificationSettingsHasBeenSet = false;
153
154 Source m_source;
155 bool m_sourceHasBeenSet = false;
156
157 Aws::String m_trustAnchorArn;
158 bool m_trustAnchorArnHasBeenSet = false;
159
160 Aws::String m_trustAnchorId;
161 bool m_trustAnchorIdHasBeenSet = false;
162
163 Aws::Utils::DateTime m_updatedAt{};
164 bool m_updatedAtHasBeenSet = false;
165 };
166
167} // namespace Model
168} // namespace RolesAnywhere
169} // 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
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