/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ResourceGroups { namespace Model { /** */ class UpdateGroupRequest : public ResourceGroupsRequest { public: AWS_RESOURCEGROUPS_API 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_RESOURCEGROUPS_API Aws::String SerializePayload() const override; /** *

The name or the ARN of the resource group to modify.

*/ inline const Aws::String& GetGroup() const{ return m_group; } /** *

The name or the ARN of the resource group to modify.

*/ inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; } /** *

The name or the ARN of the resource group to modify.

*/ inline void SetGroup(const Aws::String& value) { m_groupHasBeenSet = true; m_group = value; } /** *

The name or the ARN of the resource group to modify.

*/ inline void SetGroup(Aws::String&& value) { m_groupHasBeenSet = true; m_group = std::move(value); } /** *

The name or the ARN of the resource group to modify.

*/ inline void SetGroup(const char* value) { m_groupHasBeenSet = true; m_group.assign(value); } /** *

The name or the ARN of the resource group to modify.

*/ inline UpdateGroupRequest& WithGroup(const Aws::String& value) { SetGroup(value); return *this;} /** *

The name or the ARN of the resource group to modify.

*/ inline UpdateGroupRequest& WithGroup(Aws::String&& value) { SetGroup(std::move(value)); return *this;} /** *

The name or the ARN of the resource group to modify.

*/ inline UpdateGroupRequest& WithGroup(const char* value) { SetGroup(value); return *this;} /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline UpdateGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline UpdateGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The new description that you want to update the resource group with. * Descriptions can contain letters, numbers, hyphens, underscores, periods, and * spaces.

*/ inline UpdateGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_group; bool m_groupHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws