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

com.pulumi.azure.network.outputs.VirtualNetworkGatewayIpConfiguration 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.azure.network.outputs;

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

@CustomType
public final class VirtualNetworkGatewayIpConfiguration {
    /**
     * @return A user-defined name of the IP configuration. Defaults to `vnetGatewayConfig`.
     * 
     */
    private @Nullable String name;
    /**
     * @return Defines how the private IP address of the gateways virtual interface is assigned. The only valid value is `Dynamic` for Virtual Network Gateway (`Static` is not supported by the service yet). Defaults to `Dynamic`.
     * 
     */
    private @Nullable String privateIpAddressAllocation;
    /**
     * @return The ID of the public IP address to associate with the Virtual Network Gateway.
     * 
     */
    private String publicIpAddressId;
    /**
     * @return The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named `GatewaySubnet`. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
     * 
     */
    private String subnetId;

    private VirtualNetworkGatewayIpConfiguration() {}
    /**
     * @return A user-defined name of the IP configuration. Defaults to `vnetGatewayConfig`.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Defines how the private IP address of the gateways virtual interface is assigned. The only valid value is `Dynamic` for Virtual Network Gateway (`Static` is not supported by the service yet). Defaults to `Dynamic`.
     * 
     */
    public Optional privateIpAddressAllocation() {
        return Optional.ofNullable(this.privateIpAddressAllocation);
    }
    /**
     * @return The ID of the public IP address to associate with the Virtual Network Gateway.
     * 
     */
    public String publicIpAddressId() {
        return this.publicIpAddressId;
    }
    /**
     * @return The ID of the gateway subnet of a virtual network in which the virtual network gateway will be created. It is mandatory that the associated subnet is named `GatewaySubnet`. Therefore, each virtual network can contain at most a single Virtual Network Gateway.
     * 
     */
    public String subnetId() {
        return this.subnetId;
    }

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

    public static Builder builder(VirtualNetworkGatewayIpConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String name;
        private @Nullable String privateIpAddressAllocation;
        private String publicIpAddressId;
        private String subnetId;
        public Builder() {}
        public Builder(VirtualNetworkGatewayIpConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.privateIpAddressAllocation = defaults.privateIpAddressAllocation;
    	      this.publicIpAddressId = defaults.publicIpAddressId;
    	      this.subnetId = defaults.subnetId;
        }

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

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

            this.privateIpAddressAllocation = privateIpAddressAllocation;
            return this;
        }
        @CustomType.Setter
        public Builder publicIpAddressId(String publicIpAddressId) {
            if (publicIpAddressId == null) {
              throw new MissingRequiredPropertyException("VirtualNetworkGatewayIpConfiguration", "publicIpAddressId");
            }
            this.publicIpAddressId = publicIpAddressId;
            return this;
        }
        @CustomType.Setter
        public Builder subnetId(String subnetId) {
            if (subnetId == null) {
              throw new MissingRequiredPropertyException("VirtualNetworkGatewayIpConfiguration", "subnetId");
            }
            this.subnetId = subnetId;
            return this;
        }
        public VirtualNetworkGatewayIpConfiguration build() {
            final var _resultValue = new VirtualNetworkGatewayIpConfiguration();
            _resultValue.name = name;
            _resultValue.privateIpAddressAllocation = privateIpAddressAllocation;
            _resultValue.publicIpAddressId = publicIpAddressId;
            _resultValue.subnetId = subnetId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy