com.pulumi.digitalocean.ProjectResourcesArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean Show documentation
Show all versions of digitalocean Show documentation
A Pulumi package for creating and managing DigitalOcean 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.digitalocean;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
public final class ProjectResourcesArgs extends com.pulumi.resources.ResourceArgs {
public static final ProjectResourcesArgs Empty = new ProjectResourcesArgs();
/**
* the ID of the project
*
*/
@Import(name="project", required=true)
private Output project;
/**
* @return the ID of the project
*
*/
public Output project() {
return this.project;
}
/**
* a list of uniform resource names (URNs) for the resources associated with the project
*
*/
@Import(name="resources", required=true)
private Output> resources;
/**
* @return a list of uniform resource names (URNs) for the resources associated with the project
*
*/
public Output> resources() {
return this.resources;
}
private ProjectResourcesArgs() {}
private ProjectResourcesArgs(ProjectResourcesArgs $) {
this.project = $.project;
this.resources = $.resources;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ProjectResourcesArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ProjectResourcesArgs $;
public Builder() {
$ = new ProjectResourcesArgs();
}
public Builder(ProjectResourcesArgs defaults) {
$ = new ProjectResourcesArgs(Objects.requireNonNull(defaults));
}
/**
* @param project the ID of the project
*
* @return builder
*
*/
public Builder project(Output project) {
$.project = project;
return this;
}
/**
* @param project the ID of the project
*
* @return builder
*
*/
public Builder project(String project) {
return project(Output.of(project));
}
/**
* @param resources a list of uniform resource names (URNs) for the resources associated with the project
*
* @return builder
*
*/
public Builder resources(Output> resources) {
$.resources = resources;
return this;
}
/**
* @param resources a list of uniform resource names (URNs) for the resources associated with the project
*
* @return builder
*
*/
public Builder resources(List resources) {
return resources(Output.of(resources));
}
/**
* @param resources a list of uniform resource names (URNs) for the resources associated with the project
*
* @return builder
*
*/
public Builder resources(String... resources) {
return resources(List.of(resources));
}
public ProjectResourcesArgs build() {
if ($.project == null) {
throw new MissingRequiredPropertyException("ProjectResourcesArgs", "project");
}
if ($.resources == null) {
throw new MissingRequiredPropertyException("ProjectResourcesArgs", "resources");
}
return $;
}
}
}