Class PutRepositoryRequestBuilder


Register repository request builder
  • Constructor Details

  • Method Details

    • setName

      public PutRepositoryRequestBuilder setName(String name)
      Sets the repository name
      Parameters:
      name - repository name
      Returns:
      this builder
    • setType

      public PutRepositoryRequestBuilder setType(String type)
      Sets the repository type
      Parameters:
      type - repository type
      Returns:
      this builder
    • setSettings

      public PutRepositoryRequestBuilder setSettings(Settings settings)
      Sets the repository settings
      Parameters:
      settings - repository settings
      Returns:
      this builder
    • setSettings

      public PutRepositoryRequestBuilder setSettings(Settings.Builder settings)
      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 settings
      xContentType - the content type of the source
      Returns:
      this builder
    • setSettings

      public PutRepositoryRequestBuilder setSettings(Map<String,Object> source)
      Sets the repository settings
      Parameters:
      source - repository settings
      Returns:
      this builder
    • setVerify

      public PutRepositoryRequestBuilder setVerify(boolean verify)
      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