AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateUserAttributesRequest.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 
43  inline const Aws::Vector<AttributeType>& GetUserAttributes() const{ return m_userAttributes; }
44 
48  inline void SetUserAttributes(const Aws::Vector<AttributeType>& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
49 
53  inline void SetUserAttributes(Aws::Vector<AttributeType>&& value) { m_userAttributesHasBeenSet = true; m_userAttributes = value; }
54 
58  inline UpdateUserAttributesRequest& WithUserAttributes(const Aws::Vector<AttributeType>& value) { SetUserAttributes(value); return *this;}
59 
63  inline UpdateUserAttributesRequest& WithUserAttributes(Aws::Vector<AttributeType>&& value) { SetUserAttributes(value); return *this;}
64 
68  inline UpdateUserAttributesRequest& AddUserAttributes(const AttributeType& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
69 
73  inline UpdateUserAttributesRequest& AddUserAttributes(AttributeType&& value) { m_userAttributesHasBeenSet = true; m_userAttributes.push_back(value); return *this; }
74 
78  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
79 
83  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
84 
88  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
89 
93  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
94 
98  inline UpdateUserAttributesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
99 
103  inline UpdateUserAttributesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(value); return *this;}
104 
108  inline UpdateUserAttributesRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
109 
110  private:
111  Aws::Vector<AttributeType> m_userAttributes;
112  bool m_userAttributesHasBeenSet;
113  Aws::String m_accessToken;
114  bool m_accessTokenHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CognitoIdentityProvider
119 } // namespace Aws
UpdateUserAttributesRequest & WithAccessToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateUserAttributesRequest & AddUserAttributes(AttributeType &&value)
UpdateUserAttributesRequest & WithAccessToken(Aws::String &&value)
void SetUserAttributes(const Aws::Vector< AttributeType > &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
UpdateUserAttributesRequest & WithAccessToken(const Aws::String &value)
UpdateUserAttributesRequest & WithUserAttributes(const Aws::Vector< AttributeType > &value)
UpdateUserAttributesRequest & WithUserAttributes(Aws::Vector< AttributeType > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateUserAttributesRequest & AddUserAttributes(const AttributeType &value)
JSON (JavaScript Object Notation).