@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Describes the metadata of a resource.
Constructor and Description |
---|
ResourceMetadata() |
Modifier and Type | Method and Description |
---|---|
ResourceMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The ID of the resource.
|
String |
getName()
The name of the resource.
|
String |
getOriginalName()
The original name of the resource prior to a rename operation.
|
UserMetadata |
getOwner()
The owner of the resource.
|
String |
getParentId()
The parent ID of the resource before a rename operation.
|
String |
getType()
The type of resource.
|
String |
getVersionId()
The version ID of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The ID of the resource.
|
void |
setName(String name)
The name of the resource.
|
void |
setOriginalName(String originalName)
The original name of the resource prior to a rename operation.
|
void |
setOwner(UserMetadata owner)
The owner of the resource.
|
void |
setParentId(String parentId)
The parent ID of the resource before a rename operation.
|
void |
setType(ResourceType type)
The type of resource.
|
void |
setType(String type)
The type of resource.
|
void |
setVersionId(String versionId)
The version ID of the resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResourceMetadata |
withId(String id)
The ID of the resource.
|
ResourceMetadata |
withName(String name)
The name of the resource.
|
ResourceMetadata |
withOriginalName(String originalName)
The original name of the resource prior to a rename operation.
|
ResourceMetadata |
withOwner(UserMetadata owner)
The owner of the resource.
|
ResourceMetadata |
withParentId(String parentId)
The parent ID of the resource before a rename operation.
|
ResourceMetadata |
withType(ResourceType type)
The type of resource.
|
ResourceMetadata |
withType(String type)
The type of resource.
|
ResourceMetadata |
withVersionId(String versionId)
The version ID of the resource.
|
public void setType(String type)
The type of resource.
type
- The type of resource.ResourceType
public String getType()
The type of resource.
ResourceType
public ResourceMetadata withType(String type)
The type of resource.
type
- The type of resource.ResourceType
public void setType(ResourceType type)
The type of resource.
type
- The type of resource.ResourceType
public ResourceMetadata withType(ResourceType type)
The type of resource.
type
- The type of resource.ResourceType
public void setName(String name)
The name of the resource.
name
- The name of the resource.public String getName()
The name of the resource.
public ResourceMetadata withName(String name)
The name of the resource.
name
- The name of the resource.public void setOriginalName(String originalName)
The original name of the resource prior to a rename operation.
originalName
- The original name of the resource prior to a rename operation.public String getOriginalName()
The original name of the resource prior to a rename operation.
public ResourceMetadata withOriginalName(String originalName)
The original name of the resource prior to a rename operation.
originalName
- The original name of the resource prior to a rename operation.public void setId(String id)
The ID of the resource.
id
- The ID of the resource.public String getId()
The ID of the resource.
public ResourceMetadata withId(String id)
The ID of the resource.
id
- The ID of the resource.public void setVersionId(String versionId)
The version ID of the resource. This is an optional field and is filled for action on document version.
versionId
- The version ID of the resource. This is an optional field and is filled for action on document version.public String getVersionId()
The version ID of the resource. This is an optional field and is filled for action on document version.
public ResourceMetadata withVersionId(String versionId)
The version ID of the resource. This is an optional field and is filled for action on document version.
versionId
- The version ID of the resource. This is an optional field and is filled for action on document version.public void setOwner(UserMetadata owner)
The owner of the resource.
owner
- The owner of the resource.public UserMetadata getOwner()
The owner of the resource.
public ResourceMetadata withOwner(UserMetadata owner)
The owner of the resource.
owner
- The owner of the resource.public void setParentId(String parentId)
The parent ID of the resource before a rename operation.
parentId
- The parent ID of the resource before a rename operation.public String getParentId()
The parent ID of the resource before a rename operation.
public ResourceMetadata withParentId(String parentId)
The parent ID of the resource before a rename operation.
parentId
- The parent ID of the resource before a rename operation.public String toString()
toString
in class Object
Object.toString()
public ResourceMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.