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

com.pulumi.azurenative.managednetworkfabric.outputs.NetworkTapRuleMatchConfigurationResponse 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.managednetworkfabric.outputs;

import com.pulumi.azurenative.managednetworkfabric.outputs.NetworkTapRuleActionResponse;
import com.pulumi.azurenative.managednetworkfabric.outputs.NetworkTapRuleMatchConditionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkTapRuleMatchConfigurationResponse {
    /**
     * @return List of actions that need to be performed for the matched conditions.
     * 
     */
    private @Nullable List actions;
    /**
     * @return Type of IP Address. IPv4 or IPv6
     * 
     */
    private @Nullable String ipAddressType;
    /**
     * @return List of the match conditions.
     * 
     */
    private @Nullable List matchConditions;
    /**
     * @return The name of the match configuration.
     * 
     */
    private @Nullable String matchConfigurationName;
    /**
     * @return Sequence Number of the match configuration..
     * 
     */
    private @Nullable Double sequenceNumber;

    private NetworkTapRuleMatchConfigurationResponse() {}
    /**
     * @return List of actions that need to be performed for the matched conditions.
     * 
     */
    public List actions() {
        return this.actions == null ? List.of() : this.actions;
    }
    /**
     * @return Type of IP Address. IPv4 or IPv6
     * 
     */
    public Optional ipAddressType() {
        return Optional.ofNullable(this.ipAddressType);
    }
    /**
     * @return List of the match conditions.
     * 
     */
    public List matchConditions() {
        return this.matchConditions == null ? List.of() : this.matchConditions;
    }
    /**
     * @return The name of the match configuration.
     * 
     */
    public Optional matchConfigurationName() {
        return Optional.ofNullable(this.matchConfigurationName);
    }
    /**
     * @return Sequence Number of the match configuration..
     * 
     */
    public Optional sequenceNumber() {
        return Optional.ofNullable(this.sequenceNumber);
    }

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

    public static Builder builder(NetworkTapRuleMatchConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List actions;
        private @Nullable String ipAddressType;
        private @Nullable List matchConditions;
        private @Nullable String matchConfigurationName;
        private @Nullable Double sequenceNumber;
        public Builder() {}
        public Builder(NetworkTapRuleMatchConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.ipAddressType = defaults.ipAddressType;
    	      this.matchConditions = defaults.matchConditions;
    	      this.matchConfigurationName = defaults.matchConfigurationName;
    	      this.sequenceNumber = defaults.sequenceNumber;
        }

        @CustomType.Setter
        public Builder actions(@Nullable List actions) {

            this.actions = actions;
            return this;
        }
        public Builder actions(NetworkTapRuleActionResponse... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder ipAddressType(@Nullable String ipAddressType) {

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

            this.matchConditions = matchConditions;
            return this;
        }
        public Builder matchConditions(NetworkTapRuleMatchConditionResponse... matchConditions) {
            return matchConditions(List.of(matchConditions));
        }
        @CustomType.Setter
        public Builder matchConfigurationName(@Nullable String matchConfigurationName) {

            this.matchConfigurationName = matchConfigurationName;
            return this;
        }
        @CustomType.Setter
        public Builder sequenceNumber(@Nullable Double sequenceNumber) {

            this.sequenceNumber = sequenceNumber;
            return this;
        }
        public NetworkTapRuleMatchConfigurationResponse build() {
            final var _resultValue = new NetworkTapRuleMatchConfigurationResponse();
            _resultValue.actions = actions;
            _resultValue.ipAddressType = ipAddressType;
            _resultValue.matchConditions = matchConditions;
            _resultValue.matchConfigurationName = matchConfigurationName;
            _resultValue.sequenceNumber = sequenceNumber;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy