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

com.pulumi.azurenative.media.inputs.AccessControlArgs 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.media.inputs;

import com.pulumi.azurenative.media.enums.DefaultAction;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccessControlArgs Empty = new AccessControlArgs();

    /**
     * The behavior for IP access control in Key Delivery.
     * 
     */
    @Import(name="defaultAction")
    private @Nullable Output> defaultAction;

    /**
     * @return The behavior for IP access control in Key Delivery.
     * 
     */
    public Optional>> defaultAction() {
        return Optional.ofNullable(this.defaultAction);
    }

    /**
     * The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.
     * 
     */
    @Import(name="ipAllowList")
    private @Nullable Output> ipAllowList;

    /**
     * @return The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.
     * 
     */
    public Optional>> ipAllowList() {
        return Optional.ofNullable(this.ipAllowList);
    }

    private AccessControlArgs() {}

    private AccessControlArgs(AccessControlArgs $) {
        this.defaultAction = $.defaultAction;
        this.ipAllowList = $.ipAllowList;
    }

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

    public static final class Builder {
        private AccessControlArgs $;

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

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

        /**
         * @param defaultAction The behavior for IP access control in Key Delivery.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(@Nullable Output> defaultAction) {
            $.defaultAction = defaultAction;
            return this;
        }

        /**
         * @param defaultAction The behavior for IP access control in Key Delivery.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(Either defaultAction) {
            return defaultAction(Output.of(defaultAction));
        }

        /**
         * @param defaultAction The behavior for IP access control in Key Delivery.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(String defaultAction) {
            return defaultAction(Either.ofLeft(defaultAction));
        }

        /**
         * @param defaultAction The behavior for IP access control in Key Delivery.
         * 
         * @return builder
         * 
         */
        public Builder defaultAction(DefaultAction defaultAction) {
            return defaultAction(Either.ofRight(defaultAction));
        }

        /**
         * @param ipAllowList The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.
         * 
         * @return builder
         * 
         */
        public Builder ipAllowList(@Nullable Output> ipAllowList) {
            $.ipAllowList = ipAllowList;
            return this;
        }

        /**
         * @param ipAllowList The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.
         * 
         * @return builder
         * 
         */
        public Builder ipAllowList(List ipAllowList) {
            return ipAllowList(Output.of(ipAllowList));
        }

        /**
         * @param ipAllowList The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty.
         * 
         * @return builder
         * 
         */
        public Builder ipAllowList(String... ipAllowList) {
            return ipAllowList(List.of(ipAllowList));
        }

        public AccessControlArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy