@Generated(value="software.amazon.awssdk:codegen") public final class ResourceMetadata extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The ID of the resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
static Class<? extends ResourceMetadata.Builder> |
serializableBuilderClass() |
ResourceMetadata.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
ResourceType |
type()
The type of resource.
|
String |
typeAsString()
The type of resource.
|
String |
versionId()
The version ID of the resource.
|
copy
public 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()
.
ResourceType
public 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()
.
ResourceType
public String name()
The name of the resource.
public String originalName()
The original name of the resource before a rename operation.
public String id()
The ID of the resource.
public String versionId()
The version ID of the resource. This is an optional field and is filled for action on document version.
public UserMetadata owner()
The owner of the resource.
public String parentId()
The parent ID of the resource before a rename operation.
public ResourceMetadata.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
public static ResourceMetadata.Builder builder()
public static Class<? extends ResourceMetadata.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.