Class HttpInputResponseResult.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HttpInputResponseResult.Builder>
co.elastic.clients.elasticsearch.watcher.HttpInputResponseResult.Builder
- All Implemented Interfaces:
WithJson<HttpInputResponseResult.Builder>,ObjectBuilder<HttpInputResponseResult>
- Enclosing class:
- HttpInputResponseResult
public static class HttpInputResponseResult.Builder extends WithJsonObjectBuilderBase<HttpInputResponseResult.Builder> implements ObjectBuilder<HttpInputResponseResult>
Builder for
HttpInputResponseResult.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HttpInputResponseResult.Builderbody(java.lang.String value)Required - API name:bodyHttpInputResponseResultbuild()Builds aHttpInputResponseResult.HttpInputResponseResult.Builderheaders(java.lang.String key, java.util.List<java.lang.String> value)Required - API name:headersHttpInputResponseResult.Builderheaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> map)Required - API name:headersprotected HttpInputResponseResult.Builderself()HttpInputResponseResult.Builderstatus(int value)Required - API name:statusMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
body
Required - API name:body -
headers
public final HttpInputResponseResult.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> map)Required - API name:headersAdds all entries of
maptoheaders. -
headers
public final HttpInputResponseResult.Builder headers(java.lang.String key, java.util.List<java.lang.String> value)Required - API name:headersAdds an entry to
headers. -
status
Required - API name:status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<HttpInputResponseResult.Builder>
-
build
Builds aHttpInputResponseResult.- Specified by:
buildin interfaceObjectBuilder<HttpInputResponseResult>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-