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

com.pulumi.azurenative.storagepool.inputs.AclArgs Maven / Gradle / Ivy

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

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;


/**
 * Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
 * 
 */
public final class AclArgs extends com.pulumi.resources.ResourceArgs {

    public static final AclArgs Empty = new AclArgs();

    /**
     * iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
     * 
     */
    @Import(name="initiatorIqn", required=true)
    private Output initiatorIqn;

    /**
     * @return iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".
     * 
     */
    public Output initiatorIqn() {
        return this.initiatorIqn;
    }

    /**
     * List of LUN names mapped to the ACL.
     * 
     */
    @Import(name="mappedLuns", required=true)
    private Output> mappedLuns;

    /**
     * @return List of LUN names mapped to the ACL.
     * 
     */
    public Output> mappedLuns() {
        return this.mappedLuns;
    }

    private AclArgs() {}

    private AclArgs(AclArgs $) {
        this.initiatorIqn = $.initiatorIqn;
        this.mappedLuns = $.mappedLuns;
    }

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

    public static final class Builder {
        private AclArgs $;

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

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

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

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

        /**
         * @param mappedLuns List of LUN names mapped to the ACL.
         * 
         * @return builder
         * 
         */
        public Builder mappedLuns(Output> mappedLuns) {
            $.mappedLuns = mappedLuns;
            return this;
        }

        /**
         * @param mappedLuns List of LUN names mapped to the ACL.
         * 
         * @return builder
         * 
         */
        public Builder mappedLuns(List mappedLuns) {
            return mappedLuns(Output.of(mappedLuns));
        }

        /**
         * @param mappedLuns List of LUN names mapped to the ACL.
         * 
         * @return builder
         * 
         */
        public Builder mappedLuns(String... mappedLuns) {
            return mappedLuns(List.of(mappedLuns));
        }

        public AclArgs build() {
            if ($.initiatorIqn == null) {
                throw new MissingRequiredPropertyException("AclArgs", "initiatorIqn");
            }
            if ($.mappedLuns == null) {
                throw new MissingRequiredPropertyException("AclArgs", "mappedLuns");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy