com.pulumi.artifactory.inputs.GetVirtualHelmRepositoryPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artifactory Show documentation
Show all versions of artifactory Show documentation
A Pulumi package for creating and managing artifactory cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.artifactory.inputs;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetVirtualHelmRepositoryPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetVirtualHelmRepositoryPlainArgs Empty = new GetVirtualHelmRepositoryPlainArgs();
@Import(name="artifactoryRequestsCanRetrieveRemoteArtifacts")
private @Nullable Boolean artifactoryRequestsCanRetrieveRemoteArtifacts;
public Optional artifactoryRequestsCanRetrieveRemoteArtifacts() {
return Optional.ofNullable(this.artifactoryRequestsCanRetrieveRemoteArtifacts);
}
@Import(name="defaultDeploymentRepo")
private @Nullable String defaultDeploymentRepo;
public Optional defaultDeploymentRepo() {
return Optional.ofNullable(this.defaultDeploymentRepo);
}
@Import(name="description")
private @Nullable String description;
public Optional description() {
return Optional.ofNullable(this.description);
}
@Import(name="excludesPattern")
private @Nullable String excludesPattern;
public Optional excludesPattern() {
return Optional.ofNullable(this.excludesPattern);
}
@Import(name="includesPattern")
private @Nullable String includesPattern;
public Optional includesPattern() {
return Optional.ofNullable(this.includesPattern);
}
/**
* the identity key of the repo.
*
*/
@Import(name="key", required=true)
private String key;
/**
* @return the identity key of the repo.
*
*/
public String key() {
return this.key;
}
@Import(name="notes")
private @Nullable String notes;
public Optional notes() {
return Optional.ofNullable(this.notes);
}
@Import(name="projectEnvironments")
private @Nullable List projectEnvironments;
public Optional> projectEnvironments() {
return Optional.ofNullable(this.projectEnvironments);
}
@Import(name="projectKey")
private @Nullable String projectKey;
public Optional projectKey() {
return Optional.ofNullable(this.projectKey);
}
@Import(name="repoLayoutRef")
private @Nullable String repoLayoutRef;
public Optional repoLayoutRef() {
return Optional.ofNullable(this.repoLayoutRef);
}
@Import(name="repositories")
private @Nullable List repositories;
public Optional> repositories() {
return Optional.ofNullable(this.repositories);
}
/**
* (Optional, Default: `7200`) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
*
*/
@Import(name="retrievalCachePeriodSeconds")
private @Nullable Integer retrievalCachePeriodSeconds;
/**
* @return (Optional, Default: `7200`) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
*
*/
public Optional retrievalCachePeriodSeconds() {
return Optional.ofNullable(this.retrievalCachePeriodSeconds);
}
/**
* (Optional) From Artifactory 7.24.1 (SaaS Version), you can explicitly state a specific aggregated local or remote repository to fetch from a virtual by assigning namespaces to local and remote repositories. See the documentation [here](https://www.jfrog.com/confluence/display/JFROG/Kubernetes+Helm+Chart+Repositories#KubernetesHelmChartRepositories-NamespaceSupportforHelmVirtualRepositories). Default is `false`.
*
*/
@Import(name="useNamespaces")
private @Nullable Boolean useNamespaces;
/**
* @return (Optional) From Artifactory 7.24.1 (SaaS Version), you can explicitly state a specific aggregated local or remote repository to fetch from a virtual by assigning namespaces to local and remote repositories. See the documentation [here](https://www.jfrog.com/confluence/display/JFROG/Kubernetes+Helm+Chart+Repositories#KubernetesHelmChartRepositories-NamespaceSupportforHelmVirtualRepositories). Default is `false`.
*
*/
public Optional useNamespaces() {
return Optional.ofNullable(this.useNamespaces);
}
private GetVirtualHelmRepositoryPlainArgs() {}
private GetVirtualHelmRepositoryPlainArgs(GetVirtualHelmRepositoryPlainArgs $) {
this.artifactoryRequestsCanRetrieveRemoteArtifacts = $.artifactoryRequestsCanRetrieveRemoteArtifacts;
this.defaultDeploymentRepo = $.defaultDeploymentRepo;
this.description = $.description;
this.excludesPattern = $.excludesPattern;
this.includesPattern = $.includesPattern;
this.key = $.key;
this.notes = $.notes;
this.projectEnvironments = $.projectEnvironments;
this.projectKey = $.projectKey;
this.repoLayoutRef = $.repoLayoutRef;
this.repositories = $.repositories;
this.retrievalCachePeriodSeconds = $.retrievalCachePeriodSeconds;
this.useNamespaces = $.useNamespaces;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualHelmRepositoryPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetVirtualHelmRepositoryPlainArgs $;
public Builder() {
$ = new GetVirtualHelmRepositoryPlainArgs();
}
public Builder(GetVirtualHelmRepositoryPlainArgs defaults) {
$ = new GetVirtualHelmRepositoryPlainArgs(Objects.requireNonNull(defaults));
}
public Builder artifactoryRequestsCanRetrieveRemoteArtifacts(@Nullable Boolean artifactoryRequestsCanRetrieveRemoteArtifacts) {
$.artifactoryRequestsCanRetrieveRemoteArtifacts = artifactoryRequestsCanRetrieveRemoteArtifacts;
return this;
}
public Builder defaultDeploymentRepo(@Nullable String defaultDeploymentRepo) {
$.defaultDeploymentRepo = defaultDeploymentRepo;
return this;
}
public Builder description(@Nullable String description) {
$.description = description;
return this;
}
public Builder excludesPattern(@Nullable String excludesPattern) {
$.excludesPattern = excludesPattern;
return this;
}
public Builder includesPattern(@Nullable String includesPattern) {
$.includesPattern = includesPattern;
return this;
}
/**
* @param key the identity key of the repo.
*
* @return builder
*
*/
public Builder key(String key) {
$.key = key;
return this;
}
public Builder notes(@Nullable String notes) {
$.notes = notes;
return this;
}
public Builder projectEnvironments(@Nullable List projectEnvironments) {
$.projectEnvironments = projectEnvironments;
return this;
}
public Builder projectEnvironments(String... projectEnvironments) {
return projectEnvironments(List.of(projectEnvironments));
}
public Builder projectKey(@Nullable String projectKey) {
$.projectKey = projectKey;
return this;
}
public Builder repoLayoutRef(@Nullable String repoLayoutRef) {
$.repoLayoutRef = repoLayoutRef;
return this;
}
public Builder repositories(@Nullable List repositories) {
$.repositories = repositories;
return this;
}
public Builder repositories(String... repositories) {
return repositories(List.of(repositories));
}
/**
* @param retrievalCachePeriodSeconds (Optional, Default: `7200`) This value refers to the number of seconds to cache metadata files before checking for newer versions on aggregated repositories. A value of 0 indicates no caching.
*
* @return builder
*
*/
public Builder retrievalCachePeriodSeconds(@Nullable Integer retrievalCachePeriodSeconds) {
$.retrievalCachePeriodSeconds = retrievalCachePeriodSeconds;
return this;
}
/**
* @param useNamespaces (Optional) From Artifactory 7.24.1 (SaaS Version), you can explicitly state a specific aggregated local or remote repository to fetch from a virtual by assigning namespaces to local and remote repositories. See the documentation [here](https://www.jfrog.com/confluence/display/JFROG/Kubernetes+Helm+Chart+Repositories#KubernetesHelmChartRepositories-NamespaceSupportforHelmVirtualRepositories). Default is `false`.
*
* @return builder
*
*/
public Builder useNamespaces(@Nullable Boolean useNamespaces) {
$.useNamespaces = useNamespaces;
return this;
}
public GetVirtualHelmRepositoryPlainArgs build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("GetVirtualHelmRepositoryPlainArgs", "key");
}
return $;
}
}
}