public static final class Part.BuilderA builder for Part.
Methods
build()
public Part build()Builds a new Part object.
| Returns | |
|---|---|
| Type | Description |
Part |
a new Part object. |
eTag(String eTag)
public Part.Builder eTag(String eTag)Sets the ETag of the part.
| Parameter | |
|---|---|
| Name | Description |
eTag |
Stringthe ETag of the part. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
this builder. |
lastModified(OffsetDateTime lastModified)
public Part.Builder lastModified(OffsetDateTime lastModified)Sets the last modified time of the part.
| Parameter | |
|---|---|
| Name | Description |
lastModified |
OffsetDateTimethe last modified time of the part. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
this builder. |
partNumber(int partNumber)
public Part.Builder partNumber(int partNumber)Sets the part number.
| Parameter | |
|---|---|
| Name | Description |
partNumber |
intthe part number. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
this builder. |
size(long size)
public Part.Builder size(long size)Sets the size of the part.
| Parameter | |
|---|---|
| Name | Description |
size |
longthe size of the part. |
| Returns | |
|---|---|
| Type | Description |
Part.Builder |
this builder. |