AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateUserPoolClientRequest.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 UpdateUserPoolClientRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
69 
74  inline UpdateUserPoolClientRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
75 
80  inline UpdateUserPoolClientRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
81 
85  inline const Aws::String& GetClientId() const{ return m_clientId; }
86 
90  inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
91 
95  inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
96 
100  inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
101 
105  inline UpdateUserPoolClientRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
106 
110  inline UpdateUserPoolClientRequest& WithClientId(Aws::String&& value) { SetClientId(value); return *this;}
111 
115  inline UpdateUserPoolClientRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
116 
120  inline const Aws::String& GetClientName() const{ return m_clientName; }
121 
125  inline void SetClientName(const Aws::String& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
126 
130  inline void SetClientName(Aws::String&& value) { m_clientNameHasBeenSet = true; m_clientName = value; }
131 
135  inline void SetClientName(const char* value) { m_clientNameHasBeenSet = true; m_clientName.assign(value); }
136 
140  inline UpdateUserPoolClientRequest& WithClientName(const Aws::String& value) { SetClientName(value); return *this;}
141 
145  inline UpdateUserPoolClientRequest& WithClientName(Aws::String&& value) { SetClientName(value); return *this;}
146 
150  inline UpdateUserPoolClientRequest& WithClientName(const char* value) { SetClientName(value); return *this;}
151 
155  inline int GetRefreshTokenValidity() const{ return m_refreshTokenValidity; }
156 
160  inline void SetRefreshTokenValidity(int value) { m_refreshTokenValidityHasBeenSet = true; m_refreshTokenValidity = value; }
161 
165  inline UpdateUserPoolClientRequest& WithRefreshTokenValidity(int value) { SetRefreshTokenValidity(value); return *this;}
166 
170  inline const Aws::Vector<Aws::String>& GetReadAttributes() const{ return m_readAttributes; }
171 
175  inline void SetReadAttributes(const Aws::Vector<Aws::String>& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
176 
180  inline void SetReadAttributes(Aws::Vector<Aws::String>&& value) { m_readAttributesHasBeenSet = true; m_readAttributes = value; }
181 
185  inline UpdateUserPoolClientRequest& WithReadAttributes(const Aws::Vector<Aws::String>& value) { SetReadAttributes(value); return *this;}
186 
190  inline UpdateUserPoolClientRequest& WithReadAttributes(Aws::Vector<Aws::String>&& value) { SetReadAttributes(value); return *this;}
191 
195  inline UpdateUserPoolClientRequest& AddReadAttributes(const Aws::String& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
196 
200  inline UpdateUserPoolClientRequest& AddReadAttributes(Aws::String&& value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
201 
205  inline UpdateUserPoolClientRequest& AddReadAttributes(const char* value) { m_readAttributesHasBeenSet = true; m_readAttributes.push_back(value); return *this; }
206 
210  inline const Aws::Vector<Aws::String>& GetWriteAttributes() const{ return m_writeAttributes; }
211 
215  inline void SetWriteAttributes(const Aws::Vector<Aws::String>& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
216 
220  inline void SetWriteAttributes(Aws::Vector<Aws::String>&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes = value; }
221 
225  inline UpdateUserPoolClientRequest& WithWriteAttributes(const Aws::Vector<Aws::String>& value) { SetWriteAttributes(value); return *this;}
226 
230  inline UpdateUserPoolClientRequest& WithWriteAttributes(Aws::Vector<Aws::String>&& value) { SetWriteAttributes(value); return *this;}
231 
235  inline UpdateUserPoolClientRequest& AddWriteAttributes(const Aws::String& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
236 
240  inline UpdateUserPoolClientRequest& AddWriteAttributes(Aws::String&& value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
241 
245  inline UpdateUserPoolClientRequest& AddWriteAttributes(const char* value) { m_writeAttributesHasBeenSet = true; m_writeAttributes.push_back(value); return *this; }
246 
250  inline const Aws::Vector<ExplicitAuthFlowsType>& GetExplicitAuthFlows() const{ return m_explicitAuthFlows; }
251 
255  inline void SetExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
256 
260  inline void SetExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows = value; }
261 
265  inline UpdateUserPoolClientRequest& WithExplicitAuthFlows(const Aws::Vector<ExplicitAuthFlowsType>& value) { SetExplicitAuthFlows(value); return *this;}
266 
270  inline UpdateUserPoolClientRequest& WithExplicitAuthFlows(Aws::Vector<ExplicitAuthFlowsType>&& value) { SetExplicitAuthFlows(value); return *this;}
271 
275  inline UpdateUserPoolClientRequest& AddExplicitAuthFlows(const ExplicitAuthFlowsType& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
276 
280  inline UpdateUserPoolClientRequest& AddExplicitAuthFlows(ExplicitAuthFlowsType&& value) { m_explicitAuthFlowsHasBeenSet = true; m_explicitAuthFlows.push_back(value); return *this; }
281 
282  private:
283  Aws::String m_userPoolId;
284  bool m_userPoolIdHasBeenSet;
285  Aws::String m_clientId;
286  bool m_clientIdHasBeenSet;
287  Aws::String m_clientName;
288  bool m_clientNameHasBeenSet;
289  int m_refreshTokenValidity;
290  bool m_refreshTokenValidityHasBeenSet;
291  Aws::Vector<Aws::String> m_readAttributes;
292  bool m_readAttributesHasBeenSet;
293  Aws::Vector<Aws::String> m_writeAttributes;
294  bool m_writeAttributesHasBeenSet;
295  Aws::Vector<ExplicitAuthFlowsType> m_explicitAuthFlows;
296  bool m_explicitAuthFlowsHasBeenSet;
297  };
298 
299 } // namespace Model
300 } // namespace CognitoIdentityProvider
301 } // namespace Aws
UpdateUserPoolClientRequest & WithUserPoolId(const Aws::String &value)
UpdateUserPoolClientRequest & AddReadAttributes(Aws::String &&value)
UpdateUserPoolClientRequest & WithClientName(const Aws::String &value)
UpdateUserPoolClientRequest & AddExplicitAuthFlows(ExplicitAuthFlowsType &&value)
UpdateUserPoolClientRequest & WithUserPoolId(Aws::String &&value)
UpdateUserPoolClientRequest & AddWriteAttributes(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::Vector< ExplicitAuthFlowsType > & GetExplicitAuthFlows() const
UpdateUserPoolClientRequest & WithReadAttributes(Aws::Vector< Aws::String > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateUserPoolClientRequest & AddExplicitAuthFlows(const ExplicitAuthFlowsType &value)
UpdateUserPoolClientRequest & AddWriteAttributes(const Aws::String &value)
UpdateUserPoolClientRequest & WithReadAttributes(const Aws::Vector< Aws::String > &value)
UpdateUserPoolClientRequest & WithExplicitAuthFlows(Aws::Vector< ExplicitAuthFlowsType > &&value)
UpdateUserPoolClientRequest & WithClientName(Aws::String &&value)
UpdateUserPoolClientRequest & AddReadAttributes(const char *value)
#define AWS_COGNITOIDENTITYPROVIDER_API
UpdateUserPoolClientRequest & WithClientId(const Aws::String &value)
void SetExplicitAuthFlows(Aws::Vector< ExplicitAuthFlowsType > &&value)
UpdateUserPoolClientRequest & WithClientId(Aws::String &&value)
UpdateUserPoolClientRequest & WithWriteAttributes(const Aws::Vector< Aws::String > &value)
UpdateUserPoolClientRequest & AddWriteAttributes(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateUserPoolClientRequest & AddReadAttributes(const Aws::String &value)
UpdateUserPoolClientRequest & WithExplicitAuthFlows(const Aws::Vector< ExplicitAuthFlowsType > &value)
UpdateUserPoolClientRequest & WithWriteAttributes(Aws::Vector< Aws::String > &&value)
void SetExplicitAuthFlows(const Aws::Vector< ExplicitAuthFlowsType > &value)
JSON (JavaScript Object Notation).
UpdateUserPoolClientRequest & WithUserPoolId(const char *value)