| Modifier and Type | Method and Description |
|---|---|
Metadata |
build()
Builds a new
Metadata. |
Metadata.Builder |
createdAt(String createdAt)
Initializes the value for the
createdAt attribute. |
Metadata.Builder |
from(Metadata instance)
Fill a builder with attribute values from the provided
Metadata instance. |
Metadata.Builder |
id(String id)
Initializes the value for the
id attribute. |
Metadata.Builder |
updatedAt(String updatedAt)
Initializes the value for the
updatedAt attribute. |
Metadata.Builder |
url(String url)
Initializes the value for the
url attribute. |
public final Metadata.Builder from(Metadata instance)
Metadata 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 Metadata.Builder createdAt(String createdAt)
createdAt attribute.createdAt - The value for createdAt (can be null)this builder for use in a chained invocationpublic final Metadata.Builder id(String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final Metadata.Builder updatedAt(String updatedAt)
updatedAt attribute.updatedAt - The value for updatedAt (can be null)this builder for use in a chained invocationpublic final Metadata.Builder url(String url)
url attribute.url - The value for url (can be null)this builder for use in a chained invocationpublic Metadata build()
Metadata.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.