/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Inspector { namespace Model { /** *

Contains information about a resource group. The resource group defines a set * of tags that, when queried, identify the AWS resources that make up the * assessment target. This data type is used as the response element in the * DescribeResourceGroups action.

See Also:

AWS * API Reference

*/ class ResourceGroup { public: AWS_INSPECTOR_API ResourceGroup(); AWS_INSPECTOR_API ResourceGroup(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR_API ResourceGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the resource group.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the resource group.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the resource group.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the resource group.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the resource group.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the resource group.

*/ inline ResourceGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the resource group.

*/ inline ResourceGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the resource group.

*/ inline ResourceGroup& WithArn(const char* value) { SetArn(value); return *this;} /** *

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

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

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

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

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

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

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

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

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

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

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

*/ inline ResourceGroup& AddTags(const ResourceGroupTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags (key and value pairs) of the resource group. This data type property * is used in the CreateResourceGroup action.

*/ inline ResourceGroup& AddTags(ResourceGroupTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The time at which resource group is created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The time at which resource group is created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The time at which resource group is created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The time at which resource group is created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The time at which resource group is created.

*/ inline ResourceGroup& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The time at which resource group is created.

*/ inline ResourceGroup& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace Inspector } // namespace Aws