/** * 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 Inspector { namespace Model { /** */ class CreateResourceGroupRequest : public InspectorRequest { public: AWS_INSPECTOR_API CreateResourceGroupRequest(); // 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 "CreateResourceGroup"; } AWS_INSPECTOR_API Aws::String SerializePayload() const override; AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline const Aws::Vector& GetResourceGroupTags() const{ return m_resourceGroupTags; } /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline bool ResourceGroupTagsHasBeenSet() const { return m_resourceGroupTagsHasBeenSet; } /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline void SetResourceGroupTags(const Aws::Vector& value) { m_resourceGroupTagsHasBeenSet = true; m_resourceGroupTags = value; } /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline void SetResourceGroupTags(Aws::Vector&& value) { m_resourceGroupTagsHasBeenSet = true; m_resourceGroupTags = std::move(value); } /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline CreateResourceGroupRequest& WithResourceGroupTags(const Aws::Vector& value) { SetResourceGroupTags(value); return *this;} /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline CreateResourceGroupRequest& WithResourceGroupTags(Aws::Vector&& value) { SetResourceGroupTags(std::move(value)); return *this;} /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline CreateResourceGroupRequest& AddResourceGroupTags(const ResourceGroupTag& value) { m_resourceGroupTagsHasBeenSet = true; m_resourceGroupTags.push_back(value); return *this; } /** *

A collection of keys and an array of possible values, * '[{"key":"key1","values":["Value1","Value2"]},{"key":"Key2","values":["Value3"]}]'.

*

For example,'[{"key":"Name","values":["TestEC2Instance"]}]'.

*/ inline CreateResourceGroupRequest& AddResourceGroupTags(ResourceGroupTag&& value) { m_resourceGroupTagsHasBeenSet = true; m_resourceGroupTags.push_back(std::move(value)); return *this; } private: Aws::Vector m_resourceGroupTags; bool m_resourceGroupTagsHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws