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

com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetNetworkInterface Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.compute.outputs;

import com.pulumi.azure.compute.outputs.GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration;
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;

@CustomType
public final class GetVirtualMachineScaleSetNetworkInterface {
    /**
     * @return An array of the DNS servers in use.
     * 
     */
    private List dnsServers;
    /**
     * @return Whether to enable accelerated networking or not.
     * 
     */
    private Boolean enableAcceleratedNetworking;
    /**
     * @return Whether IP forwarding is enabled on this NIC.
     * 
     */
    private Boolean enableIpForwarding;
    /**
     * @return An `ip_configuration` block as documented below.
     * 
     */
    private List ipConfigurations;
    /**
     * @return The name of this Virtual Machine Scale Set.
     * 
     */
    private String name;
    /**
     * @return The identifier for the network security group.
     * 
     */
    private String networkSecurityGroupId;
    /**
     * @return If this ip_configuration is the primary one.
     * 
     */
    private Boolean primary;

    private GetVirtualMachineScaleSetNetworkInterface() {}
    /**
     * @return An array of the DNS servers in use.
     * 
     */
    public List dnsServers() {
        return this.dnsServers;
    }
    /**
     * @return Whether to enable accelerated networking or not.
     * 
     */
    public Boolean enableAcceleratedNetworking() {
        return this.enableAcceleratedNetworking;
    }
    /**
     * @return Whether IP forwarding is enabled on this NIC.
     * 
     */
    public Boolean enableIpForwarding() {
        return this.enableIpForwarding;
    }
    /**
     * @return An `ip_configuration` block as documented below.
     * 
     */
    public List ipConfigurations() {
        return this.ipConfigurations;
    }
    /**
     * @return The name of this Virtual Machine Scale Set.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The identifier for the network security group.
     * 
     */
    public String networkSecurityGroupId() {
        return this.networkSecurityGroupId;
    }
    /**
     * @return If this ip_configuration is the primary one.
     * 
     */
    public Boolean primary() {
        return this.primary;
    }

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

    public static Builder builder(GetVirtualMachineScaleSetNetworkInterface defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List dnsServers;
        private Boolean enableAcceleratedNetworking;
        private Boolean enableIpForwarding;
        private List ipConfigurations;
        private String name;
        private String networkSecurityGroupId;
        private Boolean primary;
        public Builder() {}
        public Builder(GetVirtualMachineScaleSetNetworkInterface defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsServers = defaults.dnsServers;
    	      this.enableAcceleratedNetworking = defaults.enableAcceleratedNetworking;
    	      this.enableIpForwarding = defaults.enableIpForwarding;
    	      this.ipConfigurations = defaults.ipConfigurations;
    	      this.name = defaults.name;
    	      this.networkSecurityGroupId = defaults.networkSecurityGroupId;
    	      this.primary = defaults.primary;
        }

        @CustomType.Setter
        public Builder dnsServers(List dnsServers) {
            if (dnsServers == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "dnsServers");
            }
            this.dnsServers = dnsServers;
            return this;
        }
        public Builder dnsServers(String... dnsServers) {
            return dnsServers(List.of(dnsServers));
        }
        @CustomType.Setter
        public Builder enableAcceleratedNetworking(Boolean enableAcceleratedNetworking) {
            if (enableAcceleratedNetworking == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "enableAcceleratedNetworking");
            }
            this.enableAcceleratedNetworking = enableAcceleratedNetworking;
            return this;
        }
        @CustomType.Setter
        public Builder enableIpForwarding(Boolean enableIpForwarding) {
            if (enableIpForwarding == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "enableIpForwarding");
            }
            this.enableIpForwarding = enableIpForwarding;
            return this;
        }
        @CustomType.Setter
        public Builder ipConfigurations(List ipConfigurations) {
            if (ipConfigurations == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "ipConfigurations");
            }
            this.ipConfigurations = ipConfigurations;
            return this;
        }
        public Builder ipConfigurations(GetVirtualMachineScaleSetNetworkInterfaceIpConfiguration... ipConfigurations) {
            return ipConfigurations(List.of(ipConfigurations));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder networkSecurityGroupId(String networkSecurityGroupId) {
            if (networkSecurityGroupId == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "networkSecurityGroupId");
            }
            this.networkSecurityGroupId = networkSecurityGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder primary(Boolean primary) {
            if (primary == null) {
              throw new MissingRequiredPropertyException("GetVirtualMachineScaleSetNetworkInterface", "primary");
            }
            this.primary = primary;
            return this;
        }
        public GetVirtualMachineScaleSetNetworkInterface build() {
            final var _resultValue = new GetVirtualMachineScaleSetNetworkInterface();
            _resultValue.dnsServers = dnsServers;
            _resultValue.enableAcceleratedNetworking = enableAcceleratedNetworking;
            _resultValue.enableIpForwarding = enableIpForwarding;
            _resultValue.ipConfigurations = ipConfigurations;
            _resultValue.name = name;
            _resultValue.networkSecurityGroupId = networkSecurityGroupId;
            _resultValue.primary = primary;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy