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

com.pulumi.azure.hpc.inputs.CacheDefaultAccessPolicyArgs 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.azure.hpc.inputs;

import com.pulumi.azure.hpc.inputs.CacheDefaultAccessPolicyAccessRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;


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

    public static final CacheDefaultAccessPolicyArgs Empty = new CacheDefaultAccessPolicyArgs();

    /**
     * One or more `access_rule` blocks (up to three) as defined above.
     * 
     */
    @Import(name="accessRules", required=true)
    private Output> accessRules;

    /**
     * @return One or more `access_rule` blocks (up to three) as defined above.
     * 
     */
    public Output> accessRules() {
        return this.accessRules;
    }

    private CacheDefaultAccessPolicyArgs() {}

    private CacheDefaultAccessPolicyArgs(CacheDefaultAccessPolicyArgs $) {
        this.accessRules = $.accessRules;
    }

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

    public static final class Builder {
        private CacheDefaultAccessPolicyArgs $;

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

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

        /**
         * @param accessRules One or more `access_rule` blocks (up to three) as defined above.
         * 
         * @return builder
         * 
         */
        public Builder accessRules(Output> accessRules) {
            $.accessRules = accessRules;
            return this;
        }

        /**
         * @param accessRules One or more `access_rule` blocks (up to three) as defined above.
         * 
         * @return builder
         * 
         */
        public Builder accessRules(List accessRules) {
            return accessRules(Output.of(accessRules));
        }

        /**
         * @param accessRules One or more `access_rule` blocks (up to three) as defined above.
         * 
         * @return builder
         * 
         */
        public Builder accessRules(CacheDefaultAccessPolicyAccessRuleArgs... accessRules) {
            return accessRules(List.of(accessRules));
        }

        public CacheDefaultAccessPolicyArgs build() {
            if ($.accessRules == null) {
                throw new MissingRequiredPropertyException("CacheDefaultAccessPolicyArgs", "accessRules");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy