AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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