Class ResourceMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.workdocs.model.ResourceMetadata
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
@Generated("software.amazon.awssdk:codegen") public final class ResourceMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
Describes the metadata of a resource.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ResourceMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public 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 returnResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of resource.
- See Also:
ResourceType
-
typeAsString
public 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 returnResourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The type of resource.
- See Also:
ResourceType
-
name
public final String name()
The name of the resource.
- Returns:
- The name of the resource.
-
originalName
public final String originalName()
The original name of the resource before a rename operation.
- Returns:
- The original name of the resource before a rename operation.
-
id
public final String id()
The ID of the resource.
- Returns:
- The ID of the resource.
-
versionId
public final String versionId()
The version ID of the resource. This is an optional field and is filled for action on document version.
- Returns:
- The version ID of the resource. This is an optional field and is filled for action on document version.
-
owner
public final UserMetadata owner()
The owner of the resource.
- Returns:
- The owner of the resource.
-
parentId
public final String parentId()
The parent ID of the resource before a rename operation.
- Returns:
- The parent ID of the resource before a rename operation.
-
toBuilder
public ResourceMetadata.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
-
builder
public static ResourceMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceMetadata.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-