Class PutRepositoryRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder<Request,Response,RequestBuilder>
org.elasticsearch.action.support.master.AcknowledgedRequestBuilder<PutRepositoryRequest,AcknowledgedResponse,PutRepositoryRequestBuilder>
org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryRequestBuilder
public class PutRepositoryRequestBuilder
extends AcknowledgedRequestBuilder<PutRepositoryRequest,AcknowledgedResponse,PutRepositoryRequestBuilder>
Register repository request builder
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionPutRepositoryRequestBuilder(ElasticsearchClient client, PutRepositoryAction action)
Constructs register repository requestPutRepositoryRequestBuilder(ElasticsearchClient client, PutRepositoryAction action, String name)
Constructs register repository request for the repository with a given name -
Method Summary
Modifier and TypeMethodDescriptionSets the repository namesetSettings(String source, org.elasticsearch.common.xcontent.XContentType xContentType)
Sets the repository settings in Json or Yaml formatsetSettings(Map<String,Object> source)
Sets the repository settingssetSettings(Settings settings)
Sets the repository settingssetSettings(Settings.Builder settings)
Sets the repository settingsSets the repository typesetVerify(boolean verify)
Sets whether or not repository should be verified after creationMethods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestBuilder
setTimeout, setTimeout
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequestBuilder
setMasterNodeTimeout, setMasterNodeTimeout
-
Constructor Details
-
PutRepositoryRequestBuilder
Constructs register repository request -
PutRepositoryRequestBuilder
public PutRepositoryRequestBuilder(ElasticsearchClient client, PutRepositoryAction action, String name)Constructs register repository request for the repository with a given name
-
-
Method Details
-
setName
Sets the repository name- Parameters:
name
- repository name- Returns:
- this builder
-
setType
Sets the repository type- Parameters:
type
- repository type- Returns:
- this builder
-
setSettings
Sets the repository settings- Parameters:
settings
- repository settings- Returns:
- this builder
-
setSettings
Sets the repository settings- Parameters:
settings
- repository settings builder- Returns:
- this builder
-
setSettings
public PutRepositoryRequestBuilder setSettings(String source, org.elasticsearch.common.xcontent.XContentType xContentType)Sets the repository settings in Json or Yaml format- Parameters:
source
- repository settingsxContentType
- the content type of the source- Returns:
- this builder
-
setSettings
Sets the repository settings- Parameters:
source
- repository settings- Returns:
- this builder
-
setVerify
Sets whether or not repository should be verified after creation- Parameters:
verify
- true if repository should be verified after registration, false otherwise- Returns:
- this builder
-