Class PutPipelineRequest

All Implemented Interfaces:
AckedRequest, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, TaskAwareRequest

@PublicApi(since="1.0.0") public class PutPipelineRequest extends AcknowledgedRequest<PutPipelineRequest> implements org.opensearch.core.xcontent.ToXContentObject
transport request to put a pipeline
Opensearch.api:
  • Constructor Details

    • PutPipelineRequest

      public PutPipelineRequest(String id, org.opensearch.core.common.bytes.BytesReference source, org.opensearch.core.xcontent.MediaType mediaType)
      Create a new pipeline request with the id and source along with the content type of the source
    • PutPipelineRequest

      public PutPipelineRequest(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • getId

      public String getId()
    • getSource

      public org.opensearch.core.common.bytes.BytesReference getSource()
    • getMediaType

      public org.opensearch.core.xcontent.MediaType getMediaType()
    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Overrides:
      writeTo in class AcknowledgedRequest<PutPipelineRequest>
      Throws:
      IOException
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException