Partilhar via


PublicIpAddressInner Class

public final class PublicIpAddressInner
extends Resource

Public IP address resource.

Constructor Summary

Constructor Description
PublicIpAddressInner()

Creates an instance of PublicIpAddressInner class.

Method Summary

Modifier and Type Method and Description
DdosSettings ddosSettings()

Get the ddosSettings property: The DDoS protection custom policy associated with the public IP address.

DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.

PublicIpAddressDnsSettings dnsSettings()

Get the dnsSettings property: The FQDN of the DNS record associated with the public IP address.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the public ip address.

static PublicIpAddressInner fromJson(JsonReader jsonReader)

Reads an instance of PublicIpAddressInner from the JsonReader.

String id()

Get the id property: Resource ID.

Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.

String ipAddress()

Get the ipAddress property: The IP address associated with the public IP address resource.

IpConfigurationInner ipConfiguration()

Get the ipConfiguration property: The IP configuration associated with the public IP address.

List<IpTag> ipTags()

Get the ipTags property: The list of tags associated with the public IP address.

PublicIpAddressInner linkedPublicIpAddress()

Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.

PublicIpAddressMigrationPhase migrationPhase()

Get the migrationPhase property: Migration phase of Public IP Address.

String name()

Get the name property: The name of the resource.

NatGatewayInner natGateway()

Get the natGateway property: The NatGateway for the Public IP address.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the public IP address resource.

IpVersion publicIpAddressVersion()

Get the publicIpAddressVersion property: The public IP address version.

IpAllocationMethod publicIpAllocationMethod()

Get the publicIpAllocationMethod property: The public IP address allocation method.

SubResource publicIpPrefix()

Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.

String resourceGuid()

Get the resourceGuid property: The resource GUID property of the public IP address resource.

PublicIpAddressInner servicePublicIpAddress()

Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.

PublicIpAddressSku sku()

Get the sku property: The public IP address SKU.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

PublicIpAddressInner withDdosSettings(DdosSettings ddosSettings)

Set the ddosSettings property: The DDoS protection custom policy associated with the public IP address.

PublicIpAddressInner withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.

PublicIpAddressInner withDnsSettings(PublicIpAddressDnsSettings dnsSettings)

Set the dnsSettings property: The FQDN of the DNS record associated with the public IP address.

PublicIpAddressInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the public ip address.

PublicIpAddressInner withId(String id)

Set the id property: Resource ID.

PublicIpAddressInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.

PublicIpAddressInner withIpAddress(String ipAddress)

Set the ipAddress property: The IP address associated with the public IP address resource.

PublicIpAddressInner withIpTags(List<IpTag> ipTags)

Set the ipTags property: The list of tags associated with the public IP address.

PublicIpAddressInner withLinkedPublicIpAddress(PublicIpAddressInner linkedPublicIpAddress)

Set the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.

PublicIpAddressInner withLocation(String location)
PublicIpAddressInner withMigrationPhase(PublicIpAddressMigrationPhase migrationPhase)

Set the migrationPhase property: Migration phase of Public IP Address.

PublicIpAddressInner withNatGateway(NatGatewayInner natGateway)

Set the natGateway property: The NatGateway for the Public IP address.

PublicIpAddressInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion)

Set the publicIpAddressVersion property: The public IP address version.

PublicIpAddressInner withPublicIpAllocationMethod(IpAllocationMethod publicIpAllocationMethod)

Set the publicIpAllocationMethod property: The public IP address allocation method.

PublicIpAddressInner withPublicIpPrefix(SubResource publicIpPrefix)

Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.

PublicIpAddressInner withServicePublicIpAddress(PublicIpAddressInner servicePublicIpAddress)

Set the servicePublicIpAddress property: The service public IP address of the public IP address resource.

PublicIpAddressInner withSku(PublicIpAddressSku sku)

Set the sku property: The public IP address SKU.

PublicIpAddressInner withTags(Map<String,String> tags)
PublicIpAddressInner withZones(List<String> zones)

Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

List<String> zones()

Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

PublicIpAddressInner

public PublicIpAddressInner()

Creates an instance of PublicIpAddressInner class.

Method Details

ddosSettings

public DdosSettings ddosSettings()

Get the ddosSettings property: The DDoS protection custom policy associated with the public IP address.

Returns:

the ddosSettings value.

deleteOption

public DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.

Returns:

the deleteOption value.

dnsSettings

public PublicIpAddressDnsSettings dnsSettings()

Get the dnsSettings property: The FQDN of the DNS record associated with the public IP address.

Returns:

the dnsSettings value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the public ip address.

Returns:

the extendedLocation value.

fromJson

public static PublicIpAddressInner fromJson(JsonReader jsonReader)

Reads an instance of PublicIpAddressInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PublicIpAddressInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Resource ID.

Overrides:

PublicIpAddressInner.id()

Returns:

the id value.

idleTimeoutInMinutes

public Integer idleTimeoutInMinutes()

Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.

Returns:

the idleTimeoutInMinutes value.

ipAddress

public String ipAddress()

Get the ipAddress property: The IP address associated with the public IP address resource.

Returns:

the ipAddress value.

ipConfiguration

public IpConfigurationInner ipConfiguration()

Get the ipConfiguration property: The IP configuration associated with the public IP address.

Returns:

the ipConfiguration value.

ipTags

public List ipTags()

Get the ipTags property: The list of tags associated with the public IP address.

Returns:

the ipTags value.

linkedPublicIpAddress

public PublicIpAddressInner linkedPublicIpAddress()

Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.

Returns:

the linkedPublicIpAddress value.

migrationPhase

public PublicIpAddressMigrationPhase migrationPhase()

