Class ShardStore.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.shard_stores.ShardStore.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardStore>
- Enclosing class:
- ShardStore
public static class ShardStore.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardStore>
Builder forShardStore
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardStore.Builder
allocation(ShardStoreAllocation value)
Required - API name:allocation
ShardStore.Builder
allocationId(java.lang.String value)
Required - API name:allocation_id
ShardStore.Builder
attributes(java.lang.String key, JsonData value)
Required - API name:attributes
ShardStore.Builder
attributes(java.util.Map<java.lang.String,JsonData> map)
Required - API name:attributes
ShardStore
build()
Builds aShardStore
.ShardStore.Builder
id(java.lang.String value)
Required - API name:id
ShardStore.Builder
legacyVersion(long value)
Required - API name:legacy_version
ShardStore.Builder
name(java.lang.String value)
Required - API name:name
ShardStore.Builder
storeException(java.util.function.Function<ShardStoreException.Builder,ObjectBuilder<ShardStoreException>> fn)
Required - API name:store_exception
ShardStore.Builder
storeException(ShardStoreException value)
Required - API name:store_exception
ShardStore.Builder
transportAddress(java.lang.String value)
Required - API name:transport_address
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allocation
public final ShardStore.Builder allocation(ShardStoreAllocation value)
Required - API name:allocation
-
allocationId
public final ShardStore.Builder allocationId(java.lang.String value)
Required - API name:allocation_id
-
attributes
public final ShardStore.Builder attributes(java.util.Map<java.lang.String,JsonData> map)
Required - API name:attributes
Adds all entries of
map
toattributes
.
-
attributes
public final ShardStore.Builder attributes(java.lang.String key, JsonData value)
Required - API name:attributes
Adds an entry to
attributes
.
-
id
public final ShardStore.Builder id(java.lang.String value)
Required - API name:id
-
legacyVersion
public final ShardStore.Builder legacyVersion(long value)
Required - API name:legacy_version
-
name
public final ShardStore.Builder name(java.lang.String value)
Required - API name:name
-
storeException
public final ShardStore.Builder storeException(ShardStoreException value)
Required - API name:store_exception
-
storeException
public final ShardStore.Builder storeException(java.util.function.Function<ShardStoreException.Builder,ObjectBuilder<ShardStoreException>> fn)
Required - API name:store_exception
-
transportAddress
public final ShardStore.Builder transportAddress(java.lang.String value)
Required - API name:transport_address
-
build
public ShardStore build()
Builds aShardStore
.- Specified by:
build
in interfaceObjectBuilder<ShardStore>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-