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

com.pulumi.junipermist.device.inputs.SwitchAclPolicyArgs 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.junipermist.device.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.junipermist.device.inputs.SwitchAclPolicyActionArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SwitchAclPolicyArgs Empty = new SwitchAclPolicyArgs();

    /**
     * - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
     * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
     * 
     */
    @Import(name="actions")
    private @Nullable Output> actions;

    /**
     * @return - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
     * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
     * 
     */
    public Optional>> actions() {
        return Optional.ofNullable(this.actions);
    }

    @Import(name="name")
    private @Nullable Output name;

    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
     * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
     * 
     */
    @Import(name="srcTags")
    private @Nullable Output> srcTags;

    /**
     * @return - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
     * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
     * 
     */
    public Optional>> srcTags() {
        return Optional.ofNullable(this.srcTags);
    }

    private SwitchAclPolicyArgs() {}

    private SwitchAclPolicyArgs(SwitchAclPolicyArgs $) {
        this.actions = $.actions;
        this.name = $.name;
        this.srcTags = $.srcTags;
    }

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

    public static final class Builder {
        private SwitchAclPolicyArgs $;

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

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

        /**
         * @param actions - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder actions(@Nullable Output> actions) {
            $.actions = actions;
            return this;
        }

        /**
         * @param actions - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder actions(List actions) {
            return actions(Output.of(actions));
        }

        /**
         * @param actions - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder actions(SwitchAclPolicyActionArgs... actions) {
            return actions(List.of(actions));
        }

        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param srcTags - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder srcTags(@Nullable Output> srcTags) {
            $.srcTags = srcTags;
            return this;
        }

        /**
         * @param srcTags - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder srcTags(List srcTags) {
            return srcTags(Output.of(srcTags));
        }

        /**
         * @param srcTags - for GBP-based policy, all src_tags and dst_tags have to be gbp-based
         * - for ACL-based policy, `network` is required in either the source or destination so that we know where to attach the policy to
         * 
         * @return builder
         * 
         */
        public Builder srcTags(String... srcTags) {
            return srcTags(List.of(srcTags));
        }

        public SwitchAclPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy