/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CognitoIdentityProvider { namespace Model { /** *

Represents the request to set user settings.

See Also:

AWS * API Reference

*/ class SetUserSettingsRequest : public CognitoIdentityProviderRequest { public: AWS_COGNITOIDENTITYPROVIDER_API SetUserSettingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SetUserSettings"; } AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline SetUserSettingsRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline SetUserSettingsRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *

A valid access token that Amazon Cognito issued to the user whose user * settings you want to configure.

*/ inline SetUserSettingsRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline const Aws::Vector& GetMFAOptions() const{ return m_mFAOptions; } /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; } /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline void SetMFAOptions(const Aws::Vector& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; } /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline void SetMFAOptions(Aws::Vector&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::move(value); } /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline SetUserSettingsRequest& WithMFAOptions(const Aws::Vector& value) { SetMFAOptions(value); return *this;} /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline SetUserSettingsRequest& WithMFAOptions(Aws::Vector&& value) { SetMFAOptions(std::move(value)); return *this;} /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline SetUserSettingsRequest& AddMFAOptions(const MFAOptionType& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; } /** *

You can use this parameter only to set an SMS configuration that uses SMS for * delivery.

*/ inline SetUserSettingsRequest& AddMFAOptions(MFAOptionType&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(std::move(value)); return *this; } private: Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::Vector m_mFAOptions; bool m_mFAOptionsHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws