AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
AddCustomAttributesRequest.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/SchemaAttributeType.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
26 public:
27 AWS_COGNITOIDENTITYPROVIDER_API AddCustomAttributesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AddCustomAttributes"; }
34
35 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
36
37 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
43 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
44 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
45 template <typename UserPoolIdT = Aws::String>
46 void SetUserPoolId(UserPoolIdT&& value) {
47 m_userPoolIdHasBeenSet = true;
48 m_userPoolId = std::forward<UserPoolIdT>(value);
49 }
50 template <typename UserPoolIdT = Aws::String>
52 SetUserPoolId(std::forward<UserPoolIdT>(value));
53 return *this;
54 }
56
58
76 inline const Aws::Vector<SchemaAttributeType>& GetCustomAttributes() const { return m_customAttributes; }
77 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
78 template <typename CustomAttributesT = Aws::Vector<SchemaAttributeType>>
79 void SetCustomAttributes(CustomAttributesT&& value) {
80 m_customAttributesHasBeenSet = true;
81 m_customAttributes = std::forward<CustomAttributesT>(value);
82 }
83 template <typename CustomAttributesT = Aws::Vector<SchemaAttributeType>>
85 SetCustomAttributes(std::forward<CustomAttributesT>(value));
86 return *this;
87 }
88 template <typename CustomAttributesT = SchemaAttributeType>
89 AddCustomAttributesRequest& AddCustomAttributes(CustomAttributesT&& value) {
90 m_customAttributesHasBeenSet = true;
91 m_customAttributes.emplace_back(std::forward<CustomAttributesT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_userPoolId;
97
98 Aws::Vector<SchemaAttributeType> m_customAttributes;
99 bool m_userPoolIdHasBeenSet = false;
100 bool m_customAttributesHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CognitoIdentityProvider
105} // 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