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

The details that identify a resource that is discovered by Config, including * the resource type, ID, and (if available) the custom resource * name.

See Also:

AWS * API Reference

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

The type of resource.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource.

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

The type of resource.

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

The type of resource.

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

The type of resource.

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

The type of resource.

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

The ID of the resource (for example, sg-xxxxxx).

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the resource (for example, sg-xxxxxx).

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the resource (for example, sg-xxxxxx).

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the resource (for example, sg-xxxxxx).

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

The ID of the resource (for example, sg-xxxxxx).

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

The ID of the resource (for example, sg-xxxxxx).

*/ inline ResourceIdentifier& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The custom name of the resource (if available).

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

The custom name of the resource (if available).

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

The custom name of the resource (if available).

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

The custom name of the resource (if available).

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

The custom name of the resource (if available).

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

The custom name of the resource (if available).

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

The custom name of the resource (if available).

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

The custom name of the resource (if available).

*/ inline ResourceIdentifier& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The time that the resource was deleted.

*/ inline const Aws::Utils::DateTime& GetResourceDeletionTime() const{ return m_resourceDeletionTime; } /** *

The time that the resource was deleted.

*/ inline bool ResourceDeletionTimeHasBeenSet() const { return m_resourceDeletionTimeHasBeenSet; } /** *

The time that the resource was deleted.

*/ inline void SetResourceDeletionTime(const Aws::Utils::DateTime& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = value; } /** *

The time that the resource was deleted.

*/ inline void SetResourceDeletionTime(Aws::Utils::DateTime&& value) { m_resourceDeletionTimeHasBeenSet = true; m_resourceDeletionTime = std::move(value); } /** *

The time that the resource was deleted.

*/ inline ResourceIdentifier& WithResourceDeletionTime(const Aws::Utils::DateTime& value) { SetResourceDeletionTime(value); return *this;} /** *

The time that the resource was deleted.

*/ inline ResourceIdentifier& WithResourceDeletionTime(Aws::Utils::DateTime&& value) { SetResourceDeletionTime(std::move(value)); return *this;} private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; Aws::Utils::DateTime m_resourceDeletionTime; bool m_resourceDeletionTimeHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws