Class ArtifactRegistryRepositoryConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • format

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder format​(String format)
        Parameters:
        format - The format of packages that are stored in the repository. This parameter is required. Supported formats can be found [here](https://cloud.google.com/artifact-registry/docs/supported-formats). You can only create alpha formats if you are a member of the [alpha user group](https://cloud.google.com/artifact-registry/docs/supported-formats#alpha-access). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#format ArtifactRegistryRepository#format}
        Returns:
        this
      • repositoryId

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder repositoryId​(String repositoryId)
        Parameters:
        repositoryId - The last part of the repository name, for example: "repo1". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#repository_id ArtifactRegistryRepository#repository_id}
        Returns:
        this
      • cleanupPolicies

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder cleanupPolicies​(com.hashicorp.cdktf.IResolvable cleanupPolicies)
        Parameters:
        cleanupPolicies - cleanup_policies block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#cleanup_policies ArtifactRegistryRepository#cleanup_policies}
        Returns:
        this
      • cleanupPolicyDryRun

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder cleanupPolicyDryRun​(Boolean cleanupPolicyDryRun)
        Parameters:
        cleanupPolicyDryRun - If true, the cleanup pipeline is prevented from deleting versions in this repository. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#cleanup_policy_dry_run ArtifactRegistryRepository#cleanup_policy_dry_run}
        Returns:
        this
      • cleanupPolicyDryRun

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder cleanupPolicyDryRun​(com.hashicorp.cdktf.IResolvable cleanupPolicyDryRun)
        Parameters:
        cleanupPolicyDryRun - If true, the cleanup pipeline is prevented from deleting versions in this repository. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#cleanup_policy_dry_run ArtifactRegistryRepository#cleanup_policy_dry_run}
        Returns:
        this
      • id

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#id ArtifactRegistryRepository#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
      • kmsKeyName

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder kmsKeyName​(String kmsKeyName)
        Parameters:
        kmsKeyName - The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: 'projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key'. This value may not be changed after the Repository has been created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#kms_key_name ArtifactRegistryRepository#kms_key_name}
        Returns:
        this
      • labels

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder labels​(Map<String,​String> labels)
        Parameters:
        labels - Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#labels ArtifactRegistryRepository#labels}
        Returns:
        this
      • mode

        @Stability(Stable)
        public ArtifactRegistryRepositoryConfig.Builder mode​(String mode)
        Parameters:
        mode - The mode configures the repository to serve artifacts from different sources. Default value: "STANDARD_REPOSITORY" Possible values: ["STANDARD_REPOSITORY", "VIRTUAL_REPOSITORY", "REMOTE_REPOSITORY"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#mode ArtifactRegistryRepository#mode}
        Returns:
        this
      • connection

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

        @Stability(Experimental)
        public ArtifactRegistryRepositoryConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this