NetworkInterface.DefinitionStages.WithCreate Interface

Implements

public static interface NetworkInterface.DefinitionStages.WithCreate
extends Creatable<NetworkInterface>, DefinitionWithTags<WithCreate>, WithPrimaryPublicIPAddress, WithNetworkSecurityGroup, WithSecondaryIPConfiguration, WithAcceleratedNetworking, WithLoadBalancer

The stage of the network interface definition which contains all the minimum required inputs for the resource to be created, but also allows for any other optional settings to be specified.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withDnsServer(String ipAddress)

Specifies the IP address of the custom DNS server to associate with the network interface.

abstract WithCreate withIPForwarding()

Enables IP forwarding in the network interface.

abstract WithCreate withInternalDnsNameLabel(String dnsNameLabel)

Specifies the internal DNS name label for the network interface.

Method Details

withDnsServer

public abstract NetworkInterface.DefinitionStages.WithCreate withDnsServer(String ipAddress)

Specifies the IP address of the custom DNS server to associate with the network interface.

Note this method's effect is additive, i.e. each time it is used, the new dns server is added to the network interface.

Parameters:

ipAddress - the IP address of the DNS server

Returns:

the next stage of the definition

withIPForwarding

public abstract NetworkInterface.DefinitionStages.WithCreate withIPForwarding()

Enables IP forwarding in the network interface.

Returns:

the next stage of the definition

withInternalDnsNameLabel

public abstract NetworkInterface.DefinitionStages.WithCreate withInternalDnsNameLabel(String dnsNameLabel)

Specifies the internal DNS name label for the network interface.

Parameters:

dnsNameLabel - the internal DNS name label

Returns:

the next stage of the definition

Applies to