Class CloudbuildBitbucketServerConfigConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • apiKey

        @Stability(Stable)
        public CloudbuildBitbucketServerConfigConfig.Builder apiKey​(String apiKey)
        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)
        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)
        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
      • username

        @Stability(Stable)
        public CloudbuildBitbucketServerConfigConfig.Builder username​(String username)
        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)
        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)
        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)
        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
      • sslCa

        @Stability(Stable)
        public CloudbuildBitbucketServerConfigConfig.Builder sslCa​(String sslCa)
        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
      • connection

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfigConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfigConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.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 of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this