@Generated(value="software.amazon.awssdk:codegen") public final class ResourceMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
Describes the metadata of a resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceMetadata.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResourceMetadata.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the resource.
|
String |
name()
The name of the resource.
|
String |
originalName()
The original name of the resource before a rename operation.
|
UserMetadata |
owner()
The owner of the resource.
|
String |
parentId()
The parent ID of the resource before a rename operation.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceMetadata.Builder> |
serializableBuilderClass() |
ResourceMetadata.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
ResourceType |
type()
The type of resource.
|
String |
typeAsString()
The type of resource.
|
String |
versionId()
The version ID of the resource.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ResourceType type()
The type of resource.
If the service returns an enum value that is not available in the current SDK version, type will return
ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ResourceTypepublic final String typeAsString()
The type of resource.
If the service returns an enum value that is not available in the current SDK version, type will return
ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
ResourceTypepublic final String name()
The name of the resource.
public final String originalName()
The original name of the resource before a rename operation.
public final String id()
The ID of the resource.
public final String versionId()
The version ID of the resource. This is an optional field and is filled for action on document version.
public final UserMetadata owner()
The owner of the resource.
public final String parentId()
The parent ID of the resource before a rename operation.
public ResourceMetadata.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>public static ResourceMetadata.Builder builder()
public static Class<? extends ResourceMetadata.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.