AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IdentityDescription.h
1
6#pragma once
7#include <aws/cognito-identity/CognitoIdentity_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
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CognitoIdentity {
22namespace Model {
23
30 public:
31 AWS_COGNITOIDENTITY_API IdentityDescription() = default;
32 AWS_COGNITOIDENTITY_API IdentityDescription(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COGNITOIDENTITY_API IdentityDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIdentityId() const { return m_identityId; }
41 inline bool IdentityIdHasBeenSet() const { return m_identityIdHasBeenSet; }
42 template <typename IdentityIdT = Aws::String>
43 void SetIdentityId(IdentityIdT&& value) {
44 m_identityIdHasBeenSet = true;
45 m_identityId = std::forward<IdentityIdT>(value);
46 }
47 template <typename IdentityIdT = Aws::String>
48 IdentityDescription& WithIdentityId(IdentityIdT&& value) {
49 SetIdentityId(std::forward<IdentityIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetLogins() const { return m_logins; }
59 inline bool LoginsHasBeenSet() const { return m_loginsHasBeenSet; }
60 template <typename LoginsT = Aws::Vector<Aws::String>>
61 void SetLogins(LoginsT&& value) {
62 m_loginsHasBeenSet = true;
63 m_logins = std::forward<LoginsT>(value);
64 }
65 template <typename LoginsT = Aws::Vector<Aws::String>>
66 IdentityDescription& WithLogins(LoginsT&& value) {
67 SetLogins(std::forward<LoginsT>(value));
68 return *this;
69 }
70 template <typename LoginsT = Aws::String>
71 IdentityDescription& AddLogins(LoginsT&& value) {
72 m_loginsHasBeenSet = true;
73 m_logins.emplace_back(std::forward<LoginsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
83 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
84 template <typename CreationDateT = Aws::Utils::DateTime>
85 void SetCreationDate(CreationDateT&& value) {
86 m_creationDateHasBeenSet = true;
87 m_creationDate = std::forward<CreationDateT>(value);
88 }
89 template <typename CreationDateT = Aws::Utils::DateTime>
90 IdentityDescription& WithCreationDate(CreationDateT&& value) {
91 SetCreationDate(std::forward<CreationDateT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
101 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
102 template <typename LastModifiedDateT = Aws::Utils::DateTime>
103 void SetLastModifiedDate(LastModifiedDateT&& value) {
104 m_lastModifiedDateHasBeenSet = true;
105 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
106 }
107 template <typename LastModifiedDateT = Aws::Utils::DateTime>
108 IdentityDescription& WithLastModifiedDate(LastModifiedDateT&& value) {
109 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
110 return *this;
111 }
113
115
116 inline const Aws::String& GetRequestId() const { return m_requestId; }
117 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
124 IdentityDescription& WithRequestId(RequestIdT&& value) {
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_identityId;
131
133
134 Aws::Utils::DateTime m_creationDate{};
135
136 Aws::Utils::DateTime m_lastModifiedDate{};
137
138 Aws::String m_requestId;
139 bool m_identityIdHasBeenSet = false;
140 bool m_loginsHasBeenSet = false;
141 bool m_creationDateHasBeenSet = false;
142 bool m_lastModifiedDateHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace CognitoIdentity
148} // namespace Aws
AWS_COGNITOIDENTITY_API IdentityDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
IdentityDescription & WithIdentityId(IdentityIdT &&value)
IdentityDescription & WithLogins(LoginsT &&value)
AWS_COGNITOIDENTITY_API Aws::Utils::Json::JsonValue Jsonize() const
IdentityDescription & WithCreationDate(CreationDateT &&value)
IdentityDescription & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_COGNITOIDENTITY_API IdentityDescription(Aws::Utils::Json::JsonView jsonValue)
IdentityDescription & AddLogins(LoginsT &&value)
IdentityDescription & WithRequestId(RequestIdT &&value)
AWS_COGNITOIDENTITY_API IdentityDescription()=default
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::Vector< Aws::String > & GetLogins() 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