Class ElasticsearchLogstashClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLogstashClient>
co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ElasticsearchLogstashClient
extends ApiClient<ElasticsearchTransport,ElasticsearchLogstashClient>
Client for the logstash namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchLogstashClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeletePipeline
(DeletePipelineRequest request) Deletes a pipeline used for Logstash Central Management.final BooleanResponse
Deletes a pipeline used for Logstash Central Management.Retrieves pipelines used for Logstash Central Management.getPipeline
(GetPipelineRequest request) Retrieves pipelines used for Logstash Central Management.final GetPipelineResponse
Retrieves pipelines used for Logstash Central Management.putPipeline
(PutPipelineRequest request) Creates or updates a pipeline used for Logstash Central Management.final BooleanResponse
Creates or updates a pipeline used for Logstash Central Management.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchLogstashClient
-
ElasticsearchLogstashClient
public ElasticsearchLogstashClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchLogstashClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchLogstashClient>
-
deletePipeline
public BooleanResponse deletePipeline(DeletePipelineRequest request) throws IOException, ElasticsearchException Deletes a pipeline used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
deletePipeline
public final BooleanResponse deletePipeline(Function<DeletePipelineRequest.Builder, ObjectBuilder<DeletePipelineRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a pipeline used for Logstash Central Management.- Parameters:
fn
- a function that initializes a builder to create theDeletePipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException, ElasticsearchException Retrieves pipelines used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
public final GetPipelineResponse getPipeline(Function<GetPipelineRequest.Builder, ObjectBuilder<GetPipelineRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves pipelines used for Logstash Central Management.- Parameters:
fn
- a function that initializes a builder to create theGetPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-
getPipeline
Retrieves pipelines used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public BooleanResponse putPipeline(PutPipelineRequest request) throws IOException, ElasticsearchException Creates or updates a pipeline used for Logstash Central Management.- Throws:
IOException
ElasticsearchException
- See Also:
-
putPipeline
public final BooleanResponse putPipeline(Function<PutPipelineRequest.Builder, ObjectBuilder<PutPipelineRequest>> fn) throws IOException, ElasticsearchExceptionCreates or updates a pipeline used for Logstash Central Management.- Parameters:
fn
- a function that initializes a builder to create thePutPipelineRequest
- Throws:
IOException
ElasticsearchException
- See Also:
-