AWS SDK for C++  0.14.3
AWS SDK for C++
CreateUserPoolClientRequest.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 namespace CognitoIdentityProvider
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
45 
50  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
51 
56  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
57 
62  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
63 
68  inline CreateUserPoolClientRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
69 
74  inline CreateUserPoolClientRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
75 
80  inline CreateUserPoolClientRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
81 
85  inline const Aws::String& GetClientName() const{ return m_clientName; }
86 
90  inline void SetClientName(const Aws::String& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
91 
95  inline void SetClientName(Aws::String&& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
96 
100  inline void SetClientName(const char* value) { m_clientNameHasBeenSet = true; m_clientName.assign(value); }
101 
105  inline CreateUserPoolClientRequest& WithClientName(const Aws::String& value) { SetClientName(value); return *this;}
106 
110  inline CreateUserPoolClientRequest& WithClientName(Aws::String&& value) { SetClientName(value); return *this;}
111 
115  inline CreateUserPoolClientRequest& WithClientName(const char* value) { SetClientName(value); return *this;}
116 
121  inline bool GetGenerateSecret() const{ return m_generateSecret; }
122 
127  inline void SetGenerateSecret(bool value) { m_generateSecretHasBeenSet = true; m_generateSecret = value; }
128 
133  inline CreateUserPoolClientRequest& WithGenerateSecret(bool value) { SetGenerateSecret(value); return *this;}
134 
138  inline int GetRefreshTokenValidity() const{ return m_refreshTokenValidity; }
139 
143  inline void SetRefreshTokenValidity(int value) { m_refreshTokenValidityHasBeenSet = true; m_refreshTokenValidity = value; }
144 
148  inline CreateUserPoolClientRequest& WithRefreshTokenValidity(int value) { SetRefreshTokenValidity(value); return *this;}
149 
153  inline const Aws::Vector<Aws::String>& GetReadAttributes() const{ return m_readAttributes; }
154 
158  inline void SetReadAttributes(const Aws::Vector<Aws::String>& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
159 
163  inline void SetReadAttributes(Aws::Vector<Aws::String>&& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
164 
168  inline CreateUserPoolClientRequest& WithReadAttributes(const Aws::Vector<Aws::String>& value) { SetReadAttributes(value); return *this;}
169 
173  inline CreateUserPoolClientRequest& WithReadAttributes(Aws::Vector<Aws::String>&& value) { SetReadAttributes(value); return *this;}
174 
178  inline CreateUserPoolClientRequest& AddReadAttributes(const Aws::String& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
179 
183  inline CreateUserPoolClientRequest& AddReadAttributes(Aws::String&& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
184 
188  inline CreateUserPoolClientRequest& AddReadAttributes(const char* value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
189 
193  inline const Aws::Vector<Aws::String>& GetWriteAttributes() const{ return m_writeAttributes; }
194 
198  inline void SetWriteAttributes(const Aws::Vector<Aws::String>& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
199 
203  inline void SetWriteAttributes(Aws::Vector<Aws::String>&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
204 
208  inline CreateUserPoolClientRequest& WithWriteAttributes(const Aws::Vector<Aws::String>& value) { SetWriteAttributes(value); return *this;}
209 
213  inline CreateUserPoolClientRequest& WithWriteAttributes(Aws::Vector<Aws::String>&& value) { SetWriteAttributes(value); return *this;}
214 
218  inline CreateUserPoolClientRequest& AddWriteAttributes(const Aws::String& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
219 
223  inline CreateUserPoolClientRequest& AddWriteAttributes(Aws::String&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
224 
228  inline CreateUserPoolClientRequest& AddWriteAttributes(const char* value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
229 
233  inline const Aws::Vector<ExplicitAuthFlowsType>& GetExplicitAuthFlows() const{ return m_explicitAuthFlows; }
234 
238  inline void SetExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
239 
243  inline void SetExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
244 
248  inline CreateUserPoolClientRequest& WithExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { SetExplicitAuthFlows(value); return *this;}
249 
253  inline CreateUserPoolClientRequest& WithExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { SetExplicitAuthFlows(value); return *this;}
254 
258  inline CreateUserPoolClientRequest& AddExplicitAuthFlows(const ExplicitAuthFlowsType& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
259 
263  inline CreateUserPoolClientRequest& AddExplicitAuthFlows(ExplicitAuthFlowsType&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
264 
265  private:
266  Aws::String m_userPoolId;
267  bool m_userPoolIdHasBeenSet;
268  Aws::String m_clientName;
269  bool m_clientNameHasBeenSet;
270  bool m_generateSecret;
271  bool m_generateSecretHasBeenSet;
272  int m_refreshTokenValidity;
273  bool m_refreshTokenValidityHasBeenSet;
274  Aws::Vector<Aws::String> m_readAttributes;
275  bool m_readAttributesHasBeenSet;
276  Aws::Vector<Aws::String> m_writeAttributes;
277  bool m_writeAttributesHasBeenSet;
278  Aws::Vector<ExplicitAuthFlowsType> m_explicitAuthFlows;
279  bool m_explicitAuthFlowsHasBeenSet;
280  };
281 
282 } // namespace Model
283 } // namespace CognitoIdentityProvider
284 } // namespace Aws
CreateUserPoolClientRequest & WithExplicitAuthFlows(Aws::Vector< ExplicitAuthFlowsType > &&value)
CreateUserPoolClientRequest & AddWriteAttributes(const Aws::String &value)
CreateUserPoolClientRequest & WithReadAttributes(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateUserPoolClientRequest & AddExplicitAuthFlows(const ExplicitAuthFlowsType &value)
CreateUserPoolClientRequest & AddReadAttributes(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetExplicitAuthFlows(const Aws::Vector< ExplicitAuthFlowsType > &value)
CreateUserPoolClientRequest & WithWriteAttributes(Aws::Vector< Aws::String > &&value)
CreateUserPoolClientRequest & AddReadAttributes(const Aws::String &value)
CreateUserPoolClientRequest & WithWriteAttributes(const Aws::Vector< Aws::String > &value)
CreateUserPoolClientRequest & WithUserPoolId(const char *value)
CreateUserPoolClientRequest & AddWriteAttributes(Aws::String &&value)
CreateUserPoolClientRequest & WithExplicitAuthFlows(const Aws::Vector< ExplicitAuthFlowsType > &value)
CreateUserPoolClientRequest & WithClientName(Aws::String &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
CreateUserPoolClientRequest & WithUserPoolId(Aws::String &&value)
CreateUserPoolClientRequest & WithReadAttributes(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetExplicitAuthFlows(Aws::Vector< ExplicitAuthFlowsType > &&value)
CreateUserPoolClientRequest & WithUserPoolId(const Aws::String &value)
CreateUserPoolClientRequest & AddReadAttributes(Aws::String &&value)
CreateUserPoolClientRequest & AddWriteAttributes(const char *value)
const Aws::Vector< ExplicitAuthFlowsType > & GetExplicitAuthFlows() const
CreateUserPoolClientRequest & WithClientName(const Aws::String &value)
CreateUserPoolClientRequest & AddExplicitAuthFlows(ExplicitAuthFlowsType &&value)
JSON (JavaScript Object Notation).