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

com.pulumi.azurenative.compute.outputs.VirtualMachineNetworkInterfaceIPConfigurationResponse 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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.SubResourceResponse;
import com.pulumi.azurenative.compute.outputs.VirtualMachinePublicIPAddressConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class VirtualMachineNetworkInterfaceIPConfigurationResponse {
    /**
     * @return Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway.
     * 
     */
    private @Nullable List applicationGatewayBackendAddressPools;
    /**
     * @return Specifies an array of references to application security group.
     * 
     */
    private @Nullable List applicationSecurityGroups;
    /**
     * @return Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer].
     * 
     */
    private @Nullable List loadBalancerBackendAddressPools;
    /**
     * @return The IP configuration name.
     * 
     */
    private String name;
    /**
     * @return Specifies the primary network interface in case the virtual machine has more than 1 network interface.
     * 
     */
    private @Nullable Boolean primary;
    /**
     * @return Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     * 
     */
    private @Nullable String privateIPAddressVersion;
    /**
     * @return The publicIPAddressConfiguration.
     * 
     */
    private @Nullable VirtualMachinePublicIPAddressConfigurationResponse publicIPAddressConfiguration;
    /**
     * @return Specifies the identifier of the subnet.
     * 
     */
    private @Nullable SubResourceResponse subnet;

    private VirtualMachineNetworkInterfaceIPConfigurationResponse() {}
    /**
     * @return Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway.
     * 
     */
    public List applicationGatewayBackendAddressPools() {
        return this.applicationGatewayBackendAddressPools == null ? List.of() : this.applicationGatewayBackendAddressPools;
    }
    /**
     * @return Specifies an array of references to application security group.
     * 
     */
    public List applicationSecurityGroups() {
        return this.applicationSecurityGroups == null ? List.of() : this.applicationSecurityGroups;
    }
    /**
     * @return Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer].
     * 
     */
    public List loadBalancerBackendAddressPools() {
        return this.loadBalancerBackendAddressPools == null ? List.of() : this.loadBalancerBackendAddressPools;
    }
    /**
     * @return The IP configuration name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Specifies the primary network interface in case the virtual machine has more than 1 network interface.
     * 
     */
    public Optional primary() {
        return Optional.ofNullable(this.primary);
    }
    /**
     * @return Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4.  Possible values are: 'IPv4' and 'IPv6'.
     * 
     */
    public Optional privateIPAddressVersion() {
        return Optional.ofNullable(this.privateIPAddressVersion);
    }
    /**
     * @return The publicIPAddressConfiguration.
     * 
     */
    public Optional publicIPAddressConfiguration() {
        return Optional.ofNullable(this.publicIPAddressConfiguration);
    }
    /**
     * @return Specifies the identifier of the subnet.
     * 
     */
    public Optional subnet() {
        return Optional.ofNullable(this.subnet);
    }

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

    public static Builder builder(VirtualMachineNetworkInterfaceIPConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List applicationGatewayBackendAddressPools;
        private @Nullable List applicationSecurityGroups;
        private @Nullable List loadBalancerBackendAddressPools;
        private String name;
        private @Nullable Boolean primary;
        private @Nullable String privateIPAddressVersion;
        private @Nullable VirtualMachinePublicIPAddressConfigurationResponse publicIPAddressConfiguration;
        private @Nullable SubResourceResponse subnet;
        public Builder() {}
        public Builder(VirtualMachineNetworkInterfaceIPConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.applicationGatewayBackendAddressPools = defaults.applicationGatewayBackendAddressPools;
    	      this.applicationSecurityGroups = defaults.applicationSecurityGroups;
    	      this.loadBalancerBackendAddressPools = defaults.loadBalancerBackendAddressPools;
    	      this.name = defaults.name;
    	      this.primary = defaults.primary;
    	      this.privateIPAddressVersion = defaults.privateIPAddressVersion;
    	      this.publicIPAddressConfiguration = defaults.publicIPAddressConfiguration;
    	      this.subnet = defaults.subnet;
        }

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

            this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
            return this;
        }
        public Builder applicationGatewayBackendAddressPools(SubResourceResponse... applicationGatewayBackendAddressPools) {
            return applicationGatewayBackendAddressPools(List.of(applicationGatewayBackendAddressPools));
        }
        @CustomType.Setter
        public Builder applicationSecurityGroups(@Nullable List applicationSecurityGroups) {

            this.applicationSecurityGroups = applicationSecurityGroups;
            return this;
        }
        public Builder applicationSecurityGroups(SubResourceResponse... applicationSecurityGroups) {
            return applicationSecurityGroups(List.of(applicationSecurityGroups));
        }
        @CustomType.Setter
        public Builder loadBalancerBackendAddressPools(@Nullable List loadBalancerBackendAddressPools) {

            this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
            return this;
        }
        public Builder loadBalancerBackendAddressPools(SubResourceResponse... loadBalancerBackendAddressPools) {
            return loadBalancerBackendAddressPools(List.of(loadBalancerBackendAddressPools));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("VirtualMachineNetworkInterfaceIPConfigurationResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder primary(@Nullable Boolean primary) {

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

            this.privateIPAddressVersion = privateIPAddressVersion;
            return this;
        }
        @CustomType.Setter
        public Builder publicIPAddressConfiguration(@Nullable VirtualMachinePublicIPAddressConfigurationResponse publicIPAddressConfiguration) {

            this.publicIPAddressConfiguration = publicIPAddressConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(@Nullable SubResourceResponse subnet) {

            this.subnet = subnet;
            return this;
        }
        public VirtualMachineNetworkInterfaceIPConfigurationResponse build() {
            final var _resultValue = new VirtualMachineNetworkInterfaceIPConfigurationResponse();
            _resultValue.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
            _resultValue.applicationSecurityGroups = applicationSecurityGroups;
            _resultValue.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
            _resultValue.name = name;
            _resultValue.primary = primary;
            _resultValue.privateIPAddressVersion = privateIPAddressVersion;
            _resultValue.publicIPAddressConfiguration = publicIPAddressConfiguration;
            _resultValue.subnet = subnet;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy