Class SourceOnlyRepositorySettingsForReadOnlyUrl.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SourceOnlyRepositorySettingsForReadOnlyUrl.Builder>
co.elastic.clients.elasticsearch.snapshot.SourceOnlyRepositorySettingsForReadOnlyUrl.Builder
- All Implemented Interfaces:
WithJson<SourceOnlyRepositorySettingsForReadOnlyUrl.Builder>,ObjectBuilder<SourceOnlyRepositorySettingsForReadOnlyUrl>
- Enclosing class:
- SourceOnlyRepositorySettingsForReadOnlyUrl
public static class SourceOnlyRepositorySettingsForReadOnlyUrl.Builder
extends WithJsonObjectBuilderBase<SourceOnlyRepositorySettingsForReadOnlyUrl.Builder>
implements ObjectBuilder<SourceOnlyRepositorySettingsForReadOnlyUrl>
Builder for
SourceOnlyRepositorySettingsForReadOnlyUrl.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()httpMaxRetries(Integer value) The maximum number of retries for HTTP and HTTPS URLs.httpSocketTimeout(Time value) The maximum wait time for data transfers over a connection.The maximum wait time for data transfers over a connection.maxNumberOfSnapshots(Integer value) The maximum number of snapshots the repository can contain.self()Required - The URL location of the root of the shared filesystem repository.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
-
httpMaxRetries
public final SourceOnlyRepositorySettingsForReadOnlyUrl.Builder httpMaxRetries(@Nullable Integer value) The maximum number of retries for HTTP and HTTPS URLs.API name:
http_max_retries -
httpSocketTimeout
public final SourceOnlyRepositorySettingsForReadOnlyUrl.Builder httpSocketTimeout(@Nullable Time value) The maximum wait time for data transfers over a connection.API name:
http_socket_timeout -
httpSocketTimeout
public final SourceOnlyRepositorySettingsForReadOnlyUrl.Builder httpSocketTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The maximum wait time for data transfers over a connection.API name:
http_socket_timeout -
maxNumberOfSnapshots
public final SourceOnlyRepositorySettingsForReadOnlyUrl.Builder maxNumberOfSnapshots(@Nullable Integer value) The maximum number of snapshots the repository can contain. The default isInteger.MAX_VALUE, which is 2^31-1 or2147483647.API name:
max_number_of_snapshots -
url
Required - The URL location of the root of the shared filesystem repository. The following protocols are supported:fileftphttphttpsjar
URLs using the HTTP, HTTPS, or FTP protocols must be explicitly allowed with the
repositories.url.allowed_urlscluster setting. This setting supports wildcards in the place of a host, path, query, or fragment in the URL.URLs using the file protocol must point to the location of a shared filesystem accessible to all master and data nodes in the cluster. This location must be registered in the
path.reposetting. You don't need to register URLs using the FTP, HTTP, HTTPS, or JAR protocols in thepath.reposetting.API name:
url -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SourceOnlyRepositorySettingsForReadOnlyUrl.Builder>
-
build
- Specified by:
buildin interfaceObjectBuilder<SourceOnlyRepositorySettingsForReadOnlyUrl>- Throws:
NullPointerException- if some of the required fields are null.
-