Get the migrationPhase property: Migration phase of Public IP Address.

Returns:

the migrationPhase value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

PublicIpAddressInner.name()

Returns:

the name value.

natGateway

public NatGatewayInner natGateway()

Get the natGateway property: The NatGateway for the Public IP address.

Returns:

the natGateway value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the public IP address resource.

Returns:

the provisioningState value.

publicIpAddressVersion

public IpVersion publicIpAddressVersion()

Get the publicIpAddressVersion property: The public IP address version.

Returns:

the publicIpAddressVersion value.

publicIpAllocationMethod

public IpAllocationMethod publicIpAllocationMethod()

Get the publicIpAllocationMethod property: The public IP address allocation method.

Returns:

the publicIpAllocationMethod value.

publicIpPrefix

public SubResource publicIpPrefix()

Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.

Returns:

the publicIpPrefix value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the public IP address resource.

Returns:

the resourceGuid value.

servicePublicIpAddress

public PublicIpAddressInner servicePublicIpAddress()

Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.

Returns:

the servicePublicIpAddress value.

sku

public PublicIpAddressSku sku()

Get the sku property: The public IP address SKU.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

PublicIpAddressInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

PublicIpAddressInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDdosSettings

public PublicIpAddressInner withDdosSettings(DdosSettings ddosSettings)

Set the ddosSettings property: The DDoS protection custom policy associated with the public IP address.

Parameters:

ddosSettings - the ddosSettings value to set.

Returns:

the PublicIpAddressInner object itself.

withDeleteOption

public PublicIpAddressInner withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.

Parameters:

deleteOption - the deleteOption value to set.

Returns:

the PublicIpAddressInner object itself.

withDnsSettings

public PublicIpAddressInner withDnsSettings(PublicIpAddressDnsSettings dnsSettings)

Set the dnsSettings property: The FQDN of the DNS record associated with the public IP address.

Parameters:

dnsSettings - the dnsSettings value to set.

Returns:

the PublicIpAddressInner object itself.

withExtendedLocation

public PublicIpAddressInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the public ip address.

Parameters:

extendedLocation - the extendedLocation value to set.

Returns:

the PublicIpAddressInner object itself.

withId

public PublicIpAddressInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the PublicIpAddressInner object itself.

withIdleTimeoutInMinutes

public PublicIpAddressInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)

Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.

Parameters:

idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.

Returns:

the PublicIpAddressInner object itself.

withIpAddress

public PublicIpAddressInner withIpAddress(String ipAddress)

Set the ipAddress property: The IP address associated with the public IP address resource.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the PublicIpAddressInner object itself.

withIpTags

public PublicIpAddressInner withIpTags(List ipTags)

Set the ipTags property: The list of tags associated with the public IP address.

Parameters:

ipTags - the ipTags value to set.

Returns:

the PublicIpAddressInner object itself.

withLinkedPublicIpAddress

public PublicIpAddressInner withLinkedPublicIpAddress(PublicIpAddressInner linkedPublicIpAddress)

Set the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.

Parameters:

linkedPublicIpAddress - the linkedPublicIpAddress value to set.

Returns:

the PublicIpAddressInner object itself.

withLocation

public PublicIpAddressInner withLocation(String location)

Overrides:

PublicIpAddressInner.withLocation(String location)

Parameters:

location

withMigrationPhase

public PublicIpAddressInner withMigrationPhase(PublicIpAddressMigrationPhase migrationPhase)

Set the migrationPhase property: Migration phase of Public IP Address.

Parameters:

migrationPhase - the migrationPhase value to set.

Returns:

the PublicIpAddressInner object itself.

withNatGateway

public PublicIpAddressInner withNatGateway(NatGatewayInner natGateway)

Set the natGateway property: The NatGateway for the Public IP address.

Parameters:

natGateway - the natGateway value to set.

Returns:

the PublicIpAddressInner object itself.

withPublicIpAddressVersion

public PublicIpAddressInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion)

Set the publicIpAddressVersion property: The public IP address version.

Parameters:

publicIpAddressVersion - the publicIpAddressVersion value to set.

Returns:

the PublicIpAddressInner object itself.

withPublicIpAllocationMethod

public PublicIpAddressInner withPublicIpAllocationMethod(IpAllocationMethod publicIpAllocationMethod)

Set the publicIpAllocationMethod property: The public IP address allocation method.

Parameters:

publicIpAllocationMethod - the publicIpAllocationMethod value to set.

Returns:

the PublicIpAddressInner object itself.

withPublicIpPrefix

public PublicIpAddressInner withPublicIpPrefix(SubResource publicIpPrefix)

Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.

Parameters:

publicIpPrefix - the publicIpPrefix value to set.

Returns:

the PublicIpAddressInner object itself.

withServicePublicIpAddress

public PublicIpAddressInner withServicePublicIpAddress(PublicIpAddressInner servicePublicIpAddress)

Set the servicePublicIpAddress property: The service public IP address of the public IP address resource.

Parameters:

servicePublicIpAddress - the servicePublicIpAddress value to set.

Returns:

the PublicIpAddressInner object itself.

withSku

public PublicIpAddressInner withSku(PublicIpAddressSku sku)

Set the sku property: The public IP address SKU.

Parameters:

sku - the sku value to set.

Returns:

the PublicIpAddressInner object itself.

withTags

public PublicIpAddressInner withTags(Map tags)

Overrides:

PublicIpAddressInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public PublicIpAddressInner withZones(List zones)

Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

Parameters:

zones - the zones value to set.

Returns:

the PublicIpAddressInner object itself.

zones

public List zones()

Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.

Returns:

the zones value.

Applies to