All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.dataworks.outputs.GetFoldersResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** 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.alicloud.dataworks.outputs;

import com.pulumi.alicloud.dataworks.outputs.GetFoldersFolder;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetFoldersResult {
    private List folders;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private List ids;
    private @Nullable String outputFile;
    private String parentFolderPath;
    private String projectId;

    private GetFoldersResult() {}
    public List folders() {
        return this.folders;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public List ids() {
        return this.ids;
    }
    public Optional outputFile() {
        return Optional.ofNullable(this.outputFile);
    }
    public String parentFolderPath() {
        return this.parentFolderPath;
    }
    public String projectId() {
        return this.projectId;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetFoldersResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List folders;
        private String id;
        private List ids;
        private @Nullable String outputFile;
        private String parentFolderPath;
        private String projectId;
        public Builder() {}
        public Builder(GetFoldersResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.folders = defaults.folders;
    	      this.id = defaults.id;
    	      this.ids = defaults.ids;
    	      this.outputFile = defaults.outputFile;
    	      this.parentFolderPath = defaults.parentFolderPath;
    	      this.projectId = defaults.projectId;
        }

        @CustomType.Setter
        public Builder folders(List folders) {
            if (folders == null) {
              throw new MissingRequiredPropertyException("GetFoldersResult", "folders");
            }
            this.folders = folders;
            return this;
        }
        public Builder folders(GetFoldersFolder... folders) {
            return folders(List.of(folders));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetFoldersResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder ids(List ids) {
            if (ids == null) {
              throw new MissingRequiredPropertyException("GetFoldersResult", "ids");
            }
            this.ids = ids;
            return this;
        }
        public Builder ids(String... ids) {
            return ids(List.of(ids));
        }
        @CustomType.Setter
        public Builder outputFile(@Nullable String outputFile) {

            this.outputFile = outputFile;
            return this;
        }
        @CustomType.Setter
        public Builder parentFolderPath(String parentFolderPath) {
            if (parentFolderPath == null) {
              throw new MissingRequiredPropertyException("GetFoldersResult", "parentFolderPath");
            }
            this.parentFolderPath = parentFolderPath;
            return this;
        }
        @CustomType.Setter
        public Builder projectId(String projectId) {
            if (projectId == null) {
              throw new MissingRequiredPropertyException("GetFoldersResult", "projectId");
            }
            this.projectId = projectId;
            return this;
        }
        public GetFoldersResult build() {
            final var _resultValue = new GetFoldersResult();
            _resultValue.folders = folders;
            _resultValue.id = id;
            _resultValue.ids = ids;
            _resultValue.outputFile = outputFile;
            _resultValue.parentFolderPath = parentFolderPath;
            _resultValue.projectId = projectId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy