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

com.pulumi.azurenative.network.outputs.VpnClientConnectionHealthResponse 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.network.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
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 VpnClientConnectionHealthResponse {
    /**
     * @return List of allocated ip addresses to the connected p2s vpn clients.
     * 
     */
    private @Nullable List allocatedIpAddresses;
    /**
     * @return Total of the Egress Bytes Transferred in this connection.
     * 
     */
    private Double totalEgressBytesTransferred;
    /**
     * @return Total of the Ingress Bytes Transferred in this P2S Vpn connection.
     * 
     */
    private Double totalIngressBytesTransferred;
    /**
     * @return The total of p2s vpn clients connected at this time to this P2SVpnGateway.
     * 
     */
    private @Nullable Integer vpnClientConnectionsCount;

    private VpnClientConnectionHealthResponse() {}
    /**
     * @return List of allocated ip addresses to the connected p2s vpn clients.
     * 
     */
    public List allocatedIpAddresses() {
        return this.allocatedIpAddresses == null ? List.of() : this.allocatedIpAddresses;
    }
    /**
     * @return Total of the Egress Bytes Transferred in this connection.
     * 
     */
    public Double totalEgressBytesTransferred() {
        return this.totalEgressBytesTransferred;
    }
    /**
     * @return Total of the Ingress Bytes Transferred in this P2S Vpn connection.
     * 
     */
    public Double totalIngressBytesTransferred() {
        return this.totalIngressBytesTransferred;
    }
    /**
     * @return The total of p2s vpn clients connected at this time to this P2SVpnGateway.
     * 
     */
    public Optional vpnClientConnectionsCount() {
        return Optional.ofNullable(this.vpnClientConnectionsCount);
    }

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

    public static Builder builder(VpnClientConnectionHealthResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List allocatedIpAddresses;
        private Double totalEgressBytesTransferred;
        private Double totalIngressBytesTransferred;
        private @Nullable Integer vpnClientConnectionsCount;
        public Builder() {}
        public Builder(VpnClientConnectionHealthResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocatedIpAddresses = defaults.allocatedIpAddresses;
    	      this.totalEgressBytesTransferred = defaults.totalEgressBytesTransferred;
    	      this.totalIngressBytesTransferred = defaults.totalIngressBytesTransferred;
    	      this.vpnClientConnectionsCount = defaults.vpnClientConnectionsCount;
        }

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

            this.allocatedIpAddresses = allocatedIpAddresses;
            return this;
        }
        public Builder allocatedIpAddresses(String... allocatedIpAddresses) {
            return allocatedIpAddresses(List.of(allocatedIpAddresses));
        }
        @CustomType.Setter
        public Builder totalEgressBytesTransferred(Double totalEgressBytesTransferred) {
            if (totalEgressBytesTransferred == null) {
              throw new MissingRequiredPropertyException("VpnClientConnectionHealthResponse", "totalEgressBytesTransferred");
            }
            this.totalEgressBytesTransferred = totalEgressBytesTransferred;
            return this;
        }
        @CustomType.Setter
        public Builder totalIngressBytesTransferred(Double totalIngressBytesTransferred) {
            if (totalIngressBytesTransferred == null) {
              throw new MissingRequiredPropertyException("VpnClientConnectionHealthResponse", "totalIngressBytesTransferred");
            }
            this.totalIngressBytesTransferred = totalIngressBytesTransferred;
            return this;
        }
        @CustomType.Setter
        public Builder vpnClientConnectionsCount(@Nullable Integer vpnClientConnectionsCount) {

            this.vpnClientConnectionsCount = vpnClientConnectionsCount;
            return this;
        }
        public VpnClientConnectionHealthResponse build() {
            final var _resultValue = new VpnClientConnectionHealthResponse();
            _resultValue.allocatedIpAddresses = allocatedIpAddresses;
            _resultValue.totalEgressBytesTransferred = totalEgressBytesTransferred;
            _resultValue.totalIngressBytesTransferred = totalIngressBytesTransferred;
            _resultValue.vpnClientConnectionsCount = vpnClientConnectionsCount;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy