com.pulumi.artifactory.inputs.GetVirtualPuppetRepositoryPlainArgs 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.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetVirtualPuppetRepositoryPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetVirtualPuppetRepositoryPlainArgs Empty = new GetVirtualPuppetRepositoryPlainArgs();
@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);
}
private GetVirtualPuppetRepositoryPlainArgs() {}
private GetVirtualPuppetRepositoryPlainArgs(GetVirtualPuppetRepositoryPlainArgs $) {
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;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetVirtualPuppetRepositoryPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetVirtualPuppetRepositoryPlainArgs $;
public Builder() {
$ = new GetVirtualPuppetRepositoryPlainArgs();
}
public Builder(GetVirtualPuppetRepositoryPlainArgs defaults) {
$ = new GetVirtualPuppetRepositoryPlainArgs(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));
}
public GetVirtualPuppetRepositoryPlainArgs build() {
if ($.key == null) {
throw new MissingRequiredPropertyException("GetVirtualPuppetRepositoryPlainArgs", "key");
}
return $;
}
}
}