AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubjectSummary.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace RolesAnywhere
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_ROLESANYWHERE_API SubjectSummary();
36 AWS_ROLESANYWHERE_API SubjectSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ROLESANYWHERE_API SubjectSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
47 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
48 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
49 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
50 inline SubjectSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
51 inline SubjectSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
53
55
58 inline bool GetEnabled() const{ return m_enabled; }
59 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
60 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
61 inline SubjectSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetLastSeenAt() const{ return m_lastSeenAt; }
70 inline bool LastSeenAtHasBeenSet() const { return m_lastSeenAtHasBeenSet; }
71 inline void SetLastSeenAt(const Aws::Utils::DateTime& value) { m_lastSeenAtHasBeenSet = true; m_lastSeenAt = value; }
72 inline void SetLastSeenAt(Aws::Utils::DateTime&& value) { m_lastSeenAtHasBeenSet = true; m_lastSeenAt = std::move(value); }
73 inline SubjectSummary& WithLastSeenAt(const Aws::Utils::DateTime& value) { SetLastSeenAt(value); return *this;}
74 inline SubjectSummary& WithLastSeenAt(Aws::Utils::DateTime&& value) { SetLastSeenAt(std::move(value)); return *this;}
76
78
81 inline const Aws::String& GetSubjectArn() const{ return m_subjectArn; }
82 inline bool SubjectArnHasBeenSet() const { return m_subjectArnHasBeenSet; }
83 inline void SetSubjectArn(const Aws::String& value) { m_subjectArnHasBeenSet = true; m_subjectArn = value; }
84 inline void SetSubjectArn(Aws::String&& value) { m_subjectArnHasBeenSet = true; m_subjectArn = std::move(value); }
85 inline void SetSubjectArn(const char* value) { m_subjectArnHasBeenSet = true; m_subjectArn.assign(value); }
86 inline SubjectSummary& WithSubjectArn(const Aws::String& value) { SetSubjectArn(value); return *this;}
87 inline SubjectSummary& WithSubjectArn(Aws::String&& value) { SetSubjectArn(std::move(value)); return *this;}
88 inline SubjectSummary& WithSubjectArn(const char* value) { SetSubjectArn(value); return *this;}
90
92
95 inline const Aws::String& GetSubjectId() const{ return m_subjectId; }
96 inline bool SubjectIdHasBeenSet() const { return m_subjectIdHasBeenSet; }
97 inline void SetSubjectId(const Aws::String& value) { m_subjectIdHasBeenSet = true; m_subjectId = value; }
98 inline void SetSubjectId(Aws::String&& value) { m_subjectIdHasBeenSet = true; m_subjectId = std::move(value); }
99 inline void SetSubjectId(const char* value) { m_subjectIdHasBeenSet = true; m_subjectId.assign(value); }
100 inline SubjectSummary& WithSubjectId(const Aws::String& value) { SetSubjectId(value); return *this;}
101 inline SubjectSummary& WithSubjectId(Aws::String&& value) { SetSubjectId(std::move(value)); return *this;}
102 inline SubjectSummary& WithSubjectId(const char* value) { SetSubjectId(value); return *this;}
104
106
109 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
110 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
111 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
112 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
113 inline SubjectSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
114 inline SubjectSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetX509Subject() const{ return m_x509Subject; }
122 inline bool X509SubjectHasBeenSet() const { return m_x509SubjectHasBeenSet; }
123 inline void SetX509Subject(const Aws::String& value) { m_x509SubjectHasBeenSet = true; m_x509Subject = value; }
124 inline void SetX509Subject(Aws::String&& value) { m_x509SubjectHasBeenSet = true; m_x509Subject = std::move(value); }
125 inline void SetX509Subject(const char* value) { m_x509SubjectHasBeenSet = true; m_x509Subject.assign(value); }
126 inline SubjectSummary& WithX509Subject(const Aws::String& value) { SetX509Subject(value); return *this;}
127 inline SubjectSummary& WithX509Subject(Aws::String&& value) { SetX509Subject(std::move(value)); return *this;}
128 inline SubjectSummary& WithX509Subject(const char* value) { SetX509Subject(value); return *this;}
130 private:
131
132 Aws::Utils::DateTime m_createdAt;
133 bool m_createdAtHasBeenSet = false;
134
135 bool m_enabled;
136 bool m_enabledHasBeenSet = false;
137
138 Aws::Utils::DateTime m_lastSeenAt;
139 bool m_lastSeenAtHasBeenSet = false;
140
141 Aws::String m_subjectArn;
142 bool m_subjectArnHasBeenSet = false;
143
144 Aws::String m_subjectId;
145 bool m_subjectIdHasBeenSet = false;
146
147 Aws::Utils::DateTime m_updatedAt;
148 bool m_updatedAtHasBeenSet = false;
149
150 Aws::String m_x509Subject;
151 bool m_x509SubjectHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace RolesAnywhere
156} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
SubjectSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
SubjectSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetSubjectId() const
const Aws::String & GetSubjectArn() const
const Aws::String & GetX509Subject() const
SubjectSummary & WithLastSeenAt(const Aws::Utils::DateTime &value)
SubjectSummary & WithEnabled(bool value)
SubjectSummary & WithSubjectArn(const char *value)
void SetLastSeenAt(Aws::Utils::DateTime &&value)
SubjectSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API Aws::Utils::Json::JsonValue Jsonize() const
SubjectSummary & WithX509Subject(const char *value)
const Aws::Utils::DateTime & GetLastSeenAt() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
SubjectSummary & WithSubjectId(Aws::String &&value)
void SetX509Subject(const Aws::String &value)
void SetSubjectArn(Aws::String &&value)
SubjectSummary & WithX509Subject(Aws::String &&value)
SubjectSummary & WithSubjectArn(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
SubjectSummary & WithSubjectArn(Aws::String &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SubjectSummary & WithLastSeenAt(Aws::Utils::DateTime &&value)
AWS_ROLESANYWHERE_API SubjectSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetSubjectArn(const Aws::String &value)
SubjectSummary & WithSubjectId(const char *value)
SubjectSummary & WithX509Subject(const Aws::String &value)
SubjectSummary & WithSubjectId(const Aws::String &value)
void SetLastSeenAt(const Aws::Utils::DateTime &value)
void SetSubjectId(const Aws::String &value)
AWS_ROLESANYWHERE_API SubjectSummary()
AWS_ROLESANYWHERE_API SubjectSummary(Aws::Utils::Json::JsonView jsonValue)
SubjectSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue