Package com.hashicorp.cdktf
Class DataTerraformRemoteStateHttpConfig.Builder
java.lang.Object
com.hashicorp.cdktf.DataTerraformRemoteStateHttpConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DataTerraformRemoteStateHttpConfig>
- Enclosing interface:
DataTerraformRemoteStateHttpConfig
@Stability(Experimental)
public static final class DataTerraformRemoteStateHttpConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DataTerraformRemoteStateHttpConfig>
A builder for
DataTerraformRemoteStateHttpConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofHttpBackendConfig.getAddress()build()Builds the configured instance.clientCaCertificatePem(String clientCaCertificatePem) Sets the value ofHttpBackendConfig.getClientCaCertificatePem()clientCertificatePem(String clientCertificatePem) Sets the value ofHttpBackendConfig.getClientCertificatePem()clientPrivateKeyPem(String clientPrivateKeyPem) Sets the value ofHttpBackendConfig.getClientPrivateKeyPem()Sets the value ofDataTerraformRemoteStateConfig.getDefaults()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()Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
defaults
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder defaults(Map<String, ? extends Object> defaults) Sets the value ofDataTerraformRemoteStateConfig.getDefaults()- Parameters:
defaults- the value to be set.- Returns:
this
-
workspace
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder workspace(String workspace) Sets the value ofDataTerraformRemoteStateConfig.getWorkspace()- Parameters:
workspace- the value to be set.- Returns:
this
-
address
Sets the value ofHttpBackendConfig.getAddress()- Parameters:
address- (Required) The address of the REST endpoint. This parameter is required.- Returns:
this
-
clientCaCertificatePem
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder clientCaCertificatePem(String clientCaCertificatePem) Sets the value ofHttpBackendConfig.getClientCaCertificatePem()- Parameters:
clientCaCertificatePem- (Optional) A PEM-encoded CA certificate chain used by the client to verify server certificates during TLS authentication.- Returns:
this
-
clientCertificatePem
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder clientCertificatePem(String clientCertificatePem) Sets the value ofHttpBackendConfig.getClientCertificatePem()- Parameters:
clientCertificatePem- (Optional) A PEM-encoded certificate used by the server to verify the client during mutual TLS (mTLS) authentication.- Returns:
this
-
clientPrivateKeyPem
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder clientPrivateKeyPem(String clientPrivateKeyPem) Sets the value ofHttpBackendConfig.getClientPrivateKeyPem()- Parameters:
clientPrivateKeyPem- (Optional) A PEM-encoded private key, required if client_certificate_pem is specified.- Returns:
this
-
lockAddress
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder lockAddress(String lockAddress) Sets the value ofHttpBackendConfig.getLockAddress()- Parameters:
lockAddress- (Optional) The address of the lock REST endpoint. Defaults to disabled.- Returns:
this
-
lockMethod
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder lockMethod(String lockMethod) Sets the value ofHttpBackendConfig.getLockMethod()- Parameters:
lockMethod- (Optional) The HTTP method to use when locking. Defaults to LOCK.- Returns:
this
-
password
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder password(String password) Sets the value ofHttpBackendConfig.getPassword()- Parameters:
password- (Optional) The password for HTTP basic authentication.- Returns:
this
-
retryMax
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder retryMax(Number retryMax) Sets the value ofHttpBackendConfig.getRetryMax()- Parameters:
retryMax- (Optional) The number of HTTP request retries. Defaults to 2.- Returns:
this
-
retryWaitMax
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder retryWaitMax(Number 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
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder retryWaitMin(Number 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 DataTerraformRemoteStateHttpConfig.Builder skipCertVerification(Boolean skipCertVerification) Sets the value ofHttpBackendConfig.getSkipCertVerification()- Parameters:
skipCertVerification- (Optional) Whether to skip TLS verification. Defaults to false.- Returns:
this
-
unlockAddress
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder unlockAddress(String unlockAddress) Sets the value ofHttpBackendConfig.getUnlockAddress()- Parameters:
unlockAddress- (Optional) The address of the unlock REST endpoint. Defaults to disabled.- Returns:
this
-
unlockMethod
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder unlockMethod(String unlockMethod) Sets the value ofHttpBackendConfig.getUnlockMethod()- Parameters:
unlockMethod- (Optional) The HTTP method to use when unlocking. Defaults to UNLOCK.- Returns:
this
-
updateMethod
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder updateMethod(String updateMethod) Sets the value ofHttpBackendConfig.getUpdateMethod()- Parameters:
updateMethod- (Optional) HTTP method to use when updating state. Defaults to POST.- Returns:
this
-
username
@Stability(Experimental) public DataTerraformRemoteStateHttpConfig.Builder username(String username) Sets the value ofHttpBackendConfig.getUsername()- Parameters:
username- (Optional) The username for HTTP basic authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DataTerraformRemoteStateHttpConfig>- Returns:
- a new instance of
DataTerraformRemoteStateHttpConfig - Throws:
NullPointerException- if any required attribute was not provided
-