Class ArtifactRegistryRepositoryConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.artifact_registry_repository.ArtifactRegistryRepositoryConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArtifactRegistryRepositoryConfig>
- Enclosing interface:
- ArtifactRegistryRepositoryConfig
@Stability(Stable) public static final class ArtifactRegistryRepositoryConfig.Builder extends Object implements software.amazon.jsii.Builder<ArtifactRegistryRepositoryConfig>
A builder forArtifactRegistryRepositoryConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
format
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder format(String format)
Sets the value ofArtifactRegistryRepositoryConfig.getFormat()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getRepositoryId()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getCleanupPolicies()- 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
-
cleanupPolicies
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder cleanupPolicies(List<? extends ArtifactRegistryRepositoryCleanupPolicies> cleanupPolicies)
Sets the value ofArtifactRegistryRepositoryConfig.getCleanupPolicies()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getCleanupPolicyDryRun()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getCleanupPolicyDryRun()- 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
-
description
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder description(String description)
Sets the value ofArtifactRegistryRepositoryConfig.getDescription()- Parameters:
description- The user-provided description of the repository. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#description ArtifactRegistryRepository#description}- Returns:
this
-
dockerConfig
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder dockerConfig(ArtifactRegistryRepositoryDockerConfig dockerConfig)
Sets the value ofArtifactRegistryRepositoryConfig.getDockerConfig()- Parameters:
dockerConfig- docker_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#docker_config ArtifactRegistryRepository#docker_config}- Returns:
this
-
id
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder id(String id)
Sets the value ofArtifactRegistryRepositoryConfig.getId()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getKmsKeyName()- 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)
Sets the value ofArtifactRegistryRepositoryConfig.getLabels()- 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
-
location
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder location(String location)
Sets the value ofArtifactRegistryRepositoryConfig.getLocation()- Parameters:
location- The name of the location this repository is located in. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#location ArtifactRegistryRepository#location}- Returns:
this
-
mavenConfig
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder mavenConfig(ArtifactRegistryRepositoryMavenConfig mavenConfig)
Sets the value ofArtifactRegistryRepositoryConfig.getMavenConfig()- Parameters:
mavenConfig- maven_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#maven_config ArtifactRegistryRepository#maven_config}- Returns:
this
-
mode
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder mode(String mode)
Sets the value ofArtifactRegistryRepositoryConfig.getMode()- 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
-
project
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder project(String project)
Sets the value ofArtifactRegistryRepositoryConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#project ArtifactRegistryRepository#project}.- Returns:
this
-
remoteRepositoryConfig
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder remoteRepositoryConfig(ArtifactRegistryRepositoryRemoteRepositoryConfig remoteRepositoryConfig)
Sets the value ofArtifactRegistryRepositoryConfig.getRemoteRepositoryConfig()- Parameters:
remoteRepositoryConfig- remote_repository_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#remote_repository_config ArtifactRegistryRepository#remote_repository_config}- Returns:
this
-
timeouts
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder timeouts(ArtifactRegistryRepositoryTimeouts timeouts)
Sets the value ofArtifactRegistryRepositoryConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#timeouts ArtifactRegistryRepository#timeouts}- Returns:
this
-
virtualRepositoryConfig
@Stability(Stable) public ArtifactRegistryRepositoryConfig.Builder virtualRepositoryConfig(ArtifactRegistryRepositoryVirtualRepositoryConfig virtualRepositoryConfig)
Sets the value ofArtifactRegistryRepositoryConfig.getVirtualRepositoryConfig()- Parameters:
virtualRepositoryConfig- virtual_repository_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#virtual_repository_config ArtifactRegistryRepository#virtual_repository_config}- Returns:
this
-
connection
@Stability(Experimental) public ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.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 ArtifactRegistryRepositoryConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ArtifactRegistryRepositoryConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ArtifactRegistryRepositoryConfig>- Returns:
- a new instance of
ArtifactRegistryRepositoryConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-