AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DescribeIdentityResult.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 {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CognitoIdentity {
24namespace Model {
31 public:
32 AWS_COGNITOIDENTITY_API DescribeIdentityResult() = default;
35
37
40 inline const Aws::String& GetIdentityId() const { return m_identityId; }
41 template <typename IdentityIdT = Aws::String>
42 void SetIdentityId(IdentityIdT&& value) {
43 m_identityIdHasBeenSet = true;
44 m_identityId = std::forward<IdentityIdT>(value);
45 }
46 template <typename IdentityIdT = Aws::String>
47 DescribeIdentityResult& WithIdentityId(IdentityIdT&& value) {
48 SetIdentityId(std::forward<IdentityIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetLogins() const { return m_logins; }
58 template <typename LoginsT = Aws::Vector<Aws::String>>
59 void SetLogins(LoginsT&& value) {
60 m_loginsHasBeenSet = true;
61 m_logins = std::forward<LoginsT>(value);
62 }
63 template <typename LoginsT = Aws::Vector<Aws::String>>
65 SetLogins(std::forward<LoginsT>(value));
66 return *this;
67 }
68 template <typename LoginsT = Aws::String>
70 m_loginsHasBeenSet = true;
71 m_logins.emplace_back(std::forward<LoginsT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
81 template <typename CreationDateT = Aws::Utils::DateTime>
82 void SetCreationDate(CreationDateT&& value) {
83 m_creationDateHasBeenSet = true;
84 m_creationDate = std::forward<CreationDateT>(value);
85 }
86 template <typename CreationDateT = Aws::Utils::DateTime>
87 DescribeIdentityResult& WithCreationDate(CreationDateT&& value) {
88 SetCreationDate(std::forward<CreationDateT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
98 template <typename LastModifiedDateT = Aws::Utils::DateTime>
99 void SetLastModifiedDate(LastModifiedDateT&& value) {
100 m_lastModifiedDateHasBeenSet = true;
101 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
102 }
103 template <typename LastModifiedDateT = Aws::Utils::DateTime>
104 DescribeIdentityResult& WithLastModifiedDate(LastModifiedDateT&& value) {
105 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
106 return *this;
107 }
109
111
112 inline const Aws::String& GetRequestId() const { return m_requestId; }
113 template <typename RequestIdT = Aws::String>
114 void SetRequestId(RequestIdT&& value) {
115 m_requestIdHasBeenSet = true;
116 m_requestId = std::forward<RequestIdT>(value);
117 }
118 template <typename RequestIdT = Aws::String>
120 SetRequestId(std::forward<RequestIdT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_identityId;
126 bool m_identityIdHasBeenSet = false;
127
129 bool m_loginsHasBeenSet = false;
130
131 Aws::Utils::DateTime m_creationDate{};
132 bool m_creationDateHasBeenSet = false;
133
134 Aws::Utils::DateTime m_lastModifiedDate{};
135 bool m_lastModifiedDateHasBeenSet = false;
136
137 Aws::String m_requestId;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CognitoIdentity
143} // namespace Aws
DescribeIdentityResult & WithRequestId(RequestIdT &&value)
AWS_COGNITOIDENTITY_API DescribeIdentityResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOIDENTITY_API DescribeIdentityResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModifiedDate() const
DescribeIdentityResult & WithIdentityId(IdentityIdT &&value)
DescribeIdentityResult & WithCreationDate(CreationDateT &&value)
DescribeIdentityResult & WithLogins(LoginsT &&value)
AWS_COGNITOIDENTITY_API DescribeIdentityResult()=default
DescribeIdentityResult & AddLogins(LoginsT &&value)
DescribeIdentityResult & WithLastModifiedDate(LastModifiedDateT &&value)
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