AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
52 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
53 inline TrustAnchorDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
54 inline TrustAnchorDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline TrustAnchorDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline TrustAnchorDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline TrustAnchorDetail& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::Vector<NotificationSettingDetail>& GetNotificationSettings() const{ return m_notificationSettings; }
86 inline bool NotificationSettingsHasBeenSet() const { return m_notificationSettingsHasBeenSet; }
87 inline void SetNotificationSettings(const Aws::Vector<NotificationSettingDetail>& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = value; }
88 inline void SetNotificationSettings(Aws::Vector<NotificationSettingDetail>&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings = std::move(value); }
91 inline TrustAnchorDetail& AddNotificationSettings(const NotificationSettingDetail& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(value); return *this; }
92 inline TrustAnchorDetail& AddNotificationSettings(NotificationSettingDetail&& value) { m_notificationSettingsHasBeenSet = true; m_notificationSettings.push_back(std::move(value)); return *this; }
94
96
99 inline const Source& GetSource() const{ return m_source; }
100 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
101 inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; }
102 inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
103 inline TrustAnchorDetail& WithSource(const Source& value) { SetSource(value); return *this;}
104 inline TrustAnchorDetail& WithSource(Source&& value) { SetSource(std::move(value)); return *this;}
106
108
111 inline const Aws::String& GetTrustAnchorArn() const{ return m_trustAnchorArn; }
112 inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; }
113 inline void SetTrustAnchorArn(const Aws::String& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = value; }
114 inline void SetTrustAnchorArn(Aws::String&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::move(value); }
115 inline void SetTrustAnchorArn(const char* value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn.assign(value); }
116 inline TrustAnchorDetail& WithTrustAnchorArn(const Aws::String& value) { SetTrustAnchorArn(value); return *this;}
117 inline TrustAnchorDetail& WithTrustAnchorArn(Aws::String&& value) { SetTrustAnchorArn(std::move(value)); return *this;}
118 inline TrustAnchorDetail& WithTrustAnchorArn(const char* value) { SetTrustAnchorArn(value); return *this;}
120
122
125 inline const Aws::String& GetTrustAnchorId() const{ return m_trustAnchorId; }
126 inline bool TrustAnchorIdHasBeenSet() const { return m_trustAnchorIdHasBeenSet; }
127 inline void SetTrustAnchorId(const Aws::String& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = value; }
128 inline void SetTrustAnchorId(Aws::String&& value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId = std::move(value); }
129 inline void SetTrustAnchorId(const char* value) { m_trustAnchorIdHasBeenSet = true; m_trustAnchorId.assign(value); }
130 inline TrustAnchorDetail& WithTrustAnchorId(const Aws::String& value) { SetTrustAnchorId(value); return *this;}
131 inline TrustAnchorDetail& WithTrustAnchorId(Aws::String&& value) { SetTrustAnchorId(std::move(value)); return *this;}
132 inline TrustAnchorDetail& WithTrustAnchorId(const char* value) { SetTrustAnchorId(value); return *this;}
134
136
139 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
140 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
141 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
142 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
143 inline TrustAnchorDetail& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
144 inline TrustAnchorDetail& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
146 private:
147
148 Aws::Utils::DateTime m_createdAt;
149 bool m_createdAtHasBeenSet = false;
150
151 bool m_enabled;
152 bool m_enabledHasBeenSet = false;
153
154 Aws::String m_name;
155 bool m_nameHasBeenSet = false;
156
157 Aws::Vector<NotificationSettingDetail> m_notificationSettings;
158 bool m_notificationSettingsHasBeenSet = false;
159
160 Source m_source;
161 bool m_sourceHasBeenSet = false;
162
163 Aws::String m_trustAnchorArn;
164 bool m_trustAnchorArnHasBeenSet = false;
165
166 Aws::String m_trustAnchorId;
167 bool m_trustAnchorIdHasBeenSet = false;
168
169 Aws::Utils::DateTime m_updatedAt;
170 bool m_updatedAtHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace RolesAnywhere
175} // namespace Aws
TrustAnchorDetail & WithEnabled(bool value)
TrustAnchorDetail & WithNotificationSettings(const Aws::Vector< NotificationSettingDetail > &value)
TrustAnchorDetail & WithTrustAnchorArn(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API TrustAnchorDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
TrustAnchorDetail & WithTrustAnchorId(const Aws::String &value)
TrustAnchorDetail & WithName(const char *value)
TrustAnchorDetail & WithSource(Source &&value)
AWS_ROLESANYWHERE_API TrustAnchorDetail(Aws::Utils::Json::JsonView jsonValue)
TrustAnchorDetail & WithTrustAnchorId(Aws::String &&value)
TrustAnchorDetail & WithSource(const Source &value)
TrustAnchorDetail & WithUpdatedAt(const Aws::Utils::DateTime &value)
void SetTrustAnchorArn(const Aws::String &value)
void SetNotificationSettings(const Aws::Vector< NotificationSettingDetail > &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
TrustAnchorDetail & WithNotificationSettings(Aws::Vector< NotificationSettingDetail > &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
TrustAnchorDetail & WithName(const Aws::String &value)
TrustAnchorDetail & WithTrustAnchorId(const char *value)
const Aws::Utils::DateTime & GetCreatedAt() const
TrustAnchorDetail & WithTrustAnchorArn(const char *value)
TrustAnchorDetail & AddNotificationSettings(const NotificationSettingDetail &value)
TrustAnchorDetail & AddNotificationSettings(NotificationSettingDetail &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
TrustAnchorDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
TrustAnchorDetail & WithName(Aws::String &&value)
const Aws::Vector< NotificationSettingDetail > & GetNotificationSettings() const
TrustAnchorDetail & WithUpdatedAt(Aws::Utils::DateTime &&value)
TrustAnchorDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetTrustAnchorId(const Aws::String &value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
TrustAnchorDetail & WithTrustAnchorArn(const Aws::String &value)
void SetNotificationSettings(Aws::Vector< NotificationSettingDetail > &&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