AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
48 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
49 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
50 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
51 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
52 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
53 inline AddCustomAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
54 inline AddCustomAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
55 inline AddCustomAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
57
59
62 inline const Aws::Vector<SchemaAttributeType>& GetCustomAttributes() const{ return m_customAttributes; }
63 inline bool CustomAttributesHasBeenSet() const { return m_customAttributesHasBeenSet; }
64 inline void SetCustomAttributes(const Aws::Vector<SchemaAttributeType>& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
65 inline void SetCustomAttributes(Aws::Vector<SchemaAttributeType>&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = std::move(value); }
68 inline AddCustomAttributesRequest& AddCustomAttributes(const SchemaAttributeType& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(value); return *this; }
69 inline AddCustomAttributesRequest& AddCustomAttributes(SchemaAttributeType&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(std::move(value)); return *this; }
71 private:
72
73 Aws::String m_userPoolId;
74 bool m_userPoolIdHasBeenSet = false;
75
76 Aws::Vector<SchemaAttributeType> m_customAttributes;
77 bool m_customAttributesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CognitoIdentityProvider
82} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
const Aws::Vector< SchemaAttributeType > & GetCustomAttributes() const
AddCustomAttributesRequest & WithUserPoolId(const Aws::String &value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddCustomAttributesRequest & WithCustomAttributes(const Aws::Vector< SchemaAttributeType > &value)
AddCustomAttributesRequest & AddCustomAttributes(SchemaAttributeType &&value)
AddCustomAttributesRequest & WithUserPoolId(Aws::String &&value)
AddCustomAttributesRequest & WithCustomAttributes(Aws::Vector< SchemaAttributeType > &&value)
void SetCustomAttributes(const Aws::Vector< SchemaAttributeType > &value)
AddCustomAttributesRequest & AddCustomAttributes(const SchemaAttributeType &value)
void SetCustomAttributes(Aws::Vector< SchemaAttributeType > &&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