PublicIPAddress.DefinitionStages.WithIPAddress Interface

public static interface PublicIPAddress.DefinitionStages.WithIPAddress

A public IP address definition allowing to set the IP allocation method (static or dynamic).

Method Summary

Modifier and Type Method and Description
abstract WithCreate withDynamicIP()

Enables dynamic IP address allocation.

abstract WithCreate withStaticIP()

Enables static IP address allocation.

Method Details

withDynamicIP

public abstract PublicIPAddress.DefinitionStages.WithCreate withDynamicIP()

Enables dynamic IP address allocation.

Returns:

the next stage of the definition

withStaticIP

public abstract PublicIPAddress.DefinitionStages.WithCreate withStaticIP()

Enables static IP address allocation.

Use ipAddress() after the public IP address is created to obtain the actual IP address allocated for this resource by Azure

Returns:

the next stage of the definition

Applies to