@Generated(value="software.amazon.awssdk:codegen") public class ResourceIdentifier extends Object implements StructuredPojo, ToCopyableBuilder<ResourceIdentifier.Builder,ResourceIdentifier>
The details that identify a resource that is discovered by AWS Config, including the resource type, ID, and (if available) the custom resource name.
Modifier and Type | Class and Description |
---|---|
static interface |
ResourceIdentifier.Builder |
Modifier and Type | Method and Description |
---|---|
static ResourceIdentifier.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
Instant |
resourceDeletionTime()
The time that the resource was deleted.
|
String |
resourceId()
The ID of the resource (for example.,
sg-xxxxxx ). |
String |
resourceName()
The custom name of the resource (if available).
|
ResourceType |
resourceType()
The type of resource.
|
String |
resourceTypeString()
The type of resource.
|
static Class<? extends ResourceIdentifier.Builder> |
serializableBuilderClass() |
ResourceIdentifier.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public ResourceType resourceType()
The type of resource.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeString()
.
ResourceType
public String resourceTypeString()
The type of resource.
If the service returns an enum value that is not available in the current SDK version, resourceType
will
return ResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
resourceTypeString()
.
ResourceType
public String resourceId()
The ID of the resource (for example., sg-xxxxxx
).
sg-xxxxxx
).public String resourceName()
The custom name of the resource (if available).
public Instant resourceDeletionTime()
The time that the resource was deleted.
public ResourceIdentifier.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResourceIdentifier.Builder,ResourceIdentifier>
public static ResourceIdentifier.Builder builder()
public static Class<? extends ResourceIdentifier.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.