This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-cognito-idp/include/aws/cognito-idp/model/UpdateGroupRequest.h

266 lines
9.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CognitoIdentityProvider
{
namespace Model
{
/**
*/
class AWS_COGNITOIDENTITYPROVIDER_API UpdateGroupRequest : public CognitoIdentityProviderRequest
{
public:
UpdateGroupRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateGroup"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name of the group.</p>
*/
inline const Aws::String& GetGroupName() const{ return m_groupName; }
/**
* <p>The name of the group.</p>
*/
inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
/**
* <p>The name of the group.</p>
*/
inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
/**
* <p>The name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
/**
* <p>The name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
/**
* <p>The name of the group.</p>
*/
inline UpdateGroupRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
/**
* <p>The user pool ID for the user pool.</p>
*/
inline UpdateGroupRequest& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline UpdateGroupRequest& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
/**
* <p>The user pool ID for the user pool.</p>
*/
inline UpdateGroupRequest& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
/**
* <p>A string containing the new description of the group.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A string containing the new description of the group.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A string containing the new description of the group.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A string containing the new description of the group.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A string containing the new description of the group.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A string containing the new description of the group.</p>
*/
inline UpdateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A string containing the new description of the group.</p>
*/
inline UpdateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A string containing the new description of the group.</p>
*/
inline UpdateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline UpdateGroupRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline UpdateGroupRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The new role ARN for the group. This is used for setting the
* <code>cognito:roles</code> and <code>cognito:preferred_role</code> claims in the
* token.</p>
*/
inline UpdateGroupRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The new precedence value for the group. For more information about this
* parameter, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
*/
inline int GetPrecedence() const{ return m_precedence; }
/**
* <p>The new precedence value for the group. For more information about this
* parameter, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
*/
inline bool PrecedenceHasBeenSet() const { return m_precedenceHasBeenSet; }
/**
* <p>The new precedence value for the group. For more information about this
* parameter, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
*/
inline void SetPrecedence(int value) { m_precedenceHasBeenSet = true; m_precedence = value; }
/**
* <p>The new precedence value for the group. For more information about this
* parameter, see <a
* href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_CreateGroup.html">CreateGroup</a>.</p>
*/
inline UpdateGroupRequest& WithPrecedence(int value) { SetPrecedence(value); return *this;}
private:
Aws::String m_groupName;
bool m_groupNameHasBeenSet;
Aws::String m_userPoolId;
bool m_userPoolIdHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
int m_precedence;
bool m_precedenceHasBeenSet;
};
} // namespace Model
} // namespace CognitoIdentityProvider
} // namespace Aws