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

com.pulumi.meraki.networks.inputs.SwitchAccessControlListsRulesResponseArgs Maven / Gradle / Ivy

There is a newer version: 0.4.0-alpha.1731736975
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.meraki.networks.inputs;

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


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

    public static final SwitchAccessControlListsRulesResponseArgs Empty = new SwitchAccessControlListsRulesResponseArgs();

    /**
     * Description of the rule (optional)
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Description of the rule (optional)
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * Destination IP address (in IP or CIDR notation)
     * 
     */
    @Import(name="dstCidr")
    private @Nullable Output dstCidr;

    /**
     * @return Destination IP address (in IP or CIDR notation)
     * 
     */
    public Optional> dstCidr() {
        return Optional.ofNullable(this.dstCidr);
    }

    /**
     * Destination port
     * 
     */
    @Import(name="dstPort")
    private @Nullable Output dstPort;

    /**
     * @return Destination port
     * 
     */
    public Optional> dstPort() {
        return Optional.ofNullable(this.dstPort);
    }

    /**
     * IP address version
     * 
     */
    @Import(name="ipVersion")
    private @Nullable Output ipVersion;

    /**
     * @return IP address version
     * 
     */
    public Optional> ipVersion() {
        return Optional.ofNullable(this.ipVersion);
    }

    /**
     * 'allow' or 'deny' traffic specified by this rule
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return 'allow' or 'deny' traffic specified by this rule
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * The type of protocol
     * 
     */
    @Import(name="protocol")
    private @Nullable Output protocol;

    /**
     * @return The type of protocol
     * 
     */
    public Optional> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    /**
     * Source IP address (in IP or CIDR notation)
     * 
     */
    @Import(name="srcCidr")
    private @Nullable Output srcCidr;

    /**
     * @return Source IP address (in IP or CIDR notation)
     * 
     */
    public Optional> srcCidr() {
        return Optional.ofNullable(this.srcCidr);
    }

    /**
     * Source port
     * 
     */
    @Import(name="srcPort")
    private @Nullable Output srcPort;

    /**
     * @return Source port
     * 
     */
    public Optional> srcPort() {
        return Optional.ofNullable(this.srcPort);
    }

    /**
     * ncoming traffic VLAN
     * 
     */
    @Import(name="vlan")
    private @Nullable Output vlan;

    /**
     * @return ncoming traffic VLAN
     * 
     */
    public Optional> vlan() {
        return Optional.ofNullable(this.vlan);
    }

    private SwitchAccessControlListsRulesResponseArgs() {}

    private SwitchAccessControlListsRulesResponseArgs(SwitchAccessControlListsRulesResponseArgs $) {
        this.comment = $.comment;
        this.dstCidr = $.dstCidr;
        this.dstPort = $.dstPort;
        this.ipVersion = $.ipVersion;
        this.policy = $.policy;
        this.protocol = $.protocol;
        this.srcCidr = $.srcCidr;
        this.srcPort = $.srcPort;
        this.vlan = $.vlan;
    }

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

    public static final class Builder {
        private SwitchAccessControlListsRulesResponseArgs $;

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

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

        /**
         * @param comment Description of the rule (optional)
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Description of the rule (optional)
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param dstCidr Destination IP address (in IP or CIDR notation)
         * 
         * @return builder
         * 
         */
        public Builder dstCidr(@Nullable Output dstCidr) {
            $.dstCidr = dstCidr;
            return this;
        }

        /**
         * @param dstCidr Destination IP address (in IP or CIDR notation)
         * 
         * @return builder
         * 
         */
        public Builder dstCidr(String dstCidr) {
            return dstCidr(Output.of(dstCidr));
        }

        /**
         * @param dstPort Destination port
         * 
         * @return builder
         * 
         */
        public Builder dstPort(@Nullable Output dstPort) {
            $.dstPort = dstPort;
            return this;
        }

        /**
         * @param dstPort Destination port
         * 
         * @return builder
         * 
         */
        public Builder dstPort(String dstPort) {
            return dstPort(Output.of(dstPort));
        }

        /**
         * @param ipVersion IP address version
         * 
         * @return builder
         * 
         */
        public Builder ipVersion(@Nullable Output ipVersion) {
            $.ipVersion = ipVersion;
            return this;
        }

        /**
         * @param ipVersion IP address version
         * 
         * @return builder
         * 
         */
        public Builder ipVersion(String ipVersion) {
            return ipVersion(Output.of(ipVersion));
        }

        /**
         * @param policy 'allow' or 'deny' traffic specified by this rule
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy 'allow' or 'deny' traffic specified by this rule
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param protocol The type of protocol
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol The type of protocol
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        /**
         * @param srcCidr Source IP address (in IP or CIDR notation)
         * 
         * @return builder
         * 
         */
        public Builder srcCidr(@Nullable Output srcCidr) {
            $.srcCidr = srcCidr;
            return this;
        }

        /**
         * @param srcCidr Source IP address (in IP or CIDR notation)
         * 
         * @return builder
         * 
         */
        public Builder srcCidr(String srcCidr) {
            return srcCidr(Output.of(srcCidr));
        }

        /**
         * @param srcPort Source port
         * 
         * @return builder
         * 
         */
        public Builder srcPort(@Nullable Output srcPort) {
            $.srcPort = srcPort;
            return this;
        }

        /**
         * @param srcPort Source port
         * 
         * @return builder
         * 
         */
        public Builder srcPort(String srcPort) {
            return srcPort(Output.of(srcPort));
        }

        /**
         * @param vlan ncoming traffic VLAN
         * 
         * @return builder
         * 
         */
        public Builder vlan(@Nullable Output vlan) {
            $.vlan = vlan;
            return this;
        }

        /**
         * @param vlan ncoming traffic VLAN
         * 
         * @return builder
         * 
         */
        public Builder vlan(String vlan) {
            return vlan(Output.of(vlan));
        }

        public SwitchAccessControlListsRulesResponseArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy