AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGroupRequest.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 <utility>
11
12namespace Aws
13{
14namespace CognitoIdentityProvider
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API CreateGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetGroupName() const { return m_groupName; }
42 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
43 template<typename GroupNameT = Aws::String>
44 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
45 template<typename GroupNameT = Aws::String>
46 CreateGroupRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
54 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
55 template<typename UserPoolIdT = Aws::String>
56 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
57 template<typename UserPoolIdT = Aws::String>
58 CreateGroupRequest& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 CreateGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
83 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
84 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
85 template<typename RoleArnT = Aws::String>
86 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
87 template<typename RoleArnT = Aws::String>
88 CreateGroupRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
90
92
109 inline int GetPrecedence() const { return m_precedence; }
110 inline bool PrecedenceHasBeenSet() const { return m_precedenceHasBeenSet; }
111 inline void SetPrecedence(int value) { m_precedenceHasBeenSet = true; m_precedence = value; }
112 inline CreateGroupRequest& WithPrecedence(int value) { SetPrecedence(value); return *this;}
114 private:
115
116 Aws::String m_groupName;
117 bool m_groupNameHasBeenSet = false;
118
119 Aws::String m_userPoolId;
120 bool m_userPoolIdHasBeenSet = false;
121
122 Aws::String m_description;
123 bool m_descriptionHasBeenSet = false;
124
125 Aws::String m_roleArn;
126 bool m_roleArnHasBeenSet = false;
127
128 int m_precedence{0};
129 bool m_precedenceHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CognitoIdentityProvider
134} // namespace Aws
CreateGroupRequest & WithRoleArn(RoleArnT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
CreateGroupRequest & WithGroupName(GroupNameT &&value)
CreateGroupRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGroupRequest & WithUserPoolId(UserPoolIdT &&value)
AWS_COGNITOIDENTITYPROVIDER_API CreateGroupRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String