@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the type and name of a resource referenced by an event.
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getResourceName()
The name of the resource referenced by the event returned.
|
String |
getResourceType()
The type of a resource referenced by the event returned.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setResourceName(String resourceName)
The name of the resource referenced by the event returned.
|
void |
setResourceType(String resourceType)
The type of a resource referenced by the event returned.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withResourceName(String resourceName)
The name of the resource referenced by the event returned.
|
Resource |
withResourceType(String resourceType)
The type of a resource referenced by the event returned.
|
public void setResourceType(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. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.
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. To learn more about how to look up and filter
events by the resource types supported for a service, see Filtering CloudTrail Events.public 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. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.
public Resource withResourceType(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. To learn more about how to look up and filter events by the resource types supported for a service, see Filtering CloudTrail Events.
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. To learn more about how to look up and filter
events by the resource types supported for a service, see Filtering CloudTrail Events.public void setResourceName(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 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(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 String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.