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

com.pulumi.azurenative.servicefabric.outputs.NetworkSecurityRuleResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.servicefabric.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NetworkSecurityRuleResponse {
    /**
     * @return The network traffic is allowed or denied.
     * 
     */
    private String access;
    /**
     * @return Network security rule description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
     * 
     */
    private @Nullable String destinationAddressPrefix;
    /**
     * @return The destination address prefixes. CIDR or destination IP ranges.
     * 
     */
    private @Nullable List destinationAddressPrefixes;
    /**
     * @return he destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
     * 
     */
    private @Nullable String destinationPortRange;
    /**
     * @return The destination port ranges.
     * 
     */
    private @Nullable List destinationPortRanges;
    /**
     * @return Network security rule direction.
     * 
     */
    private String direction;
    /**
     * @return Network security rule name.
     * 
     */
    private String name;
    /**
     * @return The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
     * 
     */
    private Integer priority;
    /**
     * @return Network protocol this rule applies to.
     * 
     */
    private String protocol;
    /**
     * @return The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
     * 
     */
    private @Nullable String sourceAddressPrefix;
    /**
     * @return The CIDR or source IP ranges.
     * 
     */
    private @Nullable List sourceAddressPrefixes;
    /**
     * @return The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
     * 
     */
    private @Nullable String sourcePortRange;
    /**
     * @return The source port ranges.
     * 
     */
    private @Nullable List sourcePortRanges;

    private NetworkSecurityRuleResponse() {}
    /**
     * @return The network traffic is allowed or denied.
     * 
     */
    public String access() {
        return this.access;
    }
    /**
     * @return Network security rule description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used.
     * 
     */
    public Optional destinationAddressPrefix() {
        return Optional.ofNullable(this.destinationAddressPrefix);
    }
    /**
     * @return The destination address prefixes. CIDR or destination IP ranges.
     * 
     */
    public List destinationAddressPrefixes() {
        return this.destinationAddressPrefixes == null ? List.of() : this.destinationAddressPrefixes;
    }
    /**
     * @return he destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
     * 
     */
    public Optional destinationPortRange() {
        return Optional.ofNullable(this.destinationPortRange);
    }
    /**
     * @return The destination port ranges.
     * 
     */
    public List destinationPortRanges() {
        return this.destinationPortRanges == null ? List.of() : this.destinationPortRanges;
    }
    /**
     * @return Network security rule direction.
     * 
     */
    public String direction() {
        return this.direction;
    }
    /**
     * @return Network security rule name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The priority of the rule. The value can be in the range 1000 to 3000. Values outside this range are reserved for Service Fabric ManagerCluster Resource Provider. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
     * 
     */
    public Integer priority() {
        return this.priority;
    }
    /**
     * @return Network protocol this rule applies to.
     * 
     */
    public String protocol() {
        return this.protocol;
    }
    /**
     * @return The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from.
     * 
     */
    public Optional sourceAddressPrefix() {
        return Optional.ofNullable(this.sourceAddressPrefix);
    }
    /**
     * @return The CIDR or source IP ranges.
     * 
     */
    public List sourceAddressPrefixes() {
        return this.sourceAddressPrefixes == null ? List.of() : this.sourceAddressPrefixes;
    }
    /**
     * @return The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports.
     * 
     */
    public Optional sourcePortRange() {
        return Optional.ofNullable(this.sourcePortRange);
    }
    /**
     * @return The source port ranges.
     * 
     */
    public List sourcePortRanges() {
        return this.sourcePortRanges == null ? List.of() : this.sourcePortRanges;
    }

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

    public static Builder builder(NetworkSecurityRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String access;
        private @Nullable String description;
        private @Nullable String destinationAddressPrefix;
        private @Nullable List destinationAddressPrefixes;
        private @Nullable String destinationPortRange;
        private @Nullable List destinationPortRanges;
        private String direction;
        private String name;
        private Integer priority;
        private String protocol;
        private @Nullable String sourceAddressPrefix;
        private @Nullable List sourceAddressPrefixes;
        private @Nullable String sourcePortRange;
        private @Nullable List sourcePortRanges;
        public Builder() {}
        public Builder(NetworkSecurityRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.access = defaults.access;
    	      this.description = defaults.description;
    	      this.destinationAddressPrefix = defaults.destinationAddressPrefix;
    	      this.destinationAddressPrefixes = defaults.destinationAddressPrefixes;
    	      this.destinationPortRange = defaults.destinationPortRange;
    	      this.destinationPortRanges = defaults.destinationPortRanges;
    	      this.direction = defaults.direction;
    	      this.name = defaults.name;
    	      this.priority = defaults.priority;
    	      this.protocol = defaults.protocol;
    	      this.sourceAddressPrefix = defaults.sourceAddressPrefix;
    	      this.sourceAddressPrefixes = defaults.sourceAddressPrefixes;
    	      this.sourcePortRange = defaults.sourcePortRange;
    	      this.sourcePortRanges = defaults.sourcePortRanges;
        }

        @CustomType.Setter
        public Builder access(String access) {
            if (access == null) {
              throw new MissingRequiredPropertyException("NetworkSecurityRuleResponse", "access");
            }
            this.access = access;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

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

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

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

            this.destinationPortRanges = destinationPortRanges;
            return this;
        }
        public Builder destinationPortRanges(String... destinationPortRanges) {
            return destinationPortRanges(List.of(destinationPortRanges));
        }
        @CustomType.Setter
        public Builder direction(String direction) {
            if (direction == null) {
              throw new MissingRequiredPropertyException("NetworkSecurityRuleResponse", "direction");
            }
            this.direction = direction;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("NetworkSecurityRuleResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder priority(Integer priority) {
            if (priority == null) {
              throw new MissingRequiredPropertyException("NetworkSecurityRuleResponse", "priority");
            }
            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(String protocol) {
            if (protocol == null) {
              throw new MissingRequiredPropertyException("NetworkSecurityRuleResponse", "protocol");
            }
            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder sourceAddressPrefix(@Nullable String sourceAddressPrefix) {

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

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

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

            this.sourcePortRanges = sourcePortRanges;
            return this;
        }
        public Builder sourcePortRanges(String... sourcePortRanges) {
            return sourcePortRanges(List.of(sourcePortRanges));
        }
        public NetworkSecurityRuleResponse build() {
            final var _resultValue = new NetworkSecurityRuleResponse();
            _resultValue.access = access;
            _resultValue.description = description;
            _resultValue.destinationAddressPrefix = destinationAddressPrefix;
            _resultValue.destinationAddressPrefixes = destinationAddressPrefixes;
            _resultValue.destinationPortRange = destinationPortRange;
            _resultValue.destinationPortRanges = destinationPortRanges;
            _resultValue.direction = direction;
            _resultValue.name = name;
            _resultValue.priority = priority;
            _resultValue.protocol = protocol;
            _resultValue.sourceAddressPrefix = sourceAddressPrefix;
            _resultValue.sourceAddressPrefixes = sourceAddressPrefixes;
            _resultValue.sourcePortRange = sourcePortRange;
            _resultValue.sourcePortRanges = sourcePortRanges;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy