/** * 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 UpdateGroupQueryRequest : public ResourceGroupsRequest { public: AWS_RESOURCEGROUPS_API UpdateGroupQueryRequest(); // 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 "UpdateGroupQuery"; } AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override; /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline const ResourceQuery& GetResourceQuery() const{ return m_resourceQuery; } /** *

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; } /** *

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline void SetResourceQuery(const ResourceQuery& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = value; } /** *

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline void SetResourceQuery(ResourceQuery&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::move(value); } /** *

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline UpdateGroupQueryRequest& WithResourceQuery(const ResourceQuery& value) { SetResourceQuery(value); return *this;} /** *

The resource query to determine which Amazon Web Services resources are * members of this resource group.

A resource group can contain * either a Configuration or a ResourceQuery, but not * both.

*/ inline UpdateGroupQueryRequest& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(value)); return *this;} private: Aws::String m_group; bool m_groupHasBeenSet = false; ResourceQuery m_resourceQuery; bool m_resourceQueryHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws