@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
Specifies the type and name of a resource referenced by an event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Resource.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Resource.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceName()
The name of the resource referenced by the event returned.
|
String |
resourceType()
The type of a resource referenced by the event returned.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
Resource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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 Amazon 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 final 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 Resource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Resource.Builder,Resource>public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.