AWS SDK for C++  0.12.9
AWS SDK for C++
DescribeIdentityPoolResult.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
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace CognitoIdentity
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
52 
56  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolId = value; }
57 
61  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolId = value; }
62 
66  inline void SetIdentityPoolId(const char* value) { m_identityPoolId.assign(value); }
67 
71  inline DescribeIdentityPoolResult& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
72 
76  inline DescribeIdentityPoolResult& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
77 
81  inline DescribeIdentityPoolResult& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
82 
86  inline const Aws::String& GetIdentityPoolName() const{ return m_identityPoolName; }
87 
91  inline void SetIdentityPoolName(const Aws::String& value) { m_identityPoolName = value; }
92 
96  inline void SetIdentityPoolName(Aws::String&& value) { m_identityPoolName = value; }
97 
101  inline void SetIdentityPoolName(const char* value) { m_identityPoolName.assign(value); }
102 
106  inline DescribeIdentityPoolResult& WithIdentityPoolName(const Aws::String& value) { SetIdentityPoolName(value); return *this;}
107 
111  inline DescribeIdentityPoolResult& WithIdentityPoolName(Aws::String&& value) { SetIdentityPoolName(value); return *this;}
112 
116  inline DescribeIdentityPoolResult& WithIdentityPoolName(const char* value) { SetIdentityPoolName(value); return *this;}
117 
121  inline bool GetAllowUnauthenticatedIdentities() const{ return m_allowUnauthenticatedIdentities; }
122 
126  inline void SetAllowUnauthenticatedIdentities(bool value) { m_allowUnauthenticatedIdentities = value; }
127 
131  inline DescribeIdentityPoolResult& WithAllowUnauthenticatedIdentities(bool value) { SetAllowUnauthenticatedIdentities(value); return *this;}
132 
136  inline const Aws::Map<Aws::String, Aws::String>& GetSupportedLoginProviders() const{ return m_supportedLoginProviders; }
137 
141  inline void SetSupportedLoginProviders(const Aws::Map<Aws::String, Aws::String>& value) { m_supportedLoginProviders = value; }
142 
146  inline void SetSupportedLoginProviders(Aws::Map<Aws::String, Aws::String>&& value) { m_supportedLoginProviders = value; }
147 
151  inline DescribeIdentityPoolResult& WithSupportedLoginProviders(const Aws::Map<Aws::String, Aws::String>& value) { SetSupportedLoginProviders(value); return *this;}
152 
156  inline DescribeIdentityPoolResult& WithSupportedLoginProviders(Aws::Map<Aws::String, Aws::String>&& value) { SetSupportedLoginProviders(value); return *this;}
157 
161  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(const Aws::String& key, const Aws::String& value) { m_supportedLoginProviders[key] = value; return *this; }
162 
166  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(Aws::String&& key, const Aws::String& value) { m_supportedLoginProviders[key] = value; return *this; }
167 
171  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(const Aws::String& key, Aws::String&& value) { m_supportedLoginProviders[key] = value; return *this; }
172 
176  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(Aws::String&& key, Aws::String&& value) { m_supportedLoginProviders[key] = value; return *this; }
177 
181  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(const char* key, Aws::String&& value) { m_supportedLoginProviders[key] = value; return *this; }
182 
186  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(Aws::String&& key, const char* value) { m_supportedLoginProviders[key] = value; return *this; }
187 
191  inline DescribeIdentityPoolResult& AddSupportedLoginProviders(const char* key, const char* value) { m_supportedLoginProviders[key] = value; return *this; }
192 
196  inline const Aws::String& GetDeveloperProviderName() const{ return m_developerProviderName; }
197 
201  inline void SetDeveloperProviderName(const Aws::String& value) { m_developerProviderName = value; }
202 
206  inline void SetDeveloperProviderName(Aws::String&& value) { m_developerProviderName = value; }
207 
211  inline void SetDeveloperProviderName(const char* value) { m_developerProviderName.assign(value); }
212 
216  inline DescribeIdentityPoolResult& WithDeveloperProviderName(const Aws::String& value) { SetDeveloperProviderName(value); return *this;}
217 
221  inline DescribeIdentityPoolResult& WithDeveloperProviderName(Aws::String&& value) { SetDeveloperProviderName(value); return *this;}
222 
226  inline DescribeIdentityPoolResult& WithDeveloperProviderName(const char* value) { SetDeveloperProviderName(value); return *this;}
227 
231  inline const Aws::Vector<Aws::String>& GetOpenIdConnectProviderARNs() const{ return m_openIdConnectProviderARNs; }
232 
236  inline void SetOpenIdConnectProviderARNs(const Aws::Vector<Aws::String>& value) { m_openIdConnectProviderARNs = value; }
237 
241  inline void SetOpenIdConnectProviderARNs(Aws::Vector<Aws::String>&& value) { m_openIdConnectProviderARNs = value; }
242 
246  inline DescribeIdentityPoolResult& WithOpenIdConnectProviderARNs(const Aws::Vector<Aws::String>& value) { SetOpenIdConnectProviderARNs(value); return *this;}
247 
251  inline DescribeIdentityPoolResult& WithOpenIdConnectProviderARNs(Aws::Vector<Aws::String>&& value) { SetOpenIdConnectProviderARNs(value); return *this;}
252 
256  inline DescribeIdentityPoolResult& AddOpenIdConnectProviderARNs(const Aws::String& value) { m_openIdConnectProviderARNs.push_back(value); return *this; }
257 
261  inline DescribeIdentityPoolResult& AddOpenIdConnectProviderARNs(Aws::String&& value) { m_openIdConnectProviderARNs.push_back(value); return *this; }
262 
266  inline DescribeIdentityPoolResult& AddOpenIdConnectProviderARNs(const char* value) { m_openIdConnectProviderARNs.push_back(value); return *this; }
267 
271  inline const Aws::Vector<CognitoIdentityProvider>& GetCognitoIdentityProviders() const{ return m_cognitoIdentityProviders; }
272 
276  inline void SetCognitoIdentityProviders(const Aws::Vector<CognitoIdentityProvider>& value) { m_cognitoIdentityProviders = value; }
277 
281  inline void SetCognitoIdentityProviders(Aws::Vector<CognitoIdentityProvider>&& value) { m_cognitoIdentityProviders = value; }
282 
286  inline DescribeIdentityPoolResult& WithCognitoIdentityProviders(const Aws::Vector<CognitoIdentityProvider>& value) { SetCognitoIdentityProviders(value); return *this;}
287 
291  inline DescribeIdentityPoolResult& WithCognitoIdentityProviders(Aws::Vector<CognitoIdentityProvider>&& value) { SetCognitoIdentityProviders(value); return *this;}
292 
296  inline DescribeIdentityPoolResult& AddCognitoIdentityProviders(const CognitoIdentityProvider& value) { m_cognitoIdentityProviders.push_back(value); return *this; }
297 
301  inline DescribeIdentityPoolResult& AddCognitoIdentityProviders(CognitoIdentityProvider&& value) { m_cognitoIdentityProviders.push_back(value); return *this; }
302 
303  private:
304  Aws::String m_identityPoolId;
305  Aws::String m_identityPoolName;
306  bool m_allowUnauthenticatedIdentities;
307  Aws::Map<Aws::String, Aws::String> m_supportedLoginProviders;
308  Aws::String m_developerProviderName;
309  Aws::Vector<Aws::String> m_openIdConnectProviderARNs;
310  Aws::Vector<CognitoIdentityProvider> m_cognitoIdentityProviders;
311  };
312 
313 } // namespace Model
314 } // namespace CognitoIdentity
315 } // namespace Aws
DescribeIdentityPoolResult & AddSupportedLoginProviders(Aws::String &&key, Aws::String &&value)
void SetSupportedLoginProviders(const Aws::Map< Aws::String, Aws::String > &value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(const char *key, Aws::String &&value)
DescribeIdentityPoolResult & WithDeveloperProviderName(const Aws::String &value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(const Aws::String &key, Aws::String &&value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(Aws::String &&key, const Aws::String &value)
DescribeIdentityPoolResult & WithSupportedLoginProviders(Aws::Map< Aws::String, Aws::String > &&value)
DescribeIdentityPoolResult & AddCognitoIdentityProviders(CognitoIdentityProvider &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeIdentityPoolResult & WithIdentityPoolId(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
DescribeIdentityPoolResult & WithOpenIdConnectProviderARNs(const Aws::Vector< Aws::String > &value)
DescribeIdentityPoolResult & WithIdentityPoolName(Aws::String &&value)
DescribeIdentityPoolResult & WithCognitoIdentityProviders(Aws::Vector< CognitoIdentityProvider > &&value)
DescribeIdentityPoolResult & WithOpenIdConnectProviderARNs(Aws::Vector< Aws::String > &&value)
DescribeIdentityPoolResult & WithSupportedLoginProviders(const Aws::Map< Aws::String, Aws::String > &value)
DescribeIdentityPoolResult & WithIdentityPoolId(const Aws::String &value)
void SetSupportedLoginProviders(Aws::Map< Aws::String, Aws::String > &&value)
DescribeIdentityPoolResult & WithDeveloperProviderName(Aws::String &&value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(Aws::String &&key, const char *value)
DescribeIdentityPoolResult & WithDeveloperProviderName(const char *value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(const Aws::String &key, const Aws::String &value)
DescribeIdentityPoolResult & AddSupportedLoginProviders(const char *key, const char *value)
DescribeIdentityPoolResult & AddOpenIdConnectProviderARNs(const Aws::String &value)
DescribeIdentityPoolResult & WithIdentityPoolName(const char *value)
DescribeIdentityPoolResult & WithCognitoIdentityProviders(const Aws::Vector< CognitoIdentityProvider > &value)
#define AWS_COGNITOIDENTITY_API
DescribeIdentityPoolResult & AddCognitoIdentityProviders(const CognitoIdentityProvider &value)
void SetOpenIdConnectProviderARNs(const Aws::Vector< Aws::String > &value)
DescribeIdentityPoolResult & AddOpenIdConnectProviderARNs(const char *value)
void SetCognitoIdentityProviders(Aws::Vector< CognitoIdentityProvider > &&value)
DescribeIdentityPoolResult & WithIdentityPoolId(const char *value)
const Aws::Vector< Aws::String > & GetOpenIdConnectProviderARNs() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetOpenIdConnectProviderARNs(Aws::Vector< Aws::String > &&value)
DescribeIdentityPoolResult & AddOpenIdConnectProviderARNs(Aws::String &&value)
DescribeIdentityPoolResult & WithAllowUnauthenticatedIdentities(bool value)
DescribeIdentityPoolResult & WithIdentityPoolName(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetSupportedLoginProviders() const
void SetCognitoIdentityProviders(const Aws::Vector< CognitoIdentityProvider > &value)
const Aws::Vector< CognitoIdentityProvider > & GetCognitoIdentityProviders() const
JSON (JavaScript Object Notation).