NetworkInterface.DefinitionStages.WithPrimaryPublicIPAddress Interface

public static interface NetworkInterface.DefinitionStages.WithPrimaryPublicIPAddress

The stage of the network interface definition allowing to associate public IP address with it's primary IP configuration.

Method Summary

Modifier and Type Method and Description
abstract WithCreate withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)

Associates an existing public IP address with the network interface's primary IP configuration.

abstract WithCreate withNewPrimaryPublicIPAddress()

Creates a new public IP address in the same region and group as the resource and associate it with the network interface's primary IP configuration.

abstract WithCreate withNewPrimaryPublicIPAddress(Creatable<PublicIPAddress> creatable)

Create a new public IP address to associate with network interface's primary IP configuration, based on the provided definition.

abstract WithCreate withNewPrimaryPublicIPAddress(String leafDnsLabel)

Creates a new public IP address in the same region and group as the resource, with the specified DNS label and associate it with the network interface's primary IP configuration.

Method Details

withExistingPrimaryPublicIPAddress

public abstract NetworkInterface.DefinitionStages.WithCreate withExistingPrimaryPublicIPAddress(PublicIPAddress publicIPAddress)

Associates an existing public IP address with the network interface's primary IP configuration.

Parameters:

publicIPAddress - an existing public IP address

Returns:

the next stage of the definition

withNewPrimaryPublicIPAddress

public abstract NetworkInterface.DefinitionStages.WithCreate withNewPrimaryPublicIPAddress()

Creates a new public IP address in the same region and group as the resource and associate it with the network interface's primary IP configuration.

the internal name and DNS label for the public IP address will be derived from the network interface name

Returns:

the next stage of the definition

withNewPrimaryPublicIPAddress

public abstract NetworkInterface.DefinitionStages.WithCreate withNewPrimaryPublicIPAddress(Creatable creatable)

Create a new public IP address to associate with network interface's primary IP configuration, based on the provided definition.

Parameters:

creatable - a creatable definition for a new public IP

Returns:

the next stage of the definition

withNewPrimaryPublicIPAddress

public abstract NetworkInterface.DefinitionStages.WithCreate withNewPrimaryPublicIPAddress(String leafDnsLabel)

Creates a new public IP address in the same region and group as the resource, with the specified DNS label and associate it with the network interface's primary IP configuration.

the internal name for the public IP address will be derived from the DNS label

Parameters:

leafDnsLabel - the leaf domain label

Returns:

the next stage of the definition

Applies to