Class ResourceIdentifier
- java.lang.Object
-
- com.amazonaws.services.config.model.ResourceIdentifier
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ResourceIdentifier extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceIdentifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceIdentifier
clone()
boolean
equals(Object obj)
Date
getResourceDeletionTime()
The time that the resource was deleted.String
getResourceId()
The ID of the resource (for example.,sg-xxxxxx
).String
getResourceName()
The custom name of the resource (if available).String
getResourceType()
The type of resource.int
hashCode()
void
setResourceDeletionTime(Date resourceDeletionTime)
The time that the resource was deleted.void
setResourceId(String resourceId)
The ID of the resource (for example.,sg-xxxxxx
).void
setResourceName(String resourceName)
The custom name of the resource (if available).void
setResourceType(ResourceType resourceType)
The type of resource.void
setResourceType(String resourceType)
The type of resource.String
toString()
Returns a string representation of this object; useful for testing and debugging.ResourceIdentifier
withResourceDeletionTime(Date resourceDeletionTime)
The time that the resource was deleted.ResourceIdentifier
withResourceId(String resourceId)
The ID of the resource (for example.,sg-xxxxxx
).ResourceIdentifier
withResourceName(String resourceName)
The custom name of the resource (if available).ResourceIdentifier
withResourceType(ResourceType resourceType)
The type of resource.ResourceIdentifier
withResourceType(String resourceType)
The type of resource.
-
-
-
Method Detail
-
setResourceType
public void setResourceType(String resourceType)
The type of resource.
- Parameters:
resourceType
- The type of resource.- See Also:
ResourceType
-
getResourceType
public String getResourceType()
The type of resource.
- Returns:
- The type of resource.
- See Also:
ResourceType
-
withResourceType
public ResourceIdentifier withResourceType(String resourceType)
The type of resource.
- Parameters:
resourceType
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
-
setResourceType
public void setResourceType(ResourceType resourceType)
The type of resource.
- Parameters:
resourceType
- The type of resource.- See Also:
ResourceType
-
withResourceType
public ResourceIdentifier withResourceType(ResourceType resourceType)
The type of resource.
- Parameters:
resourceType
- The type of resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType
-
setResourceId
public void setResourceId(String resourceId)
The ID of the resource (for example.,
sg-xxxxxx
).- Parameters:
resourceId
- The ID of the resource (for example.,sg-xxxxxx
).
-
getResourceId
public String getResourceId()
The ID of the resource (for example.,
sg-xxxxxx
).- Returns:
- The ID of the resource (for example.,
sg-xxxxxx
).
-
withResourceId
public ResourceIdentifier withResourceId(String resourceId)
The ID of the resource (for example.,
sg-xxxxxx
).- Parameters:
resourceId
- The ID of the resource (for example.,sg-xxxxxx
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceName
public void setResourceName(String resourceName)
The custom name of the resource (if available).
- Parameters:
resourceName
- The custom name of the resource (if available).
-
getResourceName
public String getResourceName()
The custom name of the resource (if available).
- Returns:
- The custom name of the resource (if available).
-
withResourceName
public ResourceIdentifier withResourceName(String resourceName)
The custom name of the resource (if available).
- Parameters:
resourceName
- The custom name of the resource (if available).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceDeletionTime
public void setResourceDeletionTime(Date resourceDeletionTime)
The time that the resource was deleted.
- Parameters:
resourceDeletionTime
- The time that the resource was deleted.
-
getResourceDeletionTime
public Date getResourceDeletionTime()
The time that the resource was deleted.
- Returns:
- The time that the resource was deleted.
-
withResourceDeletionTime
public ResourceIdentifier withResourceDeletionTime(Date resourceDeletionTime)
The time that the resource was deleted.
- Parameters:
resourceDeletionTime
- The time that the resource was deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceIdentifier clone()
-
-