Package com.hashicorp.cdktf
Class HttpBackendConfig.Builder
java.lang.Object
com.hashicorp.cdktf.HttpBackendConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpBackendConfig>
- Enclosing interface:
HttpBackendConfig
@Stability(Experimental)
public static final class HttpBackendConfig.Builder
extends Object
implements software.amazon.jsii.Builder<HttpBackendConfig>
A builder for
HttpBackendConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofHttpBackendConfig.getAddress()
build()
Builds the configured instance.lockAddress
(String lockAddress) Sets the value ofHttpBackendConfig.getLockAddress()
lockMethod
(String lockMethod) Sets the value ofHttpBackendConfig.getLockMethod()
Sets the value ofHttpBackendConfig.getPassword()
Sets the value ofHttpBackendConfig.getRetryMax()
retryWaitMax
(Number retryWaitMax) Sets the value ofHttpBackendConfig.getRetryWaitMax()
retryWaitMin
(Number retryWaitMin) Sets the value ofHttpBackendConfig.getRetryWaitMin()
skipCertVerification
(Boolean skipCertVerification) Sets the value ofHttpBackendConfig.getSkipCertVerification()
unlockAddress
(String unlockAddress) Sets the value ofHttpBackendConfig.getUnlockAddress()
unlockMethod
(String unlockMethod) Sets the value ofHttpBackendConfig.getUnlockMethod()
updateMethod
(String updateMethod) Sets the value ofHttpBackendConfig.getUpdateMethod()
Sets the value ofHttpBackendConfig.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
address
Sets the value ofHttpBackendConfig.getAddress()
- Parameters:
address
- (Required) The address of the REST endpoint. This parameter is required.- Returns:
this
-
lockAddress
Sets the value ofHttpBackendConfig.getLockAddress()
- Parameters:
lockAddress
- (Optional) The address of the lock REST endpoint. Defaults to disabled.- Returns:
this
-
lockMethod
Sets the value ofHttpBackendConfig.getLockMethod()
- Parameters:
lockMethod
- (Optional) The HTTP method to use when locking. Defaults to LOCK.- Returns:
this
-
password
Sets the value ofHttpBackendConfig.getPassword()
- Parameters:
password
- (Optional) The password for HTTP basic authentication.- Returns:
this
-
retryMax
Sets the value ofHttpBackendConfig.getRetryMax()
- Parameters:
retryMax
- (Optional) The number of HTTP request retries. Defaults to 2.- Returns:
this
-
retryWaitMax
Sets the value ofHttpBackendConfig.getRetryWaitMax()
- Parameters:
retryWaitMax
- (Optional) The maximum time in seconds to wait between HTTP request attempts. Defaults to 30.- Returns:
this
-
retryWaitMin
Sets the value ofHttpBackendConfig.getRetryWaitMin()
- Parameters:
retryWaitMin
- (Optional) The minimum time in seconds to wait between HTTP request attempts. Defaults to 1.- Returns:
this
-
skipCertVerification
@Stability(Experimental) public HttpBackendConfig.Builder skipCertVerification(Boolean skipCertVerification) Sets the value ofHttpBackendConfig.getSkipCertVerification()
- Parameters:
skipCertVerification
- (Optional) Whether to skip TLS verification. Defaults to false.- Returns:
this
-
unlockAddress
Sets the value ofHttpBackendConfig.getUnlockAddress()
- Parameters:
unlockAddress
- (Optional) The address of the unlock REST endpoint. Defaults to disabled.- Returns:
this
-
unlockMethod
Sets the value ofHttpBackendConfig.getUnlockMethod()
- Parameters:
unlockMethod
- (Optional) The HTTP method to use when unlocking. Defaults to UNLOCK.- Returns:
this
-
updateMethod
Sets the value ofHttpBackendConfig.getUpdateMethod()
- Parameters:
updateMethod
- (Optional) HTTP method to use when updating state. Defaults to POST.- Returns:
this
-
username
Sets the value ofHttpBackendConfig.getUsername()
- Parameters:
username
- (Optional) The username for HTTP basic authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpBackendConfig>
- Returns:
- a new instance of
HttpBackendConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-