public static class ObjectSummary.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ObjectSummary.Builder |
archivalState(ArchivalState archivalState)
Archival state of an object.
|
ObjectSummary |
build() |
ObjectSummary.Builder |
copy(ObjectSummary model) |
ObjectSummary.Builder |
etag(String etag)
The current entity tag (ETag) for the object.
|
ObjectSummary.Builder |
md5(String md5)
Base64-encoded MD5 hash of the object data.
|
ObjectSummary.Builder |
name(String name)
The name of the object.
|
ObjectSummary.Builder |
size(Long size)
Size of the object in bytes.
|
ObjectSummary.Builder |
storageTier(StorageTier storageTier)
The storage tier that the object is stored in.
|
ObjectSummary.Builder |
timeCreated(Date timeCreated)
The date and time the object was created, as described in RFC
2616.
|
ObjectSummary.Builder |
timeModified(Date timeModified)
The date and time the object was modified, as described in RFC
2616, section 14.29.
|
public ObjectSummary.Builder name(String name)
The name of the object. Avoid entering confidential information. Example: test/object1.log
name
- the value to setpublic ObjectSummary.Builder size(Long size)
Size of the object in bytes.
size
- the value to setpublic ObjectSummary.Builder md5(String md5)
Base64-encoded MD5 hash of the object data.
md5
- the value to setpublic ObjectSummary.Builder timeCreated(Date timeCreated)
The date and time the object was created, as described in RFC 2616.
timeCreated
- the value to setpublic ObjectSummary.Builder etag(String etag)
The current entity tag (ETag) for the object.
etag
- the value to setpublic ObjectSummary.Builder storageTier(StorageTier storageTier)
The storage tier that the object is stored in.
storageTier
- the value to setpublic ObjectSummary.Builder archivalState(ArchivalState archivalState)
Archival state of an object. This field is set only for objects in Archive tier.
archivalState
- the value to setpublic ObjectSummary.Builder timeModified(Date timeModified)
The date and time the object was modified, as described in RFC 2616, section 14.29.
timeModified
- the value to setpublic ObjectSummary build()
public ObjectSummary.Builder copy(ObjectSummary model)
Copyright © 2016–2024. All rights reserved.