@Generated(value="software.amazon.awssdk:codegen") public final class FolderMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FolderMetadata.Builder,FolderMetadata>
Describes a folder.
Modifier and Type | Class and Description |
---|---|
static interface |
FolderMetadata.Builder |
Modifier and Type | Method and Description |
---|---|
static FolderMetadata.Builder |
builder() |
Instant |
createdTimestamp()
The time when the folder was created.
|
String |
creatorId()
The ID of the creator.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasLabels()
Returns true if the Labels property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
String |
id()
The ID of the folder.
|
List<String> |
labels()
List of labels on the folder.
|
Long |
latestVersionSize()
The size of the latest version of the folder metadata.
|
Instant |
modifiedTimestamp()
The time when the folder was updated.
|
String |
name()
The name of the folder.
|
String |
parentFolderId()
The ID of the parent folder.
|
ResourceStateType |
resourceState()
The resource state of the folder.
|
String |
resourceStateAsString()
The resource state of the folder.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FolderMetadata.Builder> |
serializableBuilderClass() |
String |
signature()
The unique identifier created from the subfolders and documents of the folder.
|
Long |
size()
The size of the folder metadata.
|
FolderMetadata.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String id()
The ID of the folder.
public final String name()
The name of the folder.
public final String creatorId()
The ID of the creator.
public final String parentFolderId()
The ID of the parent folder.
public final Instant createdTimestamp()
The time when the folder was created.
public final Instant modifiedTimestamp()
The time when the folder was updated.
public final ResourceStateType resourceState()
The resource state of the folder.
If the service returns an enum value that is not available in the current SDK version, resourceState
will return ResourceStateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceStateAsString()
.
ResourceStateType
public final String resourceStateAsString()
The resource state of the folder.
If the service returns an enum value that is not available in the current SDK version, resourceState
will return ResourceStateType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from resourceStateAsString()
.
ResourceStateType
public final String signature()
The unique identifier created from the subfolders and documents of the folder.
public final boolean hasLabels()
public final List<String> labels()
List of labels on the folder.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasLabels()
to see if a value was sent in this field.
public final Long size()
The size of the folder metadata.
public final Long latestVersionSize()
The size of the latest version of the folder metadata.
public FolderMetadata.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FolderMetadata.Builder,FolderMetadata>
public static FolderMetadata.Builder builder()
public static Class<? extends FolderMetadata.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()