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>
25namespace RolesAnywhere
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>
64 template<
typename CredentialsT = Aws::Vector<CredentialSummary>>
65 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet =
true; m_credentials = std::forward<CredentialsT>(value); }
66 template<
typename CredentialsT = Aws::Vector<CredentialSummary>>
68 template<
typename CredentialsT = CredentialSummary>
69 SubjectDetail&
AddCredentials(CredentialsT&& value) { m_credentialsHasBeenSet =
true; m_credentials.emplace_back(std::forward<CredentialsT>(value));
return *
this; }
78 inline void SetEnabled(
bool value) { m_enabledHasBeenSet =
true; m_enabled = value; }
88 template<
typename InstancePropertiesT = Aws::Vector<InstanceProperty>>
89 void SetInstanceProperties(InstancePropertiesT&& value) { m_instancePropertiesHasBeenSet =
true; m_instanceProperties = std::forward<InstancePropertiesT>(value); }
90 template<
typename InstancePropertiesT = Aws::Vector<InstanceProperty>>
92 template<
typename InstancePropertiesT = InstanceProperty>
93 SubjectDetail&
AddInstanceProperties(InstancePropertiesT&& value) { m_instancePropertiesHasBeenSet =
true; m_instanceProperties.emplace_back(std::forward<InstancePropertiesT>(value));
return *
this; }
103 template<
typename LastSeenAtT = Aws::Utils::DateTime>
104 void SetLastSeenAt(LastSeenAtT&& value) { m_lastSeenAtHasBeenSet =
true; m_lastSeenAt = std::forward<LastSeenAtT>(value); }
105 template<
typename LastSeenAtT = Aws::Utils::DateTime>
115 template<
typename SubjectArnT = Aws::String>
116 void SetSubjectArn(SubjectArnT&& value) { m_subjectArnHasBeenSet =
true; m_subjectArn = std::forward<SubjectArnT>(value); }
117 template<
typename SubjectArnT = Aws::String>
127 template<
typename SubjectIdT = Aws::String>
128 void SetSubjectId(SubjectIdT&& value) { m_subjectIdHasBeenSet =
true; m_subjectId = std::forward<SubjectIdT>(value); }
129 template<
typename SubjectIdT = Aws::String>
139 template<
typename UpdatedAtT = Aws::Utils::DateTime>
140 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet =
true; m_updatedAt = std::forward<UpdatedAtT>(value); }
141 template<
typename UpdatedAtT = Aws::Utils::DateTime>
151 template<
typename X509SubjectT = Aws::String>
152 void SetX509Subject(X509SubjectT&& value) { m_x509SubjectHasBeenSet =
true; m_x509Subject = std::forward<X509SubjectT>(value); }
153 template<
typename X509SubjectT = Aws::String>
159 bool m_createdAtHasBeenSet =
false;
162 bool m_credentialsHasBeenSet =
false;
164 bool m_enabled{
false};
165 bool m_enabledHasBeenSet =
false;
168 bool m_instancePropertiesHasBeenSet =
false;
171 bool m_lastSeenAtHasBeenSet =
false;
174 bool m_subjectArnHasBeenSet =
false;
177 bool m_subjectIdHasBeenSet =
false;
180 bool m_updatedAtHasBeenSet =
false;
183 bool m_x509SubjectHasBeenSet =
false;
AWS_ROLESANYWHERE_API SubjectDetail()=default
const Aws::Utils::DateTime & GetLastSeenAt() const
const Aws::String & GetSubjectArn() const
SubjectDetail & AddCredentials(CredentialsT &&value)
bool UpdatedAtHasBeenSet() const
AWS_ROLESANYWHERE_API SubjectDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< InstanceProperty > & GetInstanceProperties() const
AWS_ROLESANYWHERE_API SubjectDetail(Aws::Utils::Json::JsonView jsonValue)
void SetX509Subject(X509SubjectT &&value)
bool CredentialsHasBeenSet() const
SubjectDetail & WithCredentials(CredentialsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetSubjectId() const
void SetCredentials(CredentialsT &&value)
SubjectDetail & WithSubjectArn(SubjectArnT &&value)
void SetSubjectArn(SubjectArnT &&value)
void SetSubjectId(SubjectIdT &&value)
bool EnabledHasBeenSet() const
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
bool CreatedAtHasBeenSet() const
SubjectDetail & WithCreatedAt(CreatedAtT &&value)
SubjectDetail & WithSubjectId(SubjectIdT &&value)
SubjectDetail & WithLastSeenAt(LastSeenAtT &&value)
const Aws::Vector< CredentialSummary > & GetCredentials() const
void SetEnabled(bool value)
bool SubjectArnHasBeenSet() const
SubjectDetail & WithUpdatedAt(UpdatedAtT &&value)
SubjectDetail & WithEnabled(bool value)
bool X509SubjectHasBeenSet() const
bool InstancePropertiesHasBeenSet() const
SubjectDetail & WithInstanceProperties(InstancePropertiesT &&value)
SubjectDetail & AddInstanceProperties(InstancePropertiesT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetInstanceProperties(InstancePropertiesT &&value)
bool SubjectIdHasBeenSet() const
void SetLastSeenAt(LastSeenAtT &&value)
bool LastSeenAtHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetCreatedAt(CreatedAtT &&value)
const Aws::String & GetX509Subject() const
SubjectDetail & WithX509Subject(X509SubjectT &&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