Class EnrollNodeResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<EnrollNodeResponse.Builder>
co.elastic.clients.elasticsearch.security.EnrollNodeResponse.Builder
- All Implemented Interfaces:
WithJson<EnrollNodeResponse.Builder>
,ObjectBuilder<EnrollNodeResponse>
- Enclosing class:
- EnrollNodeResponse
public static class EnrollNodeResponse.Builder
extends WithJsonObjectBuilderBase<EnrollNodeResponse.Builder>
implements ObjectBuilder<EnrollNodeResponse>
Builder for
EnrollNodeResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aEnrollNodeResponse
.httpCaCert
(String value) Required - The CA certificate that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.Required - The CA private key that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.nodesAddresses
(String value, String... values) Required - A list of transport addresses in the form ofhost:port
for the nodes that are already members of the cluster.nodesAddresses
(List<String> list) Required - A list of transport addresses in the form ofhost:port
for the nodes that are already members of the cluster.protected EnrollNodeResponse.Builder
self()
transportCaCert
(String value) Required - The CA certificate that is used to sign the TLS certificate for the transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.transportCert
(String value) Required - The certificate that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.transportKey
(String value) Required - The private key that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpCaKey
Required - The CA private key that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.API name:
http_ca_key
-
httpCaCert
Required - The CA certificate that can be used by the new node in order to sign its certificate for the HTTP layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.API name:
http_ca_cert
-
transportCaCert
Required - The CA certificate that is used to sign the TLS certificate for the transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.API name:
transport_ca_cert
-
transportKey
Required - The private key that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the key.API name:
transport_key
-
transportCert
Required - The certificate that the node can use for TLS for its transport layer, as a Base64 encoded string of the ASN.1 DER encoding of the certificate.API name:
transport_cert
-
nodesAddresses
Required - A list of transport addresses in the form ofhost:port
for the nodes that are already members of the cluster.API name:
nodes_addresses
Adds all elements of
list
tonodesAddresses
. -
nodesAddresses
Required - A list of transport addresses in the form ofhost:port
for the nodes that are already members of the cluster.API name:
nodes_addresses
Adds one or more values to
nodesAddresses
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<EnrollNodeResponse.Builder>
-
build
Builds aEnrollNodeResponse
.- Specified by:
build
in interfaceObjectBuilder<EnrollNodeResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-