// *** 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.azure.network.outputs;

import com.pulumi.core.annotations.CustomType;
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 FirewallVirtualHub {
    /**
     * @return The private IP address associated with the Firewall.
     * 
     */
    private @Nullable String privateIpAddress;
    /**
     * @return The list of public IP addresses associated with the Firewall.
     * 
     */
    private @Nullable List<String> publicIpAddresses;
    /**
     * @return Specifies the number of public IPs to assign to the Firewall. Defaults to `1`.
     * 
     */
    private @Nullable Integer publicIpCount;
    /**
     * @return Specifies the ID of the Virtual Hub where the Firewall resides in.
     * 
     */
    private String virtualHubId;

    private FirewallVirtualHub() {}
    /**
     * @return The private IP address associated with the Firewall.
     * 
     */
    public Optional<String> privateIpAddress() {
        return Optional.ofNullable(this.privateIpAddress);
    }
    /**
     * @return The list of public IP addresses associated with the Firewall.
     * 
     */
    public List<String> publicIpAddresses() {
        return this.publicIpAddresses == null ? List.of() : this.publicIpAddresses;
    }
    /**
     * @return Specifies the number of public IPs to assign to the Firewall. Defaults to `1`.
     * 
     */
    public Optional<Integer> publicIpCount() {
        return Optional.ofNullable(this.publicIpCount);
    }
    /**
     * @return Specifies the ID of the Virtual Hub where the Firewall resides in.
     * 
     */
    public String virtualHubId() {
        return this.virtualHubId;
    }

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

    public static Builder builder(FirewallVirtualHub defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String privateIpAddress;
        private @Nullable List<String> publicIpAddresses;
        private @Nullable Integer publicIpCount;
        private String virtualHubId;
        public Builder() {}
        public Builder(FirewallVirtualHub defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.privateIpAddress = defaults.privateIpAddress;
    	      this.publicIpAddresses = defaults.publicIpAddresses;
    	      this.publicIpCount = defaults.publicIpCount;
    	      this.virtualHubId = defaults.virtualHubId;
        }

        @CustomType.Setter
        public Builder privateIpAddress(@Nullable String privateIpAddress) {
            this.privateIpAddress = privateIpAddress;
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddresses(@Nullable List<String> publicIpAddresses) {
            this.publicIpAddresses = publicIpAddresses;
            return this;
        }
        public Builder publicIpAddresses(String... publicIpAddresses) {
            return publicIpAddresses(List.of(publicIpAddresses));
        }
        @CustomType.Setter
        public Builder publicIpCount(@Nullable Integer publicIpCount) {
            this.publicIpCount = publicIpCount;
            return this;
        }
        @CustomType.Setter
        public Builder virtualHubId(String virtualHubId) {
            this.virtualHubId = Objects.requireNonNull(virtualHubId);
            return this;
        }
        public FirewallVirtualHub build() {
            final var o = new FirewallVirtualHub();
            o.privateIpAddress = privateIpAddress;
            o.publicIpAddresses = publicIpAddresses;
            o.publicIpCount = publicIpCount;
            o.virtualHubId = virtualHubId;
            return o;
        }
    }
}
