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

com.pulumi.azurenative.network.outputs.FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.network.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 FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse {
    /**
     * @return Description of the bypass traffic rule.
     * 
     */
    private @Nullable String description;
    /**
     * @return List of destination IP addresses or ranges for this rule.
     * 
     */
    private @Nullable List destinationAddresses;
    /**
     * @return List of destination IpGroups for this rule.
     * 
     */
    private @Nullable List destinationIpGroups;
    /**
     * @return List of destination ports or ranges.
     * 
     */
    private @Nullable List destinationPorts;
    /**
     * @return Name of the bypass traffic rule.
     * 
     */
    private @Nullable String name;
    /**
     * @return The rule bypass protocol.
     * 
     */
    private @Nullable String protocol;
    /**
     * @return List of source IP addresses or ranges for this rule.
     * 
     */
    private @Nullable List sourceAddresses;
    /**
     * @return List of source IpGroups for this rule.
     * 
     */
    private @Nullable List sourceIpGroups;

    private FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse() {}
    /**
     * @return Description of the bypass traffic rule.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return List of destination IP addresses or ranges for this rule.
     * 
     */
    public List destinationAddresses() {
        return this.destinationAddresses == null ? List.of() : this.destinationAddresses;
    }
    /**
     * @return List of destination IpGroups for this rule.
     * 
     */
    public List destinationIpGroups() {
        return this.destinationIpGroups == null ? List.of() : this.destinationIpGroups;
    }
    /**
     * @return List of destination ports or ranges.
     * 
     */
    public List destinationPorts() {
        return this.destinationPorts == null ? List.of() : this.destinationPorts;
    }
    /**
     * @return Name of the bypass traffic rule.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return The rule bypass protocol.
     * 
     */
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    /**
     * @return List of source IP addresses or ranges for this rule.
     * 
     */
    public List sourceAddresses() {
        return this.sourceAddresses == null ? List.of() : this.sourceAddresses;
    }
    /**
     * @return List of source IpGroups for this rule.
     * 
     */
    public List sourceIpGroups() {
        return this.sourceIpGroups == null ? List.of() : this.sourceIpGroups;
    }

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

    public static Builder builder(FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable List destinationAddresses;
        private @Nullable List destinationIpGroups;
        private @Nullable List destinationPorts;
        private @Nullable String name;
        private @Nullable String protocol;
        private @Nullable List sourceAddresses;
        private @Nullable List sourceIpGroups;
        public Builder() {}
        public Builder(FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.destinationAddresses = defaults.destinationAddresses;
    	      this.destinationIpGroups = defaults.destinationIpGroups;
    	      this.destinationPorts = defaults.destinationPorts;
    	      this.name = defaults.name;
    	      this.protocol = defaults.protocol;
    	      this.sourceAddresses = defaults.sourceAddresses;
    	      this.sourceIpGroups = defaults.sourceIpGroups;
        }

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

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

            this.destinationAddresses = destinationAddresses;
            return this;
        }
        public Builder destinationAddresses(String... destinationAddresses) {
            return destinationAddresses(List.of(destinationAddresses));
        }
        @CustomType.Setter
        public Builder destinationIpGroups(@Nullable List destinationIpGroups) {

            this.destinationIpGroups = destinationIpGroups;
            return this;
        }
        public Builder destinationIpGroups(String... destinationIpGroups) {
            return destinationIpGroups(List.of(destinationIpGroups));
        }
        @CustomType.Setter
        public Builder destinationPorts(@Nullable List destinationPorts) {

            this.destinationPorts = destinationPorts;
            return this;
        }
        public Builder destinationPorts(String... destinationPorts) {
            return destinationPorts(List.of(destinationPorts));
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(@Nullable String protocol) {

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

            this.sourceAddresses = sourceAddresses;
            return this;
        }
        public Builder sourceAddresses(String... sourceAddresses) {
            return sourceAddresses(List.of(sourceAddresses));
        }
        @CustomType.Setter
        public Builder sourceIpGroups(@Nullable List sourceIpGroups) {

            this.sourceIpGroups = sourceIpGroups;
            return this;
        }
        public Builder sourceIpGroups(String... sourceIpGroups) {
            return sourceIpGroups(List.of(sourceIpGroups));
        }
        public FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse build() {
            final var _resultValue = new FirewallPolicyIntrusionDetectionBypassTrafficSpecificationsResponse();
            _resultValue.description = description;
            _resultValue.destinationAddresses = destinationAddresses;
            _resultValue.destinationIpGroups = destinationIpGroups;
            _resultValue.destinationPorts = destinationPorts;
            _resultValue.name = name;
            _resultValue.protocol = protocol;
            _resultValue.sourceAddresses = sourceAddresses;
            _resultValue.sourceIpGroups = sourceIpGroups;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy