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

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

// *** 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.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DirectorySelfServicePermissions {
    /**
     * @return Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`.
     * 
     */
    private @Nullable Boolean changeComputeType;
    /**
     * @return Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default `false`.
     * 
     */
    private @Nullable Boolean increaseVolumeSize;
    /**
     * @return Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default `false`.
     * 
     */
    private @Nullable Boolean rebuildWorkspace;
    /**
     * @return Whether WorkSpaces directory users can restart their workspace. Default `true`.
     * 
     */
    private @Nullable Boolean restartWorkspace;
    /**
     * @return Whether WorkSpaces directory users can switch the running mode of their workspace. Default `false`.
     * 
     */
    private @Nullable Boolean switchRunningMode;

    private DirectorySelfServicePermissions() {}
    /**
     * @return Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`.
     * 
     */
    public Optional changeComputeType() {
        return Optional.ofNullable(this.changeComputeType);
    }
    /**
     * @return Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default `false`.
     * 
     */
    public Optional increaseVolumeSize() {
        return Optional.ofNullable(this.increaseVolumeSize);
    }
    /**
     * @return Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default `false`.
     * 
     */
    public Optional rebuildWorkspace() {
        return Optional.ofNullable(this.rebuildWorkspace);
    }
    /**
     * @return Whether WorkSpaces directory users can restart their workspace. Default `true`.
     * 
     */
    public Optional restartWorkspace() {
        return Optional.ofNullable(this.restartWorkspace);
    }
    /**
     * @return Whether WorkSpaces directory users can switch the running mode of their workspace. Default `false`.
     * 
     */
    public Optional switchRunningMode() {
        return Optional.ofNullable(this.switchRunningMode);
    }

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

    public static Builder builder(DirectorySelfServicePermissions defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean changeComputeType;
        private @Nullable Boolean increaseVolumeSize;
        private @Nullable Boolean rebuildWorkspace;
        private @Nullable Boolean restartWorkspace;
        private @Nullable Boolean switchRunningMode;
        public Builder() {}
        public Builder(DirectorySelfServicePermissions defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.changeComputeType = defaults.changeComputeType;
    	      this.increaseVolumeSize = defaults.increaseVolumeSize;
    	      this.rebuildWorkspace = defaults.rebuildWorkspace;
    	      this.restartWorkspace = defaults.restartWorkspace;
    	      this.switchRunningMode = defaults.switchRunningMode;
        }

        @CustomType.Setter
        public Builder changeComputeType(@Nullable Boolean changeComputeType) {

            this.changeComputeType = changeComputeType;
            return this;
        }
        @CustomType.Setter
        public Builder increaseVolumeSize(@Nullable Boolean increaseVolumeSize) {

            this.increaseVolumeSize = increaseVolumeSize;
            return this;
        }
        @CustomType.Setter
        public Builder rebuildWorkspace(@Nullable Boolean rebuildWorkspace) {

            this.rebuildWorkspace = rebuildWorkspace;
            return this;
        }
        @CustomType.Setter
        public Builder restartWorkspace(@Nullable Boolean restartWorkspace) {

            this.restartWorkspace = restartWorkspace;
            return this;
        }
        @CustomType.Setter
        public Builder switchRunningMode(@Nullable Boolean switchRunningMode) {

            this.switchRunningMode = switchRunningMode;
            return this;
        }
        public DirectorySelfServicePermissions build() {
            final var _resultValue = new DirectorySelfServicePermissions();
            _resultValue.changeComputeType = changeComputeType;
            _resultValue.increaseVolumeSize = increaseVolumeSize;
            _resultValue.rebuildWorkspace = rebuildWorkspace;
            _resultValue.restartWorkspace = restartWorkspace;
            _resultValue.switchRunningMode = switchRunningMode;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy