AWS SDK for C++  0.12.9
AWS SDK for C++
IdentityDescription.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 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace CognitoIdentity
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  IdentityDescription& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetIdentityId() const{ return m_identityId; }
50 
54  inline void SetIdentityId(const Aws::String& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
55 
59  inline void SetIdentityId(Aws::String&& value) { m_identityIdHasBeenSet = true; m_identityId = value; }
60 
64  inline void SetIdentityId(const char* value) { m_identityIdHasBeenSet = true; m_identityId.assign(value); }
65 
69  inline IdentityDescription& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;}
70 
74  inline IdentityDescription& WithIdentityId(Aws::String&& value) { SetIdentityId(value); return *this;}
75 
79  inline IdentityDescription& WithIdentityId(const char* value) { SetIdentityId(value); return *this;}
80 
84  inline const Aws::Vector<Aws::String>& GetLogins() const{ return m_logins; }
85 
89  inline void SetLogins(const Aws::Vector<Aws::String>& value) { m_loginsHasBeenSet = true; m_logins = value; }
90 
94  inline void SetLogins(Aws::Vector<Aws::String>&& value) { m_loginsHasBeenSet = true; m_logins = value; }
95 
99  inline IdentityDescription& WithLogins(const Aws::Vector<Aws::String>& value) { SetLogins(value); return *this;}
100 
104  inline IdentityDescription& WithLogins(Aws::Vector<Aws::String>&& value) { SetLogins(value); return *this;}
105 
109  inline IdentityDescription& AddLogins(const Aws::String& value) { m_loginsHasBeenSet = true; m_logins.push_back(value); return *this; }
110 
114  inline IdentityDescription& AddLogins(Aws::String&& value) { m_loginsHasBeenSet = true; m_logins.push_back(value); return *this; }
115 
119  inline IdentityDescription& AddLogins(const char* value) { m_loginsHasBeenSet = true; m_logins.push_back(value); return *this; }
120 
124  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
125 
129  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
130 
134  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
135 
139  inline IdentityDescription& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
140 
144  inline IdentityDescription& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
145 
149  inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; }
150 
154  inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
155 
159  inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
160 
164  inline IdentityDescription& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;}
165 
169  inline IdentityDescription& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(value); return *this;}
170 
171  private:
172  Aws::String m_identityId;
173  bool m_identityIdHasBeenSet;
174  Aws::Vector<Aws::String> m_logins;
175  bool m_loginsHasBeenSet;
176  Aws::Utils::DateTime m_creationDate;
177  bool m_creationDateHasBeenSet;
178  Aws::Utils::DateTime m_lastModifiedDate;
179  bool m_lastModifiedDateHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace CognitoIdentity
184 } // namespace Aws
IdentityDescription & AddLogins(Aws::String &&value)
IdentityDescription & WithLogins(const Aws::Vector< Aws::String > &value)
IdentityDescription & WithLogins(Aws::Vector< Aws::String > &&value)
IdentityDescription & WithCreationDate(const Aws::Utils::DateTime &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Utils::DateTime & GetCreationDate() const
IdentityDescription & WithCreationDate(Aws::Utils::DateTime &&value)
void SetCreationDate(const Aws::Utils::DateTime &value)
void SetLogins(const Aws::Vector< Aws::String > &value)
void SetLogins(Aws::Vector< Aws::String > &&value)
IdentityDescription & WithIdentityId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetLogins() const
#define AWS_COGNITOIDENTITY_API
IdentityDescription & WithLastModifiedDate(Aws::Utils::DateTime &&value)
void SetLastModifiedDate(const Aws::Utils::DateTime &value)
IdentityDescription & WithLastModifiedDate(const Aws::Utils::DateTime &value)
IdentityDescription & WithIdentityId(Aws::String &&value)
void SetCreationDate(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IdentityDescription & AddLogins(const Aws::String &value)
IdentityDescription & WithIdentityId(const char *value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetLastModifiedDate(Aws::Utils::DateTime &&value)
IdentityDescription & AddLogins(const char *value)
JSON (JavaScript Object Notation).