AWS SDK for C++  0.12.9
AWS SDK for C++
DeleteUserAttributesRequest.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 CognitoIdentityProvider
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::Vector<Aws::String>& GetUserAttributeNames() const{ return m_userAttributeNames; }
44 
49  inline void SetUserAttributeNames(const Aws::Vector<Aws::String>& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = value; }
50 
55  inline void SetUserAttributeNames(Aws::Vector<Aws::String>&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames = value; }
56 
61  inline DeleteUserAttributesRequest& WithUserAttributeNames(const Aws::Vector<Aws::String>& value) { SetUserAttributeNames(value); return *this;}
62 
67  inline DeleteUserAttributesRequest& WithUserAttributeNames(Aws::Vector<Aws::String>&& value) { SetUserAttributeNames(value); return *this;}
68 
73  inline DeleteUserAttributesRequest& AddUserAttributeNames(const Aws::String& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
74 
79  inline DeleteUserAttributesRequest& AddUserAttributeNames(Aws::String&& value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
80 
85  inline DeleteUserAttributesRequest& AddUserAttributeNames(const char* value) { m_userAttributeNamesHasBeenSet = true; m_userAttributeNames.push_back(value); return *this; }
86 
90  inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
91 
95  inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
96 
100  inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
101 
105  inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
106 
110  inline DeleteUserAttributesRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
111 
115  inline DeleteUserAttributesRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(value); return *this;}
116 
120  inline DeleteUserAttributesRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
121 
122  private:
123  Aws::Vector<Aws::String> m_userAttributeNames;
124  bool m_userAttributeNamesHasBeenSet;
125  Aws::String m_accessToken;
126  bool m_accessTokenHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace CognitoIdentityProvider
131 } // namespace Aws
DeleteUserAttributesRequest & WithAccessToken(const char *value)
DeleteUserAttributesRequest & AddUserAttributeNames(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DeleteUserAttributesRequest & WithAccessToken(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
DeleteUserAttributesRequest & WithUserAttributeNames(Aws::Vector< Aws::String > &&value)
DeleteUserAttributesRequest & AddUserAttributeNames(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteUserAttributesRequest & AddUserAttributeNames(Aws::String &&value)
DeleteUserAttributesRequest & WithAccessToken(Aws::String &&value)
JSON (JavaScript Object Notation).
DeleteUserAttributesRequest & WithUserAttributeNames(const Aws::Vector< Aws::String > &value)