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 SummaryConstructors
- 
Method SummaryModifier 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:portfor the nodes that are already members of the cluster.nodesAddresses(List<String> list) Required - A list of transport addresses in the form ofhost:portfor the nodes that are already members of the cluster.protected EnrollNodeResponse.Builderself()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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
httpCaKeyRequired - 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
- 
httpCaCertRequired - 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
- 
transportCaCertRequired - 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
- 
transportKeyRequired - 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
- 
transportCertRequired - 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
- 
nodesAddressesRequired - A list of transport addresses in the form ofhost:portfor the nodes that are already members of the cluster.API name: nodes_addressesAdds all elements of listtonodesAddresses.
- 
nodesAddressesRequired - A list of transport addresses in the form ofhost:portfor the nodes that are already members of the cluster.API name: nodes_addressesAdds one or more values to nodesAddresses.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<EnrollNodeResponse.Builder>
 
- 
buildBuilds aEnrollNodeResponse.- Specified by:
- buildin interface- ObjectBuilder<EnrollNodeResponse>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-