AWS SDK for C++  0.12.9
AWS SDK for C++
AdminSetUserSettingsRequest.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 AdminSetUserSettingsRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
69 
74  inline AdminSetUserSettingsRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
75 
80  inline AdminSetUserSettingsRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
81 
85  inline const Aws::String& GetUsername() const{ return m_username; }
86 
90  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
91 
95  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = value; }
96 
100  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
101 
105  inline AdminSetUserSettingsRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
106 
110  inline AdminSetUserSettingsRequest& WithUsername(Aws::String&& value) { SetUsername(value); return *this;}
111 
115  inline AdminSetUserSettingsRequest& WithUsername(const char* value) { SetUsername(value); return *this;}
116 
120  inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
121 
125  inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; }
126 
130  inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; }
131 
135  inline AdminSetUserSettingsRequest& WithMFAOptions(const Aws::Vector<MFAOptionType>& value) { SetMFAOptions(value); return *this;}
136 
140  inline AdminSetUserSettingsRequest& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(value); return *this;}
141 
145  inline AdminSetUserSettingsRequest& AddMFAOptions(const MFAOptionType& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; }
146 
150  inline AdminSetUserSettingsRequest& AddMFAOptions(MFAOptionType&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; }
151 
152  private:
153  Aws::String m_userPoolId;
154  bool m_userPoolIdHasBeenSet;
155  Aws::String m_username;
156  bool m_usernameHasBeenSet;
157  Aws::Vector<MFAOptionType> m_mFAOptions;
158  bool m_mFAOptionsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CognitoIdentityProvider
163 } // namespace Aws
AdminSetUserSettingsRequest & AddMFAOptions(MFAOptionType &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
AdminSetUserSettingsRequest & WithMFAOptions(Aws::Vector< MFAOptionType > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AdminSetUserSettingsRequest & WithUsername(const Aws::String &value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AdminSetUserSettingsRequest & WithUserPoolId(const Aws::String &value)
AdminSetUserSettingsRequest & WithMFAOptions(const Aws::Vector< MFAOptionType > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AdminSetUserSettingsRequest & WithUserPoolId(const char *value)
AdminSetUserSettingsRequest & WithUserPoolId(Aws::String &&value)
AdminSetUserSettingsRequest & AddMFAOptions(const MFAOptionType &value)
AdminSetUserSettingsRequest & WithUsername(Aws::String &&value)
JSON (JavaScript Object Notation).