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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The name or the ARN of the resource group to add resources to.

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

The list of ARNs of the resources to be added to the group.

*/ inline const Aws::Vector& GetResourceArns() const{ return m_resourceArns; } /** *

The list of ARNs of the resources to be added to the group.

*/ inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; } /** *

The list of ARNs of the resources to be added to the group.

*/ inline void SetResourceArns(const Aws::Vector& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; } /** *

The list of ARNs of the resources to be added to the group.

*/ inline void SetResourceArns(Aws::Vector&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); } /** *

The list of ARNs of the resources to be added to the group.

*/ inline GroupResourcesRequest& WithResourceArns(const Aws::Vector& value) { SetResourceArns(value); return *this;} /** *

The list of ARNs of the resources to be added to the group.

*/ inline GroupResourcesRequest& WithResourceArns(Aws::Vector&& value) { SetResourceArns(std::move(value)); return *this;} /** *

The list of ARNs of the resources to be added to the group.

*/ inline GroupResourcesRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } /** *

The list of ARNs of the resources to be added to the group.

*/ inline GroupResourcesRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; } /** *

The list of ARNs of the resources to be added to the group.

*/ inline GroupResourcesRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; } private: Aws::String m_group; bool m_groupHasBeenSet = false; Aws::Vector m_resourceArns; bool m_resourceArnsHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws