public class Resource
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Specifies the type and name of a resource referenced by an event.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
resourceName
The name of the resource referenced by the event returned.
|
private java.lang.String |
resourceType
The type of a resource referenced by the event returned.
|
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getResourceName()
The name of the resource referenced by the event returned.
|
java.lang.String |
getResourceType()
The type of a resource referenced by the event returned.
|
int |
hashCode() |
void |
setResourceName(java.lang.String resourceName)
The name of the resource referenced by the event returned.
|
void |
setResourceType(java.lang.String resourceType)
The type of a resource referenced by the event returned.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Resource |
withResourceName(java.lang.String resourceName)
The name of the resource referenced by the event returned.
|
Resource |
withResourceType(java.lang.String resourceType)
The type of a resource referenced by the event returned.
|
private java.lang.String resourceType
The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.
private java.lang.String resourceName
The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.
public void setResourceType(java.lang.String resourceType)
The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.
resourceType
- The type of a resource referenced by the event returned. When the
resource type cannot be determined, null is returned. Some
examples of resource types are: Instance for EC2,
Trail for CloudTrail, DBInstance for RDS, and
AccessKey for IAM. For a list of resource types supported
for event lookup, see Resource Types Supported for Event Lookup.public java.lang.String getResourceType()
The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.
public Resource withResourceType(java.lang.String resourceType)
The type of a resource referenced by the event returned. When the resource type cannot be determined, null is returned. Some examples of resource types are: Instance for EC2, Trail for CloudTrail, DBInstance for RDS, and AccessKey for IAM. For a list of resource types supported for event lookup, see Resource Types Supported for Event Lookup.
resourceType
- The type of a resource referenced by the event returned. When the
resource type cannot be determined, null is returned. Some
examples of resource types are: Instance for EC2,
Trail for CloudTrail, DBInstance for RDS, and
AccessKey for IAM. For a list of resource types supported
for event lookup, see Resource Types Supported for Event Lookup.public void setResourceName(java.lang.String resourceName)
The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.
resourceName
- The name of the resource referenced by the event returned. These
are user-created names whose values will depend on the
environment. For example, the resource name might be
"auto-scaling-test-group" for an Auto Scaling Group or "i-1234567"
for an EC2 Instance.public java.lang.String getResourceName()
The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.
public Resource withResourceName(java.lang.String resourceName)
The name of the resource referenced by the event returned. These are user-created names whose values will depend on the environment. For example, the resource name might be "auto-scaling-test-group" for an Auto Scaling Group or "i-1234567" for an EC2 Instance.
resourceName
- The name of the resource referenced by the event returned. These
are user-created names whose values will depend on the
environment. For example, the resource name might be
"auto-scaling-test-group" for an Auto Scaling Group or "i-1234567"
for an EC2 Instance.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 Resource clone()
clone
in class java.lang.Object