/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ResourceGroups { namespace Model { class CreateGroupResult { public: AWS_RESOURCEGROUPS_API CreateGroupResult(); AWS_RESOURCEGROUPS_API CreateGroupResult(const Aws::AmazonWebServiceResult& result); AWS_RESOURCEGROUPS_API CreateGroupResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The description of the resource group.

*/ inline const Group& GetGroup() const{ return m_group; } /** *

The description of the resource group.

*/ inline void SetGroup(const Group& value) { m_group = value; } /** *

The description of the resource group.

*/ inline void SetGroup(Group&& value) { m_group = std::move(value); } /** *

The description of the resource group.

*/ inline CreateGroupResult& WithGroup(const Group& value) { SetGroup(value); return *this;} /** *

The description of the resource group.

*/ inline CreateGroupResult& WithGroup(Group&& value) { SetGroup(std::move(value)); return *this;} /** *

The resource query associated with the group. For more information about * resource queries, see Create * a tag-based group in Resource Groups.

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

The resource query associated with the group. For more information about * resource queries, see Create * a tag-based group in Resource Groups.

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

The resource query associated with the group. For more information about * resource queries, see Create * a tag-based group in Resource Groups.

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

The resource query associated with the group. For more information about * resource queries, see Create * a tag-based group in Resource Groups.

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

The resource query associated with the group. For more information about * resource queries, see Create * a tag-based group in Resource Groups.

*/ inline CreateGroupResult& WithResourceQuery(ResourceQuery&& value) { SetResourceQuery(std::move(value)); return *this;} /** *

The tags associated with the group.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags associated with the group.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The tags associated with the group.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The tags associated with the group.

*/ inline CreateGroupResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags associated with the group.

*/ inline CreateGroupResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The tags associated with the group.

*/ inline CreateGroupResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The service configuration associated with the resource group. For details * about the syntax of a service configuration, see Service * configurations for Resource Groups.

*/ inline const GroupConfiguration& GetGroupConfiguration() const{ return m_groupConfiguration; } /** *

The service configuration associated with the resource group. For details * about the syntax of a service configuration, see Service * configurations for Resource Groups.

*/ inline void SetGroupConfiguration(const GroupConfiguration& value) { m_groupConfiguration = value; } /** *

The service configuration associated with the resource group. For details * about the syntax of a service configuration, see Service * configurations for Resource Groups.

*/ inline void SetGroupConfiguration(GroupConfiguration&& value) { m_groupConfiguration = std::move(value); } /** *

The service configuration associated with the resource group. For details * about the syntax of a service configuration, see Service * configurations for Resource Groups.

*/ inline CreateGroupResult& WithGroupConfiguration(const GroupConfiguration& value) { SetGroupConfiguration(value); return *this;} /** *

The service configuration associated with the resource group. For details * about the syntax of a service configuration, see Service * configurations for Resource Groups.

*/ inline CreateGroupResult& WithGroupConfiguration(GroupConfiguration&& value) { SetGroupConfiguration(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Group m_group; ResourceQuery m_resourceQuery; Aws::Map m_tags; GroupConfiguration m_groupConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws