AWS SDK for C++  0.12.9
AWS SDK for C++
AddCustomAttributesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace CognitoIdentityProvider
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
44  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
45 
50  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
51 
56  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
57 
62  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
63 
68  inline AddCustomAttributesRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
69 
74  inline AddCustomAttributesRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(value); return *this;}
75 
80  inline AddCustomAttributesRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
81 
85  inline const Aws::Vector<SchemaAttributeType>& GetCustomAttributes() const{ return m_customAttributes; }
86 
90  inline void SetCustomAttributes(const Aws::Vector<SchemaAttributeType>& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
91 
95  inline void SetCustomAttributes(Aws::Vector<SchemaAttributeType>&& value) { m_customAttributesHasBeenSet = true; m_customAttributes = value; }
96 
100  inline AddCustomAttributesRequest& WithCustomAttributes(const Aws::Vector<SchemaAttributeType>& value) { SetCustomAttributes(value); return *this;}
101 
105  inline AddCustomAttributesRequest& WithCustomAttributes(Aws::Vector<SchemaAttributeType>&& value) { SetCustomAttributes(value); return *this;}
106 
110  inline AddCustomAttributesRequest& AddCustomAttributes(const SchemaAttributeType& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(value); return *this; }
111 
115  inline AddCustomAttributesRequest& AddCustomAttributes(SchemaAttributeType&& value) { m_customAttributesHasBeenSet = true; m_customAttributes.push_back(value); return *this; }
116 
117  private:
118  Aws::String m_userPoolId;
119  bool m_userPoolIdHasBeenSet;
120  Aws::Vector<SchemaAttributeType> m_customAttributes;
121  bool m_customAttributesHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace CognitoIdentityProvider
126 } // namespace Aws
AddCustomAttributesRequest & WithUserPoolId(const Aws::String &value)
void SetCustomAttributes(Aws::Vector< SchemaAttributeType > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
AddCustomAttributesRequest & WithUserPoolId(const char *value)
void SetCustomAttributes(const Aws::Vector< SchemaAttributeType > &value)
const Aws::Vector< SchemaAttributeType > & GetCustomAttributes() const
AddCustomAttributesRequest & AddCustomAttributes(SchemaAttributeType &&value)
#define AWS_COGNITOIDENTITYPROVIDER_API
AddCustomAttributesRequest & WithCustomAttributes(const Aws::Vector< SchemaAttributeType > &value)
AddCustomAttributesRequest & WithUserPoolId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddCustomAttributesRequest & WithCustomAttributes(Aws::Vector< SchemaAttributeType > &&value)
AddCustomAttributesRequest & AddCustomAttributes(const SchemaAttributeType &value)
JSON (JavaScript Object Notation).