| Modifier and Type | Method and Description |
|---|---|
Resource |
build()
Builds a new
Resource. |
Resource.Builder |
from(Resource instance)
Fill a builder with attribute values from the provided
Resource instance. |
Resource.Builder |
hash(String hash)
Initializes the value for the
hash attribute. |
Resource.Builder |
mode(String mode)
Initializes the value for the
mode attribute. |
Resource.Builder |
size(Integer size)
Initializes the value for the
size attribute. |
public final Resource.Builder from(Resource instance)
Resource instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Resource.Builder hash(String hash)
hash attribute.hash - The value for hash (can be null)this builder for use in a chained invocationpublic final Resource.Builder mode(String mode)
mode attribute.mode - The value for mode (can be null)this builder for use in a chained invocationpublic final Resource.Builder size(Integer size)
size attribute.size - The value for size (can be null)this builder for use in a chained invocationpublic Resource build()
Resource.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.