Class ArtifactRegistryRepositoryMavenConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.artifact_registry_repository.ArtifactRegistryRepositoryMavenConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArtifactRegistryRepositoryMavenConfig>
- Enclosing interface:
- ArtifactRegistryRepositoryMavenConfig
@Stability(Stable) public static final class ArtifactRegistryRepositoryMavenConfig.Builder extends Object implements software.amazon.jsii.Builder<ArtifactRegistryRepositoryMavenConfig>
A builder forArtifactRegistryRepositoryMavenConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactRegistryRepositoryMavenConfig.BuilderallowSnapshotOverwrites(com.hashicorp.cdktf.IResolvable allowSnapshotOverwrites)Sets the value ofArtifactRegistryRepositoryMavenConfig.getAllowSnapshotOverwrites()ArtifactRegistryRepositoryMavenConfig.BuilderallowSnapshotOverwrites(Boolean allowSnapshotOverwrites)Sets the value ofArtifactRegistryRepositoryMavenConfig.getAllowSnapshotOverwrites()ArtifactRegistryRepositoryMavenConfigbuild()Builds the configured instance.ArtifactRegistryRepositoryMavenConfig.BuilderversionPolicy(String versionPolicy)Sets the value ofArtifactRegistryRepositoryMavenConfig.getVersionPolicy()
-
-
-
Method Detail
-
allowSnapshotOverwrites
@Stability(Stable) public ArtifactRegistryRepositoryMavenConfig.Builder allowSnapshotOverwrites(Boolean allowSnapshotOverwrites)
Sets the value ofArtifactRegistryRepositoryMavenConfig.getAllowSnapshotOverwrites()- Parameters:
allowSnapshotOverwrites- The repository with this flag will allow publishing the same snapshot versions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#allow_snapshot_overwrites ArtifactRegistryRepository#allow_snapshot_overwrites}- Returns:
this
-
allowSnapshotOverwrites
@Stability(Stable) public ArtifactRegistryRepositoryMavenConfig.Builder allowSnapshotOverwrites(com.hashicorp.cdktf.IResolvable allowSnapshotOverwrites)
Sets the value ofArtifactRegistryRepositoryMavenConfig.getAllowSnapshotOverwrites()- Parameters:
allowSnapshotOverwrites- The repository with this flag will allow publishing the same snapshot versions. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#allow_snapshot_overwrites ArtifactRegistryRepository#allow_snapshot_overwrites}- Returns:
this
-
versionPolicy
@Stability(Stable) public ArtifactRegistryRepositoryMavenConfig.Builder versionPolicy(String versionPolicy)
Sets the value ofArtifactRegistryRepositoryMavenConfig.getVersionPolicy()- Parameters:
versionPolicy- Version policy defines the versions that the registry will accept. Default value: "VERSION_POLICY_UNSPECIFIED" Possible values: ["VERSION_POLICY_UNSPECIFIED", "RELEASE", "SNAPSHOT"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/artifact_registry_repository#version_policy ArtifactRegistryRepository#version_policy}- Returns:
this
-
build
@Stability(Stable) public ArtifactRegistryRepositoryMavenConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ArtifactRegistryRepositoryMavenConfig>- Returns:
- a new instance of
ArtifactRegistryRepositoryMavenConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-