Class PublicIpAddressInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner
-
public final class PublicIpAddressInner extends com.azure.core.management.ResourcePublic IP address resource.
-
-
Constructor Summary
Constructors Constructor Description PublicIpAddressInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DdosSettingsddosSettings()Get the ddosSettings property: The DDoS protection custom policy associated with the public IP address.DeleteOptionsdeleteOption()Get the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.PublicIpAddressDnsSettingsdnsSettings()Get the dnsSettings property: The FQDN of the DNS record associated with the public IP address.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.ExtendedLocationextendedLocation()Get the extendedLocation property: The extended location of the public ip address.Stringid()Get the id property: Resource ID.IntegeridleTimeoutInMinutes()Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.StringipAddress()Get the ipAddress property: The IP address associated with the public IP address resource.IpConfigurationInneripConfiguration()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.PublicIpAddressInnerlinkedPublicIpAddress()Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.PublicIpAddressMigrationPhasemigrationPhase()Get the migrationPhase property: Migration phase of Public IP Address.NatGatewayInnernatGateway()Get the natGateway property: The NatGateway for the Public IP address.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the public IP address resource.IpVersionpublicIpAddressVersion()Get the publicIpAddressVersion property: The public IP address version.IpAllocationMethodpublicIpAllocationMethod()Get the publicIpAllocationMethod property: The public IP address allocation method.com.azure.core.management.SubResourcepublicIpPrefix()Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.StringresourceGuid()Get the resourceGuid property: The resource GUID property of the public IP address resource.PublicIpAddressInnerservicePublicIpAddress()Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.PublicIpAddressSkusku()Get the sku property: The public IP address SKU.voidvalidate()Validates the instance.PublicIpAddressInnerwithDdosSettings(DdosSettings ddosSettings)Set the ddosSettings property: The DDoS protection custom policy associated with the public IP address.PublicIpAddressInnerwithDeleteOption(DeleteOptions deleteOption)Set the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.PublicIpAddressInnerwithDnsSettings(PublicIpAddressDnsSettings dnsSettings)Set the dnsSettings property: The FQDN of the DNS record associated with the public IP address.PublicIpAddressInnerwithExtendedLocation(ExtendedLocation extendedLocation)Set the extendedLocation property: The extended location of the public ip address.PublicIpAddressInnerwithId(String id)Set the id property: Resource ID.PublicIpAddressInnerwithIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.PublicIpAddressInnerwithIpAddress(String ipAddress)Set the ipAddress property: The IP address associated with the public IP address resource.PublicIpAddressInnerwithIpTags(List<IpTag> ipTags)Set the ipTags property: The list of tags associated with the public IP address.PublicIpAddressInnerwithLinkedPublicIpAddress(PublicIpAddressInner linkedPublicIpAddress)Set the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.PublicIpAddressInnerwithLocation(String location)PublicIpAddressInnerwithMigrationPhase(PublicIpAddressMigrationPhase migrationPhase)Set the migrationPhase property: Migration phase of Public IP Address.PublicIpAddressInnerwithNatGateway(NatGatewayInner natGateway)Set the natGateway property: The NatGateway for the Public IP address.PublicIpAddressInnerwithPublicIpAddressVersion(IpVersion publicIpAddressVersion)Set the publicIpAddressVersion property: The public IP address version.PublicIpAddressInnerwithPublicIpAllocationMethod(IpAllocationMethod publicIpAllocationMethod)Set the publicIpAllocationMethod property: The public IP address allocation method.PublicIpAddressInnerwithPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix)Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.PublicIpAddressInnerwithServicePublicIpAddress(PublicIpAddressInner servicePublicIpAddress)Set the servicePublicIpAddress property: The service public IP address of the public IP address resource.PublicIpAddressInnerwithSku(PublicIpAddressSku sku)Set the sku property: The public IP address SKU.PublicIpAddressInnerwithTags(Map<String,String> tags)PublicIpAddressInnerwithZones(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.
-
-
-
Method Detail
-
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the public ip address.- Returns:
- the extendedLocation value.
-
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.
-
sku
public PublicIpAddressSku sku()
Get the sku property: The public IP address SKU.- Returns:
- the sku value.
-
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.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
zones
public List<String> 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.
-
withZones
public 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.- Parameters:
zones- the zones value to set.- Returns:
- the PublicIpAddressInner object itself.
-
id
public String id()
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
public PublicIpAddressInner withId(String id)
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the PublicIpAddressInner object itself.
-
withLocation
public PublicIpAddressInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public PublicIpAddressInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
publicIpAllocationMethod
public IpAllocationMethod publicIpAllocationMethod()
Get the publicIpAllocationMethod property: The public IP address allocation method.- Returns:
- the publicIpAllocationMethod value.
-
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.
-
publicIpAddressVersion
public IpVersion publicIpAddressVersion()
Get the publicIpAddressVersion property: The public IP address version.- Returns:
- the publicIpAddressVersion value.
-
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.
-
ipConfiguration
public IpConfigurationInner ipConfiguration()
Get the ipConfiguration property: The IP configuration associated with the public IP address.- Returns:
- the ipConfiguration 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.
-
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.
-
ddosSettings
public DdosSettings ddosSettings()
Get the ddosSettings property: The DDoS protection custom policy associated with the public IP address.- Returns:
- the ddosSettings value.
-
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.
-
ipTags
public List<IpTag> ipTags()
Get the ipTags property: The list of tags associated with the public IP address.- Returns:
- the ipTags value.
-
withIpTags
public PublicIpAddressInner withIpTags(List<IpTag> 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.
-
ipAddress
public String ipAddress()
Get the ipAddress property: The IP address associated with the public IP address resource.- Returns:
- the ipAddress value.
-
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.
-
publicIpPrefix
public com.azure.core.management.SubResource publicIpPrefix()
Get the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.- Returns:
- the publicIpPrefix value.
-
withPublicIpPrefix
public PublicIpAddressInner withPublicIpPrefix(com.azure.core.management.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.
-
idleTimeoutInMinutes
public Integer idleTimeoutInMinutes()
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Returns:
- the idleTimeoutInMinutes value.
-
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.
-
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the public IP address resource.- Returns:
- the resourceGuid value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the public IP address resource.- Returns:
- the provisioningState value.
-
servicePublicIpAddress
public PublicIpAddressInner servicePublicIpAddress()
Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.- Returns:
- the servicePublicIpAddress value.
-
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.
-
natGateway
public NatGatewayInner natGateway()
Get the natGateway property: The NatGateway for the Public IP address.- Returns:
- the natGateway value.
-
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.
-
migrationPhase
public PublicIpAddressMigrationPhase migrationPhase()
Get the migrationPhase property: Migration phase of Public IP Address.- Returns:
- the migrationPhase value.
-
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.
-
linkedPublicIpAddress
public PublicIpAddressInner linkedPublicIpAddress()
Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.- Returns:
- the linkedPublicIpAddress value.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-