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

com.pulumi.azurenative.awsconnector.inputs.MatchAttributesArgs 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.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.inputs.AddressArgs;
import com.pulumi.azurenative.awsconnector.inputs.PortRangeArgs;
import com.pulumi.azurenative.awsconnector.inputs.TCPFlagFieldArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of MatchAttributes
 * 
 */
public final class MatchAttributesArgs extends com.pulumi.resources.ResourceArgs {

    public static final MatchAttributesArgs Empty = new MatchAttributesArgs();

    /**
     * Property destinationPorts
     * 
     */
    @Import(name="destinationPorts")
    private @Nullable Output> destinationPorts;

    /**
     * @return Property destinationPorts
     * 
     */
    public Optional>> destinationPorts() {
        return Optional.ofNullable(this.destinationPorts);
    }

    /**
     * Property destinations
     * 
     */
    @Import(name="destinations")
    private @Nullable Output> destinations;

    /**
     * @return Property destinations
     * 
     */
    public Optional>> destinations() {
        return Optional.ofNullable(this.destinations);
    }

    /**
     * Property protocols
     * 
     */
    @Import(name="protocols")
    private @Nullable Output> protocols;

    /**
     * @return Property protocols
     * 
     */
    public Optional>> protocols() {
        return Optional.ofNullable(this.protocols);
    }

    /**
     * Property sourcePorts
     * 
     */
    @Import(name="sourcePorts")
    private @Nullable Output> sourcePorts;

    /**
     * @return Property sourcePorts
     * 
     */
    public Optional>> sourcePorts() {
        return Optional.ofNullable(this.sourcePorts);
    }

    /**
     * Property sources
     * 
     */
    @Import(name="sources")
    private @Nullable Output> sources;

    /**
     * @return Property sources
     * 
     */
    public Optional>> sources() {
        return Optional.ofNullable(this.sources);
    }

    /**
     * Property tcpFlags
     * 
     */
    @Import(name="tcpFlags")
    private @Nullable Output> tcpFlags;

    /**
     * @return Property tcpFlags
     * 
     */
    public Optional>> tcpFlags() {
        return Optional.ofNullable(this.tcpFlags);
    }

    private MatchAttributesArgs() {}

    private MatchAttributesArgs(MatchAttributesArgs $) {
        this.destinationPorts = $.destinationPorts;
        this.destinations = $.destinations;
        this.protocols = $.protocols;
        this.sourcePorts = $.sourcePorts;
        this.sources = $.sources;
        this.tcpFlags = $.tcpFlags;
    }

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

    public static final class Builder {
        private MatchAttributesArgs $;

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

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

        /**
         * @param destinationPorts Property destinationPorts
         * 
         * @return builder
         * 
         */
        public Builder destinationPorts(@Nullable Output> destinationPorts) {
            $.destinationPorts = destinationPorts;
            return this;
        }

        /**
         * @param destinationPorts Property destinationPorts
         * 
         * @return builder
         * 
         */
        public Builder destinationPorts(List destinationPorts) {
            return destinationPorts(Output.of(destinationPorts));
        }

        /**
         * @param destinationPorts Property destinationPorts
         * 
         * @return builder
         * 
         */
        public Builder destinationPorts(PortRangeArgs... destinationPorts) {
            return destinationPorts(List.of(destinationPorts));
        }

        /**
         * @param destinations Property destinations
         * 
         * @return builder
         * 
         */
        public Builder destinations(@Nullable Output> destinations) {
            $.destinations = destinations;
            return this;
        }

        /**
         * @param destinations Property destinations
         * 
         * @return builder
         * 
         */
        public Builder destinations(List destinations) {
            return destinations(Output.of(destinations));
        }

        /**
         * @param destinations Property destinations
         * 
         * @return builder
         * 
         */
        public Builder destinations(AddressArgs... destinations) {
            return destinations(List.of(destinations));
        }

        /**
         * @param protocols Property protocols
         * 
         * @return builder
         * 
         */
        public Builder protocols(@Nullable Output> protocols) {
            $.protocols = protocols;
            return this;
        }

        /**
         * @param protocols Property protocols
         * 
         * @return builder
         * 
         */
        public Builder protocols(List protocols) {
            return protocols(Output.of(protocols));
        }

        /**
         * @param protocols Property protocols
         * 
         * @return builder
         * 
         */
        public Builder protocols(Integer... protocols) {
            return protocols(List.of(protocols));
        }

        /**
         * @param sourcePorts Property sourcePorts
         * 
         * @return builder
         * 
         */
        public Builder sourcePorts(@Nullable Output> sourcePorts) {
            $.sourcePorts = sourcePorts;
            return this;
        }

        /**
         * @param sourcePorts Property sourcePorts
         * 
         * @return builder
         * 
         */
        public Builder sourcePorts(List sourcePorts) {
            return sourcePorts(Output.of(sourcePorts));
        }

        /**
         * @param sourcePorts Property sourcePorts
         * 
         * @return builder
         * 
         */
        public Builder sourcePorts(PortRangeArgs... sourcePorts) {
            return sourcePorts(List.of(sourcePorts));
        }

        /**
         * @param sources Property sources
         * 
         * @return builder
         * 
         */
        public Builder sources(@Nullable Output> sources) {
            $.sources = sources;
            return this;
        }

        /**
         * @param sources Property sources
         * 
         * @return builder
         * 
         */
        public Builder sources(List sources) {
            return sources(Output.of(sources));
        }

        /**
         * @param sources Property sources
         * 
         * @return builder
         * 
         */
        public Builder sources(AddressArgs... sources) {
            return sources(List.of(sources));
        }

        /**
         * @param tcpFlags Property tcpFlags
         * 
         * @return builder
         * 
         */
        public Builder tcpFlags(@Nullable Output> tcpFlags) {
            $.tcpFlags = tcpFlags;
            return this;
        }

        /**
         * @param tcpFlags Property tcpFlags
         * 
         * @return builder
         * 
         */
        public Builder tcpFlags(List tcpFlags) {
            return tcpFlags(Output.of(tcpFlags));
        }

        /**
         * @param tcpFlags Property tcpFlags
         * 
         * @return builder
         * 
         */
        public Builder tcpFlags(TCPFlagFieldArgs... tcpFlags) {
            return tcpFlags(List.of(tcpFlags));
        }

        public MatchAttributesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy