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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The name or ARN of the resource group with the configuration that you want to * update.

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

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline const Aws::Vector& GetConfiguration() const{ return m_configuration; } /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline void SetConfiguration(const Aws::Vector& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline void SetConfiguration(Aws::Vector&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline PutGroupConfigurationRequest& WithConfiguration(const Aws::Vector& value) { SetConfiguration(value); return *this;} /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline PutGroupConfigurationRequest& WithConfiguration(Aws::Vector&& value) { SetConfiguration(std::move(value)); return *this;} /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline PutGroupConfigurationRequest& AddConfiguration(const GroupConfigurationItem& value) { m_configurationHasBeenSet = true; m_configuration.push_back(value); return *this; } /** *

The new configuration to associate with the specified group. A configuration * associates the resource group with an Amazon Web Services service and specifies * how the service can interact with the resources in the group. A configuration is * an array of GroupConfigurationItem elements.

For information about * the syntax of a service configuration, see Service * configurations for Resource Groups.

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

*/ inline PutGroupConfigurationRequest& AddConfiguration(GroupConfigurationItem&& value) { m_configurationHasBeenSet = true; m_configuration.push_back(std::move(value)); return *this; } private: Aws::String m_group; bool m_groupHasBeenSet = false; Aws::Vector m_configuration; bool m_configurationHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws