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.
| Constructor and Description |
|---|
ResourceIdentifier() |
| Modifier and Type | Method and 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.
|
public String getResourceType()
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
ResourceTypepublic void setResourceType(String resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The type of resource.ResourceTypepublic ResourceIdentifier withResourceType(String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The type of resource.ResourceTypepublic void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The type of resource.ResourceTypepublic ResourceIdentifier withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The type of resource.ResourceTypepublic String getResourceId()
sg-xxxxxx).sg-xxxxxx).public void setResourceId(String resourceId)
sg-xxxxxx).resourceId - The ID of the resource (for example., sg-xxxxxx).public ResourceIdentifier withResourceId(String resourceId)
sg-xxxxxx).
Returns a reference to this object so that method calls can be chained together.
resourceId - The ID of the resource (for example., sg-xxxxxx).public String getResourceName()
public void setResourceName(String resourceName)
resourceName - The custom name of the resource (if available).public ResourceIdentifier withResourceName(String resourceName)
Returns a reference to this object so that method calls can be chained together.
resourceName - The custom name of the resource (if available).public Date getResourceDeletionTime()
public void setResourceDeletionTime(Date resourceDeletionTime)
resourceDeletionTime - The time that the resource was deleted.public ResourceIdentifier withResourceDeletionTime(Date resourceDeletionTime)
Returns a reference to this object so that method calls can be chained together.
resourceDeletionTime - The time that the resource was deleted.public String toString()
toString in class ObjectObject.toString()public ResourceIdentifier clone()
Copyright © 2015. All rights reserved.