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

com.pulumi.azurenative.storagepool.IscsiTargetArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.storagepool;

import com.pulumi.azurenative.storagepool.enums.IscsiTargetAclMode;
import com.pulumi.azurenative.storagepool.inputs.AclArgs;
import com.pulumi.azurenative.storagepool.inputs.IscsiLunArgs;
import com.pulumi.core.Either;
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;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IscsiTargetArgs Empty = new IscsiTargetArgs();

    /**
     * Mode for Target connectivity.
     * 
     */
    @Import(name="aclMode", required=true)
    private Output> aclMode;

    /**
     * @return Mode for Target connectivity.
     * 
     */
    public Output> aclMode() {
        return this.aclMode;
    }

    /**
     * The name of the Disk Pool.
     * 
     */
    @Import(name="diskPoolName", required=true)
    private Output diskPoolName;

    /**
     * @return The name of the Disk Pool.
     * 
     */
    public Output diskPoolName() {
        return this.diskPoolName;
    }

    /**
     * The name of the iSCSI Target.
     * 
     */
    @Import(name="iscsiTargetName")
    private @Nullable Output iscsiTargetName;

    /**
     * @return The name of the iSCSI Target.
     * 
     */
    public Optional> iscsiTargetName() {
        return Optional.ofNullable(this.iscsiTargetName);
    }

    /**
     * List of LUNs to be exposed through iSCSI Target.
     * 
     */
    @Import(name="luns")
    private @Nullable Output> luns;

    /**
     * @return List of LUNs to be exposed through iSCSI Target.
     * 
     */
    public Optional>> luns() {
        return Optional.ofNullable(this.luns);
    }

    /**
     * Azure resource id. Indicates if this resource is managed by another Azure resource.
     * 
     */
    @Import(name="managedBy")
    private @Nullable Output managedBy;

    /**
     * @return Azure resource id. Indicates if this resource is managed by another Azure resource.
     * 
     */
    public Optional> managedBy() {
        return Optional.ofNullable(this.managedBy);
    }

    /**
     * List of Azure resource ids that manage this resource.
     * 
     */
    @Import(name="managedByExtended")
    private @Nullable Output> managedByExtended;

    /**
     * @return List of Azure resource ids that manage this resource.
     * 
     */
    public Optional>> managedByExtended() {
        return Optional.ofNullable(this.managedByExtended);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
     * 
     */
    @Import(name="staticAcls")
    private @Nullable Output> staticAcls;

    /**
     * @return Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
     * 
     */
    public Optional>> staticAcls() {
        return Optional.ofNullable(this.staticAcls);
    }

    /**
     * iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
     * 
     */
    @Import(name="targetIqn")
    private @Nullable Output targetIqn;

    /**
     * @return iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
     * 
     */
    public Optional> targetIqn() {
        return Optional.ofNullable(this.targetIqn);
    }

    private IscsiTargetArgs() {}

    private IscsiTargetArgs(IscsiTargetArgs $) {
        this.aclMode = $.aclMode;
        this.diskPoolName = $.diskPoolName;
        this.iscsiTargetName = $.iscsiTargetName;
        this.luns = $.luns;
        this.managedBy = $.managedBy;
        this.managedByExtended = $.managedByExtended;
        this.resourceGroupName = $.resourceGroupName;
        this.staticAcls = $.staticAcls;
        this.targetIqn = $.targetIqn;
    }

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

    public static final class Builder {
        private IscsiTargetArgs $;

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

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

        /**
         * @param aclMode Mode for Target connectivity.
         * 
         * @return builder
         * 
         */
        public Builder aclMode(Output> aclMode) {
            $.aclMode = aclMode;
            return this;
        }

        /**
         * @param aclMode Mode for Target connectivity.
         * 
         * @return builder
         * 
         */
        public Builder aclMode(Either aclMode) {
            return aclMode(Output.of(aclMode));
        }

        /**
         * @param aclMode Mode for Target connectivity.
         * 
         * @return builder
         * 
         */
        public Builder aclMode(String aclMode) {
            return aclMode(Either.ofLeft(aclMode));
        }

        /**
         * @param aclMode Mode for Target connectivity.
         * 
         * @return builder
         * 
         */
        public Builder aclMode(IscsiTargetAclMode aclMode) {
            return aclMode(Either.ofRight(aclMode));
        }

        /**
         * @param diskPoolName The name of the Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder diskPoolName(Output diskPoolName) {
            $.diskPoolName = diskPoolName;
            return this;
        }

        /**
         * @param diskPoolName The name of the Disk Pool.
         * 
         * @return builder
         * 
         */
        public Builder diskPoolName(String diskPoolName) {
            return diskPoolName(Output.of(diskPoolName));
        }

        /**
         * @param iscsiTargetName The name of the iSCSI Target.
         * 
         * @return builder
         * 
         */
        public Builder iscsiTargetName(@Nullable Output iscsiTargetName) {
            $.iscsiTargetName = iscsiTargetName;
            return this;
        }

        /**
         * @param iscsiTargetName The name of the iSCSI Target.
         * 
         * @return builder
         * 
         */
        public Builder iscsiTargetName(String iscsiTargetName) {
            return iscsiTargetName(Output.of(iscsiTargetName));
        }

        /**
         * @param luns List of LUNs to be exposed through iSCSI Target.
         * 
         * @return builder
         * 
         */
        public Builder luns(@Nullable Output> luns) {
            $.luns = luns;
            return this;
        }

        /**
         * @param luns List of LUNs to be exposed through iSCSI Target.
         * 
         * @return builder
         * 
         */
        public Builder luns(List luns) {
            return luns(Output.of(luns));
        }

        /**
         * @param luns List of LUNs to be exposed through iSCSI Target.
         * 
         * @return builder
         * 
         */
        public Builder luns(IscsiLunArgs... luns) {
            return luns(List.of(luns));
        }

        /**
         * @param managedBy Azure resource id. Indicates if this resource is managed by another Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder managedBy(@Nullable Output managedBy) {
            $.managedBy = managedBy;
            return this;
        }

        /**
         * @param managedBy Azure resource id. Indicates if this resource is managed by another Azure resource.
         * 
         * @return builder
         * 
         */
        public Builder managedBy(String managedBy) {
            return managedBy(Output.of(managedBy));
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(@Nullable Output> managedByExtended) {
            $.managedByExtended = managedByExtended;
            return this;
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(List managedByExtended) {
            return managedByExtended(Output.of(managedByExtended));
        }

        /**
         * @param managedByExtended List of Azure resource ids that manage this resource.
         * 
         * @return builder
         * 
         */
        public Builder managedByExtended(String... managedByExtended) {
            return managedByExtended(List.of(managedByExtended));
        }

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

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

        /**
         * @param staticAcls Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
         * 
         * @return builder
         * 
         */
        public Builder staticAcls(@Nullable Output> staticAcls) {
            $.staticAcls = staticAcls;
            return this;
        }

        /**
         * @param staticAcls Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
         * 
         * @return builder
         * 
         */
        public Builder staticAcls(List staticAcls) {
            return staticAcls(Output.of(staticAcls));
        }

        /**
         * @param staticAcls Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
         * 
         * @return builder
         * 
         */
        public Builder staticAcls(AclArgs... staticAcls) {
            return staticAcls(List.of(staticAcls));
        }

        /**
         * @param targetIqn iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
         * 
         * @return builder
         * 
         */
        public Builder targetIqn(@Nullable Output targetIqn) {
            $.targetIqn = targetIqn;
            return this;
        }

        /**
         * @param targetIqn iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".
         * 
         * @return builder
         * 
         */
        public Builder targetIqn(String targetIqn) {
            return targetIqn(Output.of(targetIqn));
        }

        public IscsiTargetArgs build() {
            if ($.aclMode == null) {
                throw new MissingRequiredPropertyException("IscsiTargetArgs", "aclMode");
            }
            if ($.diskPoolName == null) {
                throw new MissingRequiredPropertyException("IscsiTargetArgs", "diskPoolName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IscsiTargetArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy