public static class Versioned.Metadata.MetadataBuilder extends Object
Versioned.Metadata
objects.Modifier and Type | Method and Description |
---|---|
Versioned.Metadata |
build()
Build the
Versioned.Metadata object. |
Versioned.Metadata.MetadataBuilder |
createdAt(Instant createdAt)
Configure a created at
Instant . |
Versioned.Metadata.MetadataBuilder |
deletedAt(Instant deletedAt)
Configure a deleted at
Instant . |
Versioned.Metadata.MetadataBuilder |
destroyed()
Configure the version was destroyed.
|
Versioned.Metadata.MetadataBuilder |
destroyed(boolean destroyed)
Configure the version was destroyed.
|
Versioned.Metadata.MetadataBuilder |
version(Versioned.Version version)
Configure the
Versioned.Version . |
public Versioned.Metadata.MetadataBuilder createdAt(Instant createdAt)
Instant
.createdAt
- timestamp at which the version was created, must not be
null.this
Versioned.Metadata.MetadataBuilder
.public Versioned.Metadata.MetadataBuilder deletedAt(Instant deletedAt)
Instant
.deletedAt
- timestamp at which the version was deleted, must not be
null.this
Versioned.Metadata.MetadataBuilder
.public Versioned.Metadata.MetadataBuilder destroyed()
this
Versioned.Metadata.MetadataBuilder
.public Versioned.Metadata.MetadataBuilder destroyed(boolean destroyed)
destroyed
- this
Versioned.Metadata.MetadataBuilder
.public Versioned.Metadata.MetadataBuilder version(Versioned.Version version)
Versioned.Version
.version
- must not be null.this
Versioned.Metadata.MetadataBuilder
.public Versioned.Metadata build()
Versioned.Metadata
object. Requires
createdAt(Instant)
and version(Versioned.Version)
to be
set.Versioned.Metadata
object.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.