AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SetUserSettingsRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cognito-idp/model/MFAOptionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentityProvider
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_COGNITOIDENTITYPROVIDER_API SetUserSettingsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "SetUserSettings"; }
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
38
39 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
49 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
50 template<typename AccessTokenT = Aws::String>
51 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
52 template<typename AccessTokenT = Aws::String>
53 SetUserSettingsRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
55
57
61 inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const { return m_mFAOptions; }
62 inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
63 template<typename MFAOptionsT = Aws::Vector<MFAOptionType>>
64 void SetMFAOptions(MFAOptionsT&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::forward<MFAOptionsT>(value); }
65 template<typename MFAOptionsT = Aws::Vector<MFAOptionType>>
66 SetUserSettingsRequest& WithMFAOptions(MFAOptionsT&& value) { SetMFAOptions(std::forward<MFAOptionsT>(value)); return *this;}
67 template<typename MFAOptionsT = MFAOptionType>
68 SetUserSettingsRequest& AddMFAOptions(MFAOptionsT&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.emplace_back(std::forward<MFAOptionsT>(value)); return *this; }
70 private:
71
72 Aws::String m_accessToken;
73 bool m_accessTokenHasBeenSet = false;
74
75 Aws::Vector<MFAOptionType> m_mFAOptions;
76 bool m_mFAOptionsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace CognitoIdentityProvider
81} // namespace Aws
SetUserSettingsRequest & WithMFAOptions(MFAOptionsT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API SetUserSettingsRequest()=default
SetUserSettingsRequest & WithAccessToken(AccessTokenT &&value)
const Aws::Vector< MFAOptionType > & GetMFAOptions() const
SetUserSettingsRequest & AddMFAOptions(MFAOptionsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector