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

com.pulumi.aws.workspaces.outputs.GetBundleResult Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.workspaces.outputs;

import com.pulumi.aws.workspaces.outputs.GetBundleComputeType;
import com.pulumi.aws.workspaces.outputs.GetBundleRootStorage;
import com.pulumi.aws.workspaces.outputs.GetBundleUserStorage;
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 GetBundleResult {
    /**
     * @return The ID of the bundle.
     * 
     */
    private @Nullable String bundleId;
    /**
     * @return The compute type. See supported fields below.
     * 
     */
    private List computeTypes;
    /**
     * @return The description of the bundle.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Name of the compute type.
     * 
     */
    private @Nullable String name;
    /**
     * @return The owner of the bundle.
     * 
     */
    private @Nullable String owner;
    /**
     * @return The root volume. See supported fields below.
     * 
     */
    private List rootStorages;
    /**
     * @return The user storage. See supported fields below.
     * 
     */
    private List userStorages;

    private GetBundleResult() {}
    /**
     * @return The ID of the bundle.
     * 
     */
    public Optional bundleId() {
        return Optional.ofNullable(this.bundleId);
    }
    /**
     * @return The compute type. See supported fields below.
     * 
     */
    public List computeTypes() {
        return this.computeTypes;
    }
    /**
     * @return The description of the bundle.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the compute type.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The owner of the bundle.
     * 
     */
    public Optional owner() {
        return Optional.ofNullable(this.owner);
    }
    /**
     * @return The root volume. See supported fields below.
     * 
     */
    public List rootStorages() {
        return this.rootStorages;
    }
    /**
     * @return The user storage. See supported fields below.
     * 
     */
    public List userStorages() {
        return this.userStorages;
    }

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

    public static Builder builder(GetBundleResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String bundleId;
        private List computeTypes;
        private String description;
        private String id;
        private @Nullable String name;
        private @Nullable String owner;
        private List rootStorages;
        private List userStorages;
        public Builder() {}
        public Builder(GetBundleResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bundleId = defaults.bundleId;
    	      this.computeTypes = defaults.computeTypes;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.owner = defaults.owner;
    	      this.rootStorages = defaults.rootStorages;
    	      this.userStorages = defaults.userStorages;
        }

        @CustomType.Setter
        public Builder bundleId(@Nullable String bundleId) {

            this.bundleId = bundleId;
            return this;
        }
        @CustomType.Setter
        public Builder computeTypes(List computeTypes) {
            if (computeTypes == null) {
              throw new MissingRequiredPropertyException("GetBundleResult", "computeTypes");
            }
            this.computeTypes = computeTypes;
            return this;
        }
        public Builder computeTypes(GetBundleComputeType... computeTypes) {
            return computeTypes(List.of(computeTypes));
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetBundleResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetBundleResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder owner(@Nullable String owner) {

            this.owner = owner;
            return this;
        }
        @CustomType.Setter
        public Builder rootStorages(List rootStorages) {
            if (rootStorages == null) {
              throw new MissingRequiredPropertyException("GetBundleResult", "rootStorages");
            }
            this.rootStorages = rootStorages;
            return this;
        }
        public Builder rootStorages(GetBundleRootStorage... rootStorages) {
            return rootStorages(List.of(rootStorages));
        }
        @CustomType.Setter
        public Builder userStorages(List userStorages) {
            if (userStorages == null) {
              throw new MissingRequiredPropertyException("GetBundleResult", "userStorages");
            }
            this.userStorages = userStorages;
            return this;
        }
        public Builder userStorages(GetBundleUserStorage... userStorages) {
            return userStorages(List.of(userStorages));
        }
        public GetBundleResult build() {
            final var _resultValue = new GetBundleResult();
            _resultValue.bundleId = bundleId;
            _resultValue.computeTypes = computeTypes;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.owner = owner;
            _resultValue.rootStorages = rootStorages;
            _resultValue.userStorages = userStorages;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy