/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
The ID of the resource (for example, sg-xxxxxx
).
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