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

com.pulumi.azurenative.media.outputs.AccessControlResponse 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.azurenative.media.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AccessControlResponse {
    /**
     * @return The behavior for IP access control in Key Delivery.
     * 
     */
    private @Nullable String defaultAction;
    /**
     * @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.
     * 
     */
    private @Nullable List ipAllowList;

    private AccessControlResponse() {}
    /**
     * @return The behavior for IP access control in Key Delivery.
     * 
     */
    public Optional defaultAction() {
        return Optional.ofNullable(this.defaultAction);
    }
    /**
     * @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 List ipAllowList() {
        return this.ipAllowList == null ? List.of() : this.ipAllowList;
    }

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

    public static Builder builder(AccessControlResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String defaultAction;
        private @Nullable List ipAllowList;
        public Builder() {}
        public Builder(AccessControlResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.defaultAction = defaults.defaultAction;
    	      this.ipAllowList = defaults.ipAllowList;
        }

        @CustomType.Setter
        public Builder defaultAction(@Nullable String defaultAction) {

            this.defaultAction = defaultAction;
            return this;
        }
        @CustomType.Setter
        public Builder ipAllowList(@Nullable List ipAllowList) {

            this.ipAllowList = ipAllowList;
            return this;
        }
        public Builder ipAllowList(String... ipAllowList) {
            return ipAllowList(List.of(ipAllowList));
        }
        public AccessControlResponse build() {
            final var _resultValue = new AccessControlResponse();
            _resultValue.defaultAction = defaultAction;
            _resultValue.ipAllowList = ipAllowList;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy