AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubjectDetail.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/rolesanywhere/model/CredentialSummary.h>
12#include <aws/rolesanywhere/model/InstanceProperty.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 SubjectDetail();
40 AWS_ROLESANYWHERE_API SubjectDetail(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROLESANYWHERE_API SubjectDetail& 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 SubjectDetail& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
54 inline SubjectDetail& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
56
58
62 inline const Aws::Vector<CredentialSummary>& GetCredentials() const{ return m_credentials; }
63 inline bool CredentialsHasBeenSet() const { return m_credentialsHasBeenSet; }
64 inline void SetCredentials(const Aws::Vector<CredentialSummary>& value) { m_credentialsHasBeenSet = true; m_credentials = value; }
65 inline void SetCredentials(Aws::Vector<CredentialSummary>&& value) { m_credentialsHasBeenSet = true; m_credentials = std::move(value); }
66 inline SubjectDetail& WithCredentials(const Aws::Vector<CredentialSummary>& value) { SetCredentials(value); return *this;}
67 inline SubjectDetail& WithCredentials(Aws::Vector<CredentialSummary>&& value) { SetCredentials(std::move(value)); return *this;}
68 inline SubjectDetail& AddCredentials(const CredentialSummary& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(value); return *this; }
69 inline SubjectDetail& AddCredentials(CredentialSummary&& value) { m_credentialsHasBeenSet = true; m_credentials.push_back(std::move(value)); return *this; }
71
73
76 inline bool GetEnabled() const{ return m_enabled; }
77 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
78 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
79 inline SubjectDetail& WithEnabled(bool value) { SetEnabled(value); return *this;}
81
83
86 inline const Aws::Vector<InstanceProperty>& GetInstanceProperties() const{ return m_instanceProperties; }
87 inline bool InstancePropertiesHasBeenSet() const { return m_instancePropertiesHasBeenSet; }
88 inline void SetInstanceProperties(const Aws::Vector<InstanceProperty>& value) { m_instancePropertiesHasBeenSet = true; m_instanceProperties = value; }
89 inline void SetInstanceProperties(Aws::Vector<InstanceProperty>&& value) { m_instancePropertiesHasBeenSet = true; m_instanceProperties = std::move(value); }
92 inline SubjectDetail& AddInstanceProperties(const InstanceProperty& value) { m_instancePropertiesHasBeenSet = true; m_instanceProperties.push_back(value); return *this; }
93 inline SubjectDetail& AddInstanceProperties(InstanceProperty&& value) { m_instancePropertiesHasBeenSet = true; m_instanceProperties.push_back(std::move(value)); return *this; }
95
97
101 inline const Aws::Utils::DateTime& GetLastSeenAt() const{ return m_lastSeenAt; }
102 inline bool LastSeenAtHasBeenSet() const { return m_lastSeenAtHasBeenSet; }
103 inline void SetLastSeenAt(const Aws::Utils::DateTime& value) { m_lastSeenAtHasBeenSet = true; m_lastSeenAt = value; }
104 inline void SetLastSeenAt(Aws::Utils::DateTime&& value) { m_lastSeenAtHasBeenSet = true; m_lastSeenAt = std::move(value); }
105 inline SubjectDetail& WithLastSeenAt(const Aws::Utils::DateTime& value) { SetLastSeenAt(value); return *this;}
106 inline SubjectDetail& WithLastSeenAt(Aws::Utils::DateTime&& value) { SetLastSeenAt(std::move(value)); return *this;}
108
110
113 inline const Aws::String& GetSubjectArn() const{ return m_subjectArn; }
114 inline bool SubjectArnHasBeenSet() const { return m_subjectArnHasBeenSet; }
115 inline void SetSubjectArn(const Aws::String& value) { m_subjectArnHasBeenSet = true; m_subjectArn = value; }
116 inline void SetSubjectArn(Aws::String&& value) { m_subjectArnHasBeenSet = true; m_subjectArn = std::move(value); }
117 inline void SetSubjectArn(const char* value) { m_subjectArnHasBeenSet = true; m_subjectArn.assign(value); }
118 inline SubjectDetail& WithSubjectArn(const Aws::String& value) { SetSubjectArn(value); return *this;}
119 inline SubjectDetail& WithSubjectArn(Aws::String&& value) { SetSubjectArn(std::move(value)); return *this;}
120 inline SubjectDetail& WithSubjectArn(const char* value) { SetSubjectArn(value); return *this;}
122
124
127 inline const Aws::String& GetSubjectId() const{ return m_subjectId; }
128 inline bool SubjectIdHasBeenSet() const { return m_subjectIdHasBeenSet; }
129 inline void SetSubjectId(const Aws::String& value) { m_subjectIdHasBeenSet = true; m_subjectId = value; }
130 inline void SetSubjectId(Aws::String&& value) { m_subjectIdHasBeenSet = true; m_subjectId = std::move(value); }
131 inline void SetSubjectId(const char* value) { m_subjectIdHasBeenSet = true; m_subjectId.assign(value); }
132 inline SubjectDetail& WithSubjectId(const Aws::String& value) { SetSubjectId(value); return *this;}
133 inline SubjectDetail& WithSubjectId(Aws::String&& value) { SetSubjectId(std::move(value)); return *this;}
134 inline SubjectDetail& WithSubjectId(const char* value) { SetSubjectId(value); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
142 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
143 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
144 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
145 inline SubjectDetail& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
146 inline SubjectDetail& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
148
150
153 inline const Aws::String& GetX509Subject() const{ return m_x509Subject; }
154 inline bool X509SubjectHasBeenSet() const { return m_x509SubjectHasBeenSet; }
155 inline void SetX509Subject(const Aws::String& value) { m_x509SubjectHasBeenSet = true; m_x509Subject = value; }
156 inline void SetX509Subject(Aws::String&& value) { m_x509SubjectHasBeenSet = true; m_x509Subject = std::move(value); }
157 inline void SetX509Subject(const char* value) { m_x509SubjectHasBeenSet = true; m_x509Subject.assign(value); }
158 inline SubjectDetail& WithX509Subject(const Aws::String& value) { SetX509Subject(value); return *this;}
159 inline SubjectDetail& WithX509Subject(Aws::String&& value) { SetX509Subject(std::move(value)); return *this;}
160 inline SubjectDetail& WithX509Subject(const char* value) { SetX509Subject(value); return *this;}
162 private:
163
164 Aws::Utils::DateTime m_createdAt;
165 bool m_createdAtHasBeenSet = false;
166
167 Aws::Vector<CredentialSummary> m_credentials;
168 bool m_credentialsHasBeenSet = false;
169
170 bool m_enabled;
171 bool m_enabledHasBeenSet = false;
172
173 Aws::Vector<InstanceProperty> m_instanceProperties;
174 bool m_instancePropertiesHasBeenSet = false;
175
176 Aws::Utils::DateTime m_lastSeenAt;
177 bool m_lastSeenAtHasBeenSet = false;
178
179 Aws::String m_subjectArn;
180 bool m_subjectArnHasBeenSet = false;
181
182 Aws::String m_subjectId;
183 bool m_subjectIdHasBeenSet = false;
184
185 Aws::Utils::DateTime m_updatedAt;
186 bool m_updatedAtHasBeenSet = false;
187
188 Aws::String m_x509Subject;
189 bool m_x509SubjectHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace RolesAnywhere
194} // namespace Aws
SubjectDetail & WithX509Subject(Aws::String &&value)
const Aws::Utils::DateTime & GetLastSeenAt() const
void SetSubjectArn(const Aws::String &value)
const Aws::String & GetSubjectArn() const
SubjectDetail & WithUpdatedAt(const Aws::Utils::DateTime &value)
SubjectDetail & WithSubjectArn(Aws::String &&value)
SubjectDetail & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API SubjectDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
SubjectDetail & WithSubjectArn(const Aws::String &value)
void SetInstanceProperties(Aws::Vector< InstanceProperty > &&value)
const Aws::Vector< InstanceProperty > & GetInstanceProperties() const
void SetLastSeenAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API SubjectDetail(Aws::Utils::Json::JsonView jsonValue)
SubjectDetail & WithSubjectId(const char *value)
void SetCredentials(const Aws::Vector< CredentialSummary > &value)
SubjectDetail & AddInstanceProperties(const InstanceProperty &value)
SubjectDetail & WithLastSeenAt(const Aws::Utils::DateTime &value)
SubjectDetail & AddInstanceProperties(InstanceProperty &&value)
SubjectDetail & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetX509Subject(Aws::String &&value)
const Aws::String & GetSubjectId() const
SubjectDetail & AddCredentials(const CredentialSummary &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
SubjectDetail & WithX509Subject(const char *value)
SubjectDetail & WithCredentials(Aws::Vector< CredentialSummary > &&value)
void SetSubjectArn(Aws::String &&value)
void SetLastSeenAt(const Aws::Utils::DateTime &value)
SubjectDetail & WithSubjectId(const Aws::String &value)
SubjectDetail & WithSubjectArn(const char *value)
SubjectDetail & WithInstanceProperties(const Aws::Vector< InstanceProperty > &value)
void SetInstanceProperties(const Aws::Vector< InstanceProperty > &value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetX509Subject(const Aws::String &value)
SubjectDetail & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API SubjectDetail()
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCredentials(Aws::Vector< CredentialSummary > &&value)
SubjectDetail & WithCredentials(const Aws::Vector< CredentialSummary > &value)
SubjectDetail & WithX509Subject(const Aws::String &value)
const Aws::Vector< CredentialSummary > & GetCredentials() const
SubjectDetail & WithLastSeenAt(Aws::Utils::DateTime &&value)
void SetSubjectId(Aws::String &&value)
SubjectDetail & WithEnabled(bool value)
void SetSubjectId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
SubjectDetail & WithSubjectId(Aws::String &&value)
SubjectDetail & AddCredentials(CredentialSummary &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SubjectDetail & WithInstanceProperties(Aws::Vector< InstanceProperty > &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetX509Subject() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue