| Modifier and Type | Method and Description |
|---|---|
Metadata |
build()
Builds a new
Metadata. |
Metadata.Builder |
created(String created)
Initializes the value for the
created attribute. |
Metadata.Builder |
from(Metadata instance)
Fill a builder with attribute values from the provided
Metadata instance. |
Metadata.Builder |
lastModified(String lastModified)
Initializes the value for the
lastModified attribute. |
Metadata.Builder |
version(Integer version)
Initializes the value for the
version 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 created(String created)
created attribute.created - The value for created (can be null)this builder for use in a chained invocationpublic final Metadata.Builder lastModified(String lastModified)
lastModified attribute.lastModified - The value for lastModified (can be null)this builder for use in a chained invocationpublic final Metadata.Builder version(Integer version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic Metadata build()
Metadata.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.