public static class ObjectMeta.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(ObjectMeta om)
Construct a builder as a copy of existing meta
|
Builder(java.lang.String objectName)
Construct a builder starting with the object name
|
| Modifier and Type | Method and Description |
|---|---|
ObjectMeta |
build()
Build the Object Meta
|
ObjectMeta.Builder |
chunkSize(int chunkSize)
Convenience method to set the ObjectMetaOptions chunk size
|
ObjectMeta.Builder |
description(java.lang.String description)
Set the object description
|
ObjectMeta.Builder |
headers(io.nats.client.impl.Headers headers)
Set the object headers
|
ObjectMeta.Builder |
link(ObjectLink link)
Convenience method to set the ObjectMetaOptions to set the link
|
ObjectMeta.Builder |
metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set the object metadata
|
ObjectMeta.Builder |
objectName(java.lang.String name)
Set the object name
|
ObjectMeta.Builder |
options(ObjectMetaOptions objectMetaOptions)
Set the object meta options
|
public Builder(java.lang.String objectName)
objectName - the object namepublic Builder(ObjectMeta om)
om - the existing metapublic ObjectMeta.Builder objectName(java.lang.String name)
name - the namepublic ObjectMeta.Builder description(java.lang.String description)
description - the descriptionpublic ObjectMeta.Builder headers(io.nats.client.impl.Headers headers)
headers - the headerspublic ObjectMeta.Builder metadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata - the metadatapublic ObjectMeta.Builder options(ObjectMetaOptions objectMetaOptions)
objectMetaOptions - the objectMetaOptionspublic ObjectMeta.Builder chunkSize(int chunkSize)
chunkSize - the size in bytespublic ObjectMeta.Builder link(ObjectLink link)
link - the linkpublic ObjectMeta build()