Class PutDataLifecycleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDataLifecycleRequest.Builder>
co.elastic.clients.elasticsearch.indices.PutDataLifecycleRequest.Builder
- All Implemented Interfaces:
WithJson<PutDataLifecycleRequest.Builder>,ObjectBuilder<PutDataLifecycleRequest>
- Enclosing class:
- PutDataLifecycleRequest
public static class PutDataLifecycleRequest.Builder
extends RequestBase.AbstractBuilder<PutDataLifecycleRequest.Builder>
implements ObjectBuilder<PutDataLifecycleRequest>
Builder for
PutDataLifecycleRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDataLifecycleRequest.dataRetention(Time value) API name:data_retentionAPI name:data_retentionexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether wildcard expressions should get expanded to open or closed indices (default: open)expandWildcards(List<ExpandWildcard> list) Whether wildcard expressions should get expanded to open or closed indices (default: open)masterTimeout(Time value) Specify timeout for connection to masterSpecify timeout for connection to masterRequired - A comma-separated list of data streams whose lifecycle will be updated; use*to set the lifecycle to all data streamsRequired - A comma-separated list of data streams whose lifecycle will be updated; use*to set the lifecycle to all data streamsprotected PutDataLifecycleRequest.Builderself()Explicit timestamp for the documentExplicit timestamp for the documentMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataRetention
API name:data_retention -
dataRetention
public final PutDataLifecycleRequest.Builder dataRetention(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:data_retention -
expandWildcards
Whether wildcard expressions should get expanded to open or closed indices (default: open)API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final PutDataLifecycleRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether wildcard expressions should get expanded to open or closed indices (default: open)API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
masterTimeout
public final PutDataLifecycleRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Specify timeout for connection to masterAPI name:
master_timeout -
name
Required - A comma-separated list of data streams whose lifecycle will be updated; use*to set the lifecycle to all data streamsAPI name:
nameAdds all elements of
listtoname. -
name
Required - A comma-separated list of data streams whose lifecycle will be updated; use*to set the lifecycle to all data streamsAPI name:
nameAdds one or more values to
name. -
timeout
Explicit timestamp for the documentAPI name:
timeout -
timeout
Explicit timestamp for the documentAPI name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutDataLifecycleRequest.Builder>
-
build
Builds aPutDataLifecycleRequest.- Specified by:
buildin interfaceObjectBuilder<PutDataLifecycleRequest>- Throws:
NullPointerException- if some of the required fields are null.
-