Class PutDataSourceRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutDataSourceRequest.Builder>
co.elastic.clients.elasticsearch.esql.PutDataSourceRequest.Builder
- All Implemented Interfaces:
WithJson<PutDataSourceRequest.Builder>,ObjectBuilder<PutDataSourceRequest>
- Enclosing class:
- PutDataSourceRequest
public static class PutDataSourceRequest.Builder
extends RequestBase.AbstractBuilder<PutDataSourceRequest.Builder>
implements ObjectBuilder<PutDataSourceRequest>
Builder for
PutDataSourceRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPutDataSourceRequest.description(String value) A free-text description of the data source.masterTimeout(Time value) Period to wait for a connection to the master node.Period to wait for a connection to the master node.Required - The data source name to create or update.protected PutDataSourceRequest.Builderself()Type-specific connection and authentication settings.Type-specific connection and authentication settings.The time to wait for the request to be completed.The time to wait for the request to be completed.Required - The data source type.Methods 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
-
description
A free-text description of the data source.API name:
description -
masterTimeout
Period to wait for a connection to the master node.API name:
master_timeout -
masterTimeout
public final PutDataSourceRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Period to wait for a connection to the master node.API name:
master_timeout -
name
Required - The data source name to create or update.API name:
name -
settings
Type-specific connection and authentication settings. Fors3, connection settings includeregionandendpoint. Authentication settings includeauthand the credentials required by the selected authentication method.API name:
settingsAdds all entries of
maptosettings. -
settings
Type-specific connection and authentication settings. Fors3, connection settings includeregionandendpoint. Authentication settings includeauthand the credentials required by the selected authentication method.API name:
settingsAdds an entry to
settings. -
timeout
The time to wait for the request to be completed.API name:
timeout -
timeout
The time to wait for the request to be completed.API name:
timeout -
type
Required - The data source type. Currently,s3is supported. The value must be lowercase and contain no whitespace.API name:
type -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutDataSourceRequest.Builder>
-
build
Builds aPutDataSourceRequest.- Specified by:
buildin interfaceObjectBuilder<PutDataSourceRequest>- Throws:
NullPointerException- if some of the required fields are null.
-