Class CloudbuildBitbucketServerConfig.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public CloudbuildBitbucketServerConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • apiKey

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder apiKey​(String apiKey)
        Immutable.

        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}

        Parameters:
        apiKey - Immutable. This parameter is required.
        Returns:
        this
      • configId

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder configId​(String configId)
        The ID to use for the BitbucketServerConfig, which will become the final component of the BitbucketServerConfig's resource name.

        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}

        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.
        Returns:
        this
      • hostUri

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder hostUri​(String hostUri)
        Immutable.

        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}

        Parameters:
        hostUri - Immutable. This parameter is required.
        Returns:
        this
      • location

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder location​(String location)
        The location of this bitbucket server config.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#location CloudbuildBitbucketServerConfig#location}

        Parameters:
        location - The location of this bitbucket server config. This parameter is required.
        Returns:
        this
      • secrets

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder secrets​(CloudbuildBitbucketServerConfigSecrets secrets)
        secrets block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#secrets CloudbuildBitbucketServerConfig#secrets}

        Parameters:
        secrets - secrets block. This parameter is required.
        Returns:
        this
      • username

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder username​(String username)
        Username of the account Cloud Build will use on Bitbucket Server.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_bitbucket_server_config#username CloudbuildBitbucketServerConfig#username}

        Parameters:
        username - Username of the account Cloud Build will use on Bitbucket Server. This parameter is required.
        Returns:
        this
      • connectedRepositories

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder connectedRepositories​(com.hashicorp.cdktf.IResolvable 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}

        Parameters:
        connectedRepositories - connected_repositories block. This parameter is required.
        Returns:
        this
      • connectedRepositories

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder connectedRepositories​(List<? extends CloudbuildBitbucketServerConfigConnectedRepositories> 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}

        Parameters:
        connectedRepositories - connected_repositories block. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder id​(String 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.

        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}. This parameter is required.
        Returns:
        this
      • peeredNetwork

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder peeredNetwork​(String 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}

        Parameters:
        peeredNetwork - The network to be used when reaching out to the Bitbucket Server instance. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder project​(String 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}.

        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}. This parameter is required.
        Returns:
        this
      • sslCa

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder sslCa​(String 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}

        Parameters:
        sslCa - SSL certificate to use for requests to Bitbucket Server. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public CloudbuildBitbucketServerConfig.Builder timeouts​(CloudbuildBitbucketServerConfigTimeouts 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}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this