@Stability(value=Experimental) public static final class ConsulBackendConfig.Builder extends Object implements software.amazon.jsii.Builder<ConsulBackendConfig>
ConsulBackendConfig
Constructor and Description |
---|
Builder() |
@Stability(value=Experimental) public ConsulBackendConfig.Builder accessToken(String accessToken)
ConsulBackendConfig.getAccessToken()
accessToken
- (Required) Access token. This parameter is required.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder path(String path)
ConsulBackendConfig.getPath()
path
- (Required) Path in the Consul KV store. This parameter is required.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder address(String address)
ConsulBackendConfig.getAddress()
address
- (Optional) DNS name and port of your Consul endpoint specified in the format dnsname:port.
Defaults to the local agent HTTP listener.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder caFile(String caFile)
ConsulBackendConfig.getCaFile()
caFile
- (Optional) A path to a PEM-encoded certificate authority used to verify the remote agent's certificate.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder certFile(String certFile)
ConsulBackendConfig.getCertFile()
certFile
- (Optional) A path to a PEM-encoded certificate provided to the remote agent;.
requires use of key_file.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder datacenter(String datacenter)
ConsulBackendConfig.getDatacenter()
datacenter
- (Optional) The datacenter to use.
Defaults to that of the agent.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder gzip(Boolean gzip)
ConsulBackendConfig.getGzip()
gzip
- (Optional) true to compress the state data using gzip, or false (the default) to leave it uncompressed.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder httpAuth(String httpAuth)
ConsulBackendConfig.getHttpAuth()
httpAuth
- (Optional) HTTP Basic Authentication credentials to be used when communicating with Consul, in the format of either user or user:pass.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder keyFile(String keyFile)
ConsulBackendConfig.getKeyFile()
keyFile
- (Optional) A path to a PEM-encoded private key, required if cert_file is specified.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder lock(Boolean lock)
ConsulBackendConfig.getLock()
lock
- (Optional) false to disable locking.
This defaults to true, but will require session permissions with Consul and
at least kv write permissions on $path/.lock to perform locking.this
@Stability(value=Experimental) public ConsulBackendConfig.Builder scheme(String scheme)
ConsulBackendConfig.getScheme()
scheme
- (Optional) Specifies what protocol to use when talking to the given address,either http or https.
SSL support can also be triggered by setting then environment variable CONSUL_HTTP_SSL to true.this
@Stability(value=Experimental) public ConsulBackendConfig build()
build
in interface software.amazon.jsii.Builder<ConsulBackendConfig>
ConsulBackendConfig
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.