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 interfaceResourceMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceMetadata.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the resource.Stringname()The name of the resource.StringoriginalName()The original name of the resource before a rename operation.UserMetadataowner()The owner of the resource.StringparentId()The parent ID of the resource before a rename operation.List<SdkField<?>>sdkFields()static Class<? extends ResourceMetadata.Builder>serializableBuilderClass()ResourceMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.ResourceTypetype()The type of resource.StringtypeAsString()The type of resource.StringversionId()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,
typewill 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,
typewill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-