public class ResourceIdentifier
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
resourceDeletionTime
The time that the resource was deleted.
|
private java.lang.String |
resourceId
The ID of the resource (for example.,
sg-xxxxxx ). |
private java.lang.String |
resourceName
The custom name of the resource (if available).
|
private java.lang.String |
resourceType
The type of resource.
|
Constructor and Description |
---|
ResourceIdentifier() |
Modifier and Type | Method and Description |
---|---|
ResourceIdentifier |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getResourceDeletionTime()
The time that the resource was deleted.
|
java.lang.String |
getResourceId()
The ID of the resource (for example.,
sg-xxxxxx ). |
java.lang.String |
getResourceName()
The custom name of the resource (if available).
|
java.lang.String |
getResourceType()
The type of resource.
|
int |
hashCode() |
void |
setResourceDeletionTime(java.util.Date resourceDeletionTime)
The time that the resource was deleted.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the resource (for example.,
sg-xxxxxx ). |
void |
setResourceName(java.lang.String resourceName)
The custom name of the resource (if available).
|
void |
setResourceType(ResourceType resourceType)
The type of resource.
|
void |
setResourceType(java.lang.String resourceType)
The type of resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceIdentifier |
withResourceDeletionTime(java.util.Date resourceDeletionTime)
The time that the resource was deleted.
|
ResourceIdentifier |
withResourceId(java.lang.String resourceId)
The ID of the resource (for example.,
sg-xxxxxx ). |
ResourceIdentifier |
withResourceName(java.lang.String resourceName)
The custom name of the resource (if available).
|
ResourceIdentifier |
withResourceType(ResourceType resourceType)
The type of resource.
|
ResourceIdentifier |
withResourceType(java.lang.String resourceType)
The type of resource.
|
private java.lang.String resourceType
The type of resource.
private java.lang.String resourceId
The ID of the resource (for example., sg-xxxxxx
).
private java.lang.String resourceName
The custom name of the resource (if available).
private java.util.Date resourceDeletionTime
The time that the resource was deleted.
public void setResourceType(java.lang.String resourceType)
The type of resource.
resourceType
- The type of resource.ResourceType
public java.lang.String getResourceType()
The type of resource.
ResourceType
public ResourceIdentifier withResourceType(java.lang.String resourceType)
The type of resource.
resourceType
- The type of resource.ResourceType
public void setResourceType(ResourceType resourceType)
The type of resource.
resourceType
- The type of resource.ResourceType
public ResourceIdentifier withResourceType(ResourceType resourceType)
The type of resource.
resourceType
- The type of resource.ResourceType
public void setResourceId(java.lang.String resourceId)
The ID of the resource (for example., sg-xxxxxx
).
resourceId
- The ID of the resource (for example., sg-xxxxxx
).public java.lang.String getResourceId()
The ID of the resource (for example., sg-xxxxxx
).
sg-xxxxxx
).public ResourceIdentifier withResourceId(java.lang.String resourceId)
The ID of the resource (for example., sg-xxxxxx
).
resourceId
- The ID of the resource (for example., sg-xxxxxx
).public void setResourceName(java.lang.String resourceName)
The custom name of the resource (if available).
resourceName
- The custom name of the resource (if available).public java.lang.String getResourceName()
The custom name of the resource (if available).
public ResourceIdentifier withResourceName(java.lang.String resourceName)
The custom name of the resource (if available).
resourceName
- The custom name of the resource (if available).public void setResourceDeletionTime(java.util.Date resourceDeletionTime)
The time that the resource was deleted.
resourceDeletionTime
- The time that the resource was deleted.public java.util.Date getResourceDeletionTime()
The time that the resource was deleted.
public ResourceIdentifier withResourceDeletionTime(java.util.Date resourceDeletionTime)
The time that the resource was deleted.
resourceDeletionTime
- The time that the resource was deleted.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ResourceIdentifier clone()
clone
in class java.lang.Object