AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
47 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
48 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
49 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
50 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
51 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
52 inline SetUserSettingsRequest& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;}
53 inline SetUserSettingsRequest& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
54 inline SetUserSettingsRequest& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
56
58
62 inline const Aws::Vector<MFAOptionType>& GetMFAOptions() const{ return m_mFAOptions; }
63 inline bool MFAOptionsHasBeenSet() const { return m_mFAOptionsHasBeenSet; }
64 inline void SetMFAOptions(const Aws::Vector<MFAOptionType>& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = value; }
65 inline void SetMFAOptions(Aws::Vector<MFAOptionType>&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions = std::move(value); }
67 inline SetUserSettingsRequest& WithMFAOptions(Aws::Vector<MFAOptionType>&& value) { SetMFAOptions(std::move(value)); return *this;}
68 inline SetUserSettingsRequest& AddMFAOptions(const MFAOptionType& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(value); return *this; }
69 inline SetUserSettingsRequest& AddMFAOptions(MFAOptionType&& value) { m_mFAOptionsHasBeenSet = true; m_mFAOptions.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_accessToken;
74 bool m_accessTokenHasBeenSet = false;
75
76 Aws::Vector<MFAOptionType> m_mFAOptions;
77 bool m_mFAOptionsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CognitoIdentityProvider
82} // namespace Aws
void SetMFAOptions(const Aws::Vector< MFAOptionType > &value)
SetUserSettingsRequest & WithAccessToken(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
SetUserSettingsRequest & WithAccessToken(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetUserSettingsRequest & AddMFAOptions(MFAOptionType &&value)
SetUserSettingsRequest & WithMFAOptions(Aws::Vector< MFAOptionType > &&value)
const Aws::Vector< MFAOptionType > & GetMFAOptions() const
AWS_COGNITOIDENTITYPROVIDER_API SetUserSettingsRequest()
SetUserSettingsRequest & AddMFAOptions(const MFAOptionType &value)
SetUserSettingsRequest & WithMFAOptions(const Aws::Vector< MFAOptionType > &value)
SetUserSettingsRequest & WithAccessToken(const char *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