AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddCustomAttributesRequest.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/SchemaAttributeType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CognitoIdentityProvider
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_COGNITOIDENTITYPROVIDER_API AddCustomAttributesRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AddCustomAttributes"; }
37
38 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
39
40 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
48 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
49 template<typename UserPoolIdT = Aws::String>
50 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
51 template<typename UserPoolIdT = Aws::String>
52 AddCustomAttributesRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
54
56
74 inline const Aws::Vector<SchemaAttributeType>& GetCustomAttributes() const { return m_customAttributes; }
75 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
76 template<typename CustomAttributesT = Aws::Vector<SchemaAttributeType>>
77 void SetCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::forward<CustomAttributesT>(value); }
78 template<typename CustomAttributesT = Aws::Vector<SchemaAttributeType>>
79 AddCustomAttributesRequest& WithCustomAttributes(CustomAttributesT&& value) { SetCustomAttributes(std::forward<CustomAttributesT>(value)); return *this;}
80 template<typename CustomAttributesT = SchemaAttributeType>
81 AddCustomAttributesRequest& AddCustomAttributes(CustomAttributesT&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value)); return *this; }
83 private:
84
85 Aws::String m_userPoolId;
86 bool m_userPoolIdHasBeenSet = false;
87
88 Aws::Vector<SchemaAttributeType> m_customAttributes;
89 bool m_customAttributesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CognitoIdentityProvider
94} // namespace Aws
AddCustomAttributesRequest & WithCustomAttributes(CustomAttributesT &&value)
AddCustomAttributesRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
AddCustomAttributesRequest & AddCustomAttributes(CustomAttributesT &&value)
const Aws::Vector< SchemaAttributeType > & GetCustomAttributes() const
AWS_COGNITOIDENTITYPROVIDER_API AddCustomAttributesRequest()=default
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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