@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
A resource data type that describes a resource to which the finding refers.
Modifier and Type | Class and Description |
---|---|
static interface |
Resource.Builder |
Modifier and Type | Method and Description |
---|---|
static Resource.Builder |
builder() |
ResourceDetails |
details()
Provides additional details about the resource.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The canonical identifier for the given resource type.
|
Partition |
partition()
The canonical AWS partition name to which the region is assigned.
|
String |
partitionAsString()
The canonical AWS partition name to which the region is assigned.
|
String |
region()
The canonical AWS external region name where this resource is located.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
A list of AWS tags associated with a resource at the time the finding was processed.
|
Resource.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
type()
Specifies the type of the resource for which details are provided.
|
copy
public String type()
Specifies the type of the resource for which details are provided.
public String id()
The canonical identifier for the given resource type.
public Partition partition()
The canonical AWS partition name to which the region is assigned.
If the service returns an enum value that is not available in the current SDK version, partition
will
return Partition.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
partitionAsString()
.
Partition
public String partitionAsString()
The canonical AWS partition name to which the region is assigned.
If the service returns an enum value that is not available in the current SDK version, partition
will
return Partition.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
partitionAsString()
.
Partition
public String region()
The canonical AWS external region name where this resource is located.
public Map<String,String> tags()
A list of AWS tags associated with a resource at the time the finding was processed.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public ResourceDetails details()
Provides additional details about the resource.
public Resource.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Resource.Builder,Resource>
public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.