AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetUserAttributeVerificationCodeRequest.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/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CognitoIdentityProvider
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_COGNITOIDENTITYPROVIDER_API GetUserAttributeVerificationCodeRequest() = 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 "GetUserAttributeVerificationCode"; }
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 GetUserAttributeVerificationCodeRequest& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
55
57
61 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
62 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
63 template<typename AttributeNameT = Aws::String>
64 void SetAttributeName(AttributeNameT&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::forward<AttributeNameT>(value); }
65 template<typename AttributeNameT = Aws::String>
66 GetUserAttributeVerificationCodeRequest& WithAttributeName(AttributeNameT&& value) { SetAttributeName(std::forward<AttributeNameT>(value)); return *this;}
68
70
94 inline const Aws::Map<Aws::String, Aws::String>& GetClientMetadata() const { return m_clientMetadata; }
95 inline bool ClientMetadataHasBeenSet() const { return m_clientMetadataHasBeenSet; }
96 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
97 void SetClientMetadata(ClientMetadataT&& value) { m_clientMetadataHasBeenSet = true; m_clientMetadata = std::forward<ClientMetadataT>(value); }
98 template<typename ClientMetadataT = Aws::Map<Aws::String, Aws::String>>
99 GetUserAttributeVerificationCodeRequest& WithClientMetadata(ClientMetadataT&& value) { SetClientMetadata(std::forward<ClientMetadataT>(value)); return *this;}
100 template<typename ClientMetadataKeyT = Aws::String, typename ClientMetadataValueT = Aws::String>
101 GetUserAttributeVerificationCodeRequest& AddClientMetadata(ClientMetadataKeyT&& key, ClientMetadataValueT&& value) {
102 m_clientMetadataHasBeenSet = true; m_clientMetadata.emplace(std::forward<ClientMetadataKeyT>(key), std::forward<ClientMetadataValueT>(value)); return *this;
103 }
105 private:
106
107 Aws::String m_accessToken;
108 bool m_accessTokenHasBeenSet = false;
109
110 Aws::String m_attributeName;
111 bool m_attributeNameHasBeenSet = false;
112
113 Aws::Map<Aws::String, Aws::String> m_clientMetadata;
114 bool m_clientMetadataHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CognitoIdentityProvider
119} // namespace Aws
GetUserAttributeVerificationCodeRequest & WithAttributeName(AttributeNameT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
GetUserAttributeVerificationCodeRequest & WithClientMetadata(ClientMetadataT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COGNITOIDENTITYPROVIDER_API GetUserAttributeVerificationCodeRequest()=default
GetUserAttributeVerificationCodeRequest & AddClientMetadata(ClientMetadataKeyT &&key, ClientMetadataValueT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String