Class CloudbuildBitbucketServerConfigConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_bitbucket_server_config.CloudbuildBitbucketServerConfigConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildBitbucketServerConfigConfig>
- Enclosing interface:
- CloudbuildBitbucketServerConfigConfig
@Stability(Stable) public static final class CloudbuildBitbucketServerConfigConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildBitbucketServerConfigConfig>
A builder forCloudbuildBitbucketServerConfigConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
apiKey
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder apiKey(String apiKey)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getApiKey()- Parameters:
apiKey- Immutable. This parameter is required. API Key that will be attached to webhook. Once this field has been set, it cannot be changed. Changing this field will result in deleting/ recreating the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#api_key CloudbuildBitbucketServerConfig#api_key}- Returns:
this
-
configId
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder configId(String configId)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getConfigId()- Parameters:
configId- The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#config_id CloudbuildBitbucketServerConfig#config_id}- Returns:
this
-
hostUri
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder hostUri(String hostUri)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getHostUri()- Parameters:
hostUri- Immutable. This parameter is required. The URI of the Bitbucket Server host. Once this field has been set, it cannot be changed. If you need to change it, please create another BitbucketServerConfig. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#host_uri CloudbuildBitbucketServerConfig#host_uri}- Returns:
this
-
location
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder location(String location)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getLocation()- Parameters:
location- The location of this bitbucket server config. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#location CloudbuildBitbucketServerConfig#location}- Returns:
this
-
secrets
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder secrets(CloudbuildBitbucketServerConfigSecrets secrets)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getSecrets()- Parameters:
secrets- secrets block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#secrets CloudbuildBitbucketServerConfig#secrets}- Returns:
this
-
username
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder username(String username)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getUsername()- Parameters:
username- Username of the account Cloud Build will use on Bitbucket Server. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#username CloudbuildBitbucketServerConfig#username}- Returns:
this
-
connectedRepositories
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder connectedRepositories(com.hashicorp.cdktf.IResolvable connectedRepositories)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getConnectedRepositories()- Parameters:
connectedRepositories- connected_repositories block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#connected_repositories CloudbuildBitbucketServerConfig#connected_repositories}- Returns:
this
-
connectedRepositories
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder connectedRepositories(List<? extends CloudbuildBitbucketServerConfigConnectedRepositories> connectedRepositories)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getConnectedRepositories()- Parameters:
connectedRepositories- connected_repositories block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#connected_repositories CloudbuildBitbucketServerConfig#connected_repositories}- Returns:
this
-
id
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder id(String id)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#id CloudbuildBitbucketServerConfig#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
peeredNetwork
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder peeredNetwork(String peeredNetwork)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getPeeredNetwork()- Parameters:
peeredNetwork- The network to be used when reaching out to the Bitbucket Server instance. The VPC network must be enabled for private service connection. This should be set if the Bitbucket Server instance is hosted on-premises and not reachable by public internet. If this field is left empty, no network peering will occur and calls to the Bitbucket Server instance will be made over the public internet. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number or id and {network} is the name of a VPC network in the project. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#peered_network CloudbuildBitbucketServerConfig#peered_network}- Returns:
this
-
project
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder project(String project)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#project CloudbuildBitbucketServerConfig#project}.- Returns:
this
-
sslCa
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder sslCa(String sslCa)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getSslCa()- Parameters:
sslCa- SSL certificate to use for requests to Bitbucket Server. The format should be PEM format but the extension can be one of .pem, .cer, or .crt. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#ssl_ca CloudbuildBitbucketServerConfig#ssl_ca}- Returns:
this
-
timeouts
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig.Builder timeouts(CloudbuildBitbucketServerConfigTimeouts timeouts)
Sets the value ofCloudbuildBitbucketServerConfigConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#timeouts CloudbuildBitbucketServerConfig#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudbuildBitbucketServerConfigConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudbuildBitbucketServerConfigConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildBitbucketServerConfigConfig>- Returns:
- a new instance of
CloudbuildBitbucketServerConfigConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-