AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
44 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
45 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
46 inline CreateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
47 inline CreateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
48 inline CreateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
50
52
55 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
56 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
57 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
58 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
59 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
60 inline CreateGroupRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
61 inline CreateGroupRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
62 inline CreateGroupRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
64
66
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline CreateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline CreateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline CreateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
78
80
83 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
84 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
85 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
86 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
87 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
88 inline CreateGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
89 inline CreateGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
90 inline CreateGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
92
94
111 inline int GetPrecedence() const{ return m_precedence; }
112 inline bool PrecedenceHasBeenSet() const { return m_precedenceHasBeenSet; }
113 inline void SetPrecedence(int value) { m_precedenceHasBeenSet = true; m_precedence = value; }
114 inline CreateGroupRequest& WithPrecedence(int value) { SetPrecedence(value); return *this;}
116 private:
117
118 Aws::String m_groupName;
119 bool m_groupNameHasBeenSet = false;
120
121 Aws::String m_userPoolId;
122 bool m_userPoolIdHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::String m_roleArn;
128 bool m_roleArnHasBeenSet = false;
129
130 int m_precedence;
131 bool m_precedenceHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CognitoIdentityProvider
136} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
CreateGroupRequest & WithUserPoolId(const char *value)
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & WithRoleArn(Aws::String &&value)
CreateGroupRequest & WithRoleArn(const char *value)
CreateGroupRequest & WithGroupName(const Aws::String &value)
CreateGroupRequest & WithUserPoolId(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGroupRequest & WithGroupName(Aws::String &&value)
AWS_COGNITOIDENTITYPROVIDER_API CreateGroupRequest()
CreateGroupRequest & WithDescription(const char *value)
CreateGroupRequest & WithRoleArn(const Aws::String &value)
CreateGroupRequest & WithDescription(const Aws::String &value)
CreateGroupRequest & WithGroupName(const char *value)
CreateGroupRequest & WithUserPoolId(const Aws::String &value)
CreateGroupRequest & WithDescription(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String