/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ResourceGroups { namespace Model { /** *

A structure that contains the ARN of a resource and its resource * type.

See Also:

AWS * API Reference

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

The ARN of a resource.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN of a resource.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN of a resource.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN of a resource.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN of a resource.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN of a resource.

*/ inline ResourceIdentifier& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN of a resource.

*/ inline ResourceIdentifier& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN of a resource.

*/ inline ResourceIdentifier& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline ResourceIdentifier& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline ResourceIdentifier& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type of a resource, such as AWS::EC2::Instance.

*/ inline ResourceIdentifier& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace ResourceGroups } // namespace Aws