AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeIdentityResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace CognitoIdentity
34 {
35 namespace Model
36 {
41  {
42  public:
46 
50  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
51 
55  inline void SetIdentityId(const Aws::String& value) { m_identityId = value; }
56 
60  inline void SetIdentityId(Aws::String&& value) { m_identityId = value; }
61 
65  inline void SetIdentityId(const char* value) { m_identityId.assign(value); }
66 
70  inline DescribeIdentityResult& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
71 
75  inline DescribeIdentityResult& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
76 
80  inline DescribeIdentityResult& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
81 
85  inline const Aws::Vector<Aws::String>& GetLogins() const{ return m_logins; }
86 
90  inline void SetLogins(const Aws::Vector<Aws::String>& value) { m_logins = value; }
91 
95  inline void SetLogins(Aws::Vector<Aws::String>&& value) { m_logins = value; }
96 
100  inline DescribeIdentityResult& WithLogins(const Aws::Vector<Aws::String>& value) { SetLogins(value); return *this;}
101 
105  inline DescribeIdentityResult& WithLogins(Aws::Vector<Aws::String>&& value) { SetLogins(value); return *this;}
106 
110  inline DescribeIdentityResult& AddLogins(const Aws::String& value) { m_logins.push_back(value); return *this; }
111 
115  inline DescribeIdentityResult& AddLogins(Aws::String&& value) { m_logins.push_back(value); return *this; }
116 
120  inline DescribeIdentityResult& AddLogins(const char* value) { m_logins.push_back(value); return *this; }
121 
125  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
126 
130  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; }
131 
135  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = value; }
136 
140  inline DescribeIdentityResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
141 
145  inline DescribeIdentityResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
146 
150  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
151 
155  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; }
156 
160  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = value; }
161 
165  inline DescribeIdentityResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
166 
170  inline DescribeIdentityResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
171 
172  private:
173  Aws::String m_identityId;
174  Aws::Vector<Aws::String> m_logins;
175  Aws::Utils::DateTime m_creationDate;
176  Aws::Utils::DateTime m_lastModifiedDate;
177  };
178 
179 } // namespace Model
180 } // namespace CognitoIdentity
181 } // namespace Aws
DescribeIdentityResult & WithLogins(Aws::Vector< Aws::String > &&value)
DescribeIdentityResult & WithLastModifiedDate(const Aws::Utils::DateTime &value)
void SetLogins(Aws::Vector< Aws::String > &&value)
const Aws::Utils::DateTime & GetCreationDate() const
DescribeIdentityResult & WithLastModifiedDate(Aws::Utils::DateTime &&value)
DescribeIdentityResult & WithIdentityId(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeIdentityResult & WithLogins(const Aws::Vector< Aws::String > &value)
DescribeIdentityResult & AddLogins(const char *value)
DescribeIdentityResult & AddLogins(Aws::String &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
DescribeIdentityResult & WithCreationDate(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetLogins() const
#define AWS_COGNITOIDENTITY_API
DescribeIdentityResult & WithCreationDate(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeIdentityResult & WithIdentityId(const Aws::String &value)
DescribeIdentityResult & WithIdentityId(const char *value)
void SetCreationDate(const Aws::Utils::DateTime &value)
DescribeIdentityResult & AddLogins(const Aws::String &value)
void SetLogins(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).