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

com.pulumi.azurenative.storsimple.VolumeArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.storsimple;

import com.pulumi.azurenative.storsimple.enums.Kind;
import com.pulumi.azurenative.storsimple.enums.MonitoringStatus;
import com.pulumi.azurenative.storsimple.enums.VolumeStatus;
import com.pulumi.azurenative.storsimple.enums.VolumeType;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VolumeArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeArgs Empty = new VolumeArgs();

    /**
     * The IDs of the access control records, associated with the volume.
     * 
     */
    @Import(name="accessControlRecordIds", required=true)
    private Output> accessControlRecordIds;

    /**
     * @return The IDs of the access control records, associated with the volume.
     * 
     */
    public Output> accessControlRecordIds() {
        return this.accessControlRecordIds;
    }

    /**
     * The device name
     * 
     */
    @Import(name="deviceName", required=true)
    private Output deviceName;

    /**
     * @return The device name
     * 
     */
    public Output deviceName() {
        return this.deviceName;
    }

    /**
     * The Kind of the object. Currently only Series8000 is supported
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return The Kind of the object. Currently only Series8000 is supported
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * The manager name
     * 
     */
    @Import(name="managerName", required=true)
    private Output managerName;

    /**
     * @return The manager name
     * 
     */
    public Output managerName() {
        return this.managerName;
    }

    /**
     * The monitoring status of the volume.
     * 
     */
    @Import(name="monitoringStatus", required=true)
    private Output monitoringStatus;

    /**
     * @return The monitoring status of the volume.
     * 
     */
    public Output monitoringStatus() {
        return this.monitoringStatus;
    }

    /**
     * The resource group name
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The size of the volume in bytes.
     * 
     */
    @Import(name="sizeInBytes", required=true)
    private Output sizeInBytes;

    /**
     * @return The size of the volume in bytes.
     * 
     */
    public Output sizeInBytes() {
        return this.sizeInBytes;
    }

    /**
     * The volume container name.
     * 
     */
    @Import(name="volumeContainerName", required=true)
    private Output volumeContainerName;

    /**
     * @return The volume container name.
     * 
     */
    public Output volumeContainerName() {
        return this.volumeContainerName;
    }

    /**
     * The volume name.
     * 
     */
    @Import(name="volumeName")
    private @Nullable Output volumeName;

    /**
     * @return The volume name.
     * 
     */
    public Optional> volumeName() {
        return Optional.ofNullable(this.volumeName);
    }

    /**
     * The volume status.
     * 
     */
    @Import(name="volumeStatus", required=true)
    private Output volumeStatus;

    /**
     * @return The volume status.
     * 
     */
    public Output volumeStatus() {
        return this.volumeStatus;
    }

    /**
     * The type of the volume.
     * 
     */
    @Import(name="volumeType", required=true)
    private Output volumeType;

    /**
     * @return The type of the volume.
     * 
     */
    public Output volumeType() {
        return this.volumeType;
    }

    private VolumeArgs() {}

    private VolumeArgs(VolumeArgs $) {
        this.accessControlRecordIds = $.accessControlRecordIds;
        this.deviceName = $.deviceName;
        this.kind = $.kind;
        this.managerName = $.managerName;
        this.monitoringStatus = $.monitoringStatus;
        this.resourceGroupName = $.resourceGroupName;
        this.sizeInBytes = $.sizeInBytes;
        this.volumeContainerName = $.volumeContainerName;
        this.volumeName = $.volumeName;
        this.volumeStatus = $.volumeStatus;
        this.volumeType = $.volumeType;
    }

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

    public static final class Builder {
        private VolumeArgs $;

        public Builder() {
            $ = new VolumeArgs();
        }

        public Builder(VolumeArgs defaults) {
            $ = new VolumeArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param accessControlRecordIds The IDs of the access control records, associated with the volume.
         * 
         * @return builder
         * 
         */
        public Builder accessControlRecordIds(Output> accessControlRecordIds) {
            $.accessControlRecordIds = accessControlRecordIds;
            return this;
        }

        /**
         * @param accessControlRecordIds The IDs of the access control records, associated with the volume.
         * 
         * @return builder
         * 
         */
        public Builder accessControlRecordIds(List accessControlRecordIds) {
            return accessControlRecordIds(Output.of(accessControlRecordIds));
        }

        /**
         * @param accessControlRecordIds The IDs of the access control records, associated with the volume.
         * 
         * @return builder
         * 
         */
        public Builder accessControlRecordIds(String... accessControlRecordIds) {
            return accessControlRecordIds(List.of(accessControlRecordIds));
        }

        /**
         * @param deviceName The device name
         * 
         * @return builder
         * 
         */
        public Builder deviceName(Output deviceName) {
            $.deviceName = deviceName;
            return this;
        }

        /**
         * @param deviceName The device name
         * 
         * @return builder
         * 
         */
        public Builder deviceName(String deviceName) {
            return deviceName(Output.of(deviceName));
        }

        /**
         * @param kind The Kind of the object. Currently only Series8000 is supported
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind The Kind of the object. Currently only Series8000 is supported
         * 
         * @return builder
         * 
         */
        public Builder kind(Kind kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param managerName The manager name
         * 
         * @return builder
         * 
         */
        public Builder managerName(Output managerName) {
            $.managerName = managerName;
            return this;
        }

        /**
         * @param managerName The manager name
         * 
         * @return builder
         * 
         */
        public Builder managerName(String managerName) {
            return managerName(Output.of(managerName));
        }

        /**
         * @param monitoringStatus The monitoring status of the volume.
         * 
         * @return builder
         * 
         */
        public Builder monitoringStatus(Output monitoringStatus) {
            $.monitoringStatus = monitoringStatus;
            return this;
        }

        /**
         * @param monitoringStatus The monitoring status of the volume.
         * 
         * @return builder
         * 
         */
        public Builder monitoringStatus(MonitoringStatus monitoringStatus) {
            return monitoringStatus(Output.of(monitoringStatus));
        }

        /**
         * @param resourceGroupName The resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sizeInBytes The size of the volume in bytes.
         * 
         * @return builder
         * 
         */
        public Builder sizeInBytes(Output sizeInBytes) {
            $.sizeInBytes = sizeInBytes;
            return this;
        }

        /**
         * @param sizeInBytes The size of the volume in bytes.
         * 
         * @return builder
         * 
         */
        public Builder sizeInBytes(Double sizeInBytes) {
            return sizeInBytes(Output.of(sizeInBytes));
        }

        /**
         * @param volumeContainerName The volume container name.
         * 
         * @return builder
         * 
         */
        public Builder volumeContainerName(Output volumeContainerName) {
            $.volumeContainerName = volumeContainerName;
            return this;
        }

        /**
         * @param volumeContainerName The volume container name.
         * 
         * @return builder
         * 
         */
        public Builder volumeContainerName(String volumeContainerName) {
            return volumeContainerName(Output.of(volumeContainerName));
        }

        /**
         * @param volumeName The volume name.
         * 
         * @return builder
         * 
         */
        public Builder volumeName(@Nullable Output volumeName) {
            $.volumeName = volumeName;
            return this;
        }

        /**
         * @param volumeName The volume name.
         * 
         * @return builder
         * 
         */
        public Builder volumeName(String volumeName) {
            return volumeName(Output.of(volumeName));
        }

        /**
         * @param volumeStatus The volume status.
         * 
         * @return builder
         * 
         */
        public Builder volumeStatus(Output volumeStatus) {
            $.volumeStatus = volumeStatus;
            return this;
        }

        /**
         * @param volumeStatus The volume status.
         * 
         * @return builder
         * 
         */
        public Builder volumeStatus(VolumeStatus volumeStatus) {
            return volumeStatus(Output.of(volumeStatus));
        }

        /**
         * @param volumeType The type of the volume.
         * 
         * @return builder
         * 
         */
        public Builder volumeType(Output volumeType) {
            $.volumeType = volumeType;
            return this;
        }

        /**
         * @param volumeType The type of the volume.
         * 
         * @return builder
         * 
         */
        public Builder volumeType(VolumeType volumeType) {
            return volumeType(Output.of(volumeType));
        }

        public VolumeArgs build() {
            if ($.accessControlRecordIds == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "accessControlRecordIds");
            }
            if ($.deviceName == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "deviceName");
            }
            if ($.managerName == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "managerName");
            }
            if ($.monitoringStatus == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "monitoringStatus");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "resourceGroupName");
            }
            if ($.sizeInBytes == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "sizeInBytes");
            }
            if ($.volumeContainerName == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "volumeContainerName");
            }
            if ($.volumeStatus == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "volumeStatus");
            }
            if ($.volumeType == null) {
                throw new MissingRequiredPropertyException("VolumeArgs", "volumeType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy