Class PublicIpAddressInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class PublicIpAddressInner
extends com.azure.core.management.Resource
Public IP address resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ddosSettings property: The DDoS protection custom policy associated with the public IP address.Get the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.Get the dnsSettings property: The FQDN of the DNS record associated with the public IP address.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.Get the extendedLocation property: The extended location of the public ip address.static PublicIpAddressInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of PublicIpAddressInner from the JsonReader.id()Get the id property: Resource ID.Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.Get the ipAddress property: The IP address associated with the public IP address resource.Get the ipConfiguration property: The IP configuration associated with the public IP address.ipTags()Get the ipTags property: The list of tags associated with the public IP address.Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.Get the migrationPhase property: Migration phase of Public IP Address.name()Get the name property: The name of the resource.Get the natGateway property: The NatGateway for the Public IP address.Get the provisioningState property: The provisioning state of the public IP address resource.Get the publicIpAddressVersion property: The public IP address version.Get the publicIpAllocationMethod property: The public IP address allocation method.com.azure.core.management.SubResourceGet the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.Get the resourceGuid property: The resource GUID property of the public IP address resource.Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.sku()Get the sku property: The public IP address SKU.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withDdosSettings(DdosSettings ddosSettings) Set the ddosSettings property: The DDoS protection custom policy associated with the public IP address.withDeleteOption(DeleteOptions deleteOption) Set the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.withDnsSettings(PublicIpAddressDnsSettings dnsSettings) Set the dnsSettings property: The FQDN of the DNS record associated with the public IP address.withExtendedLocation(ExtendedLocation extendedLocation) Set the extendedLocation property: The extended location of the public ip address.Set the id property: Resource ID.withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes) Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.withIpAddress(String ipAddress) Set the ipAddress property: The IP address associated with the public IP address resource.withIpTags(List<IpTag> ipTags) Set the ipTags property: The list of tags associated with the public IP address.withLinkedPublicIpAddress(PublicIpAddressInner linkedPublicIpAddress) Set the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.withLocation(String location) withMigrationPhase(PublicIpAddressMigrationPhase migrationPhase) Set the migrationPhase property: Migration phase of Public IP Address.withNatGateway(NatGatewayInner natGateway) Set the natGateway property: The NatGateway for the Public IP address.withPublicIpAddressVersion(IpVersion publicIpAddressVersion) Set the publicIpAddressVersion property: The public IP address version.withPublicIpAllocationMethod(IpAllocationMethod publicIpAllocationMethod) Set the publicIpAllocationMethod property: The public IP address allocation method.withPublicIpPrefix(com.azure.core.management.SubResource publicIpPrefix) Set the publicIpPrefix property: The Public IP Prefix this Public IP Address should be allocated from.withServicePublicIpAddress(PublicIpAddressInner servicePublicIpAddress) Set the servicePublicIpAddress property: The service public IP address of the public IP address resource.Set the sku property: The public IP address SKU.Set the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.zones()Get the zones property: A list of availability zones denoting the IP allocated for the resource needs to come from.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PublicIpAddressInner
public PublicIpAddressInner()Creates an instance of PublicIpAddressInner class.
-
-
Method Details
-
extendedLocation
Get the extendedLocation property: The extended location of the public ip address.- Returns:
- the extendedLocation value.
-
withExtendedLocation
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
Get the sku property: The public IP address SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: The public IP address SKU.- Parameters:
sku- the sku value to set.- Returns:
- the PublicIpAddressInner object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
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
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
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the PublicIpAddressInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
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
Get the publicIpAddressVersion property: The public IP address version.- Returns:
- the publicIpAddressVersion value.
-
withPublicIpAddressVersion
Set the publicIpAddressVersion property: The public IP address version.- Parameters:
publicIpAddressVersion- the publicIpAddressVersion value to set.- Returns:
- the PublicIpAddressInner object itself.
-
ipConfiguration
Get the ipConfiguration property: The IP configuration associated with the public IP address.- Returns:
- the ipConfiguration value.
-
dnsSettings
Get the dnsSettings property: The FQDN of the DNS record associated with the public IP address.- Returns:
- the dnsSettings value.
-
withDnsSettings
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
Get the ddosSettings property: The DDoS protection custom policy associated with the public IP address.- Returns:
- the ddosSettings value.
-
withDdosSettings
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
Get the ipTags property: The list of tags associated with the public IP address.- Returns:
- the ipTags value.
-
withIpTags
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
Get the ipAddress property: The IP address associated with the public IP address resource.- Returns:
- the ipAddress value.
-
withIpAddress
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
Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.- Returns:
- the idleTimeoutInMinutes value.
-
withIdleTimeoutInMinutes
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
Get the resourceGuid property: The resource GUID property of the public IP address resource.- Returns:
- the resourceGuid value.
-
provisioningState
Get the provisioningState property: The provisioning state of the public IP address resource.- Returns:
- the provisioningState value.
-
servicePublicIpAddress
Get the servicePublicIpAddress property: The service public IP address of the public IP address resource.- Returns:
- the servicePublicIpAddress value.
-
withServicePublicIpAddress
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
Get the natGateway property: The NatGateway for the Public IP address.- Returns:
- the natGateway value.
-
withNatGateway
Set the natGateway property: The NatGateway for the Public IP address.- Parameters:
natGateway- the natGateway value to set.- Returns:
- the PublicIpAddressInner object itself.
-
migrationPhase
Get the migrationPhase property: Migration phase of Public IP Address.- Returns:
- the migrationPhase value.
-
withMigrationPhase
Set the migrationPhase property: Migration phase of Public IP Address.- Parameters:
migrationPhase- the migrationPhase value to set.- Returns:
- the PublicIpAddressInner object itself.
-
linkedPublicIpAddress
Get the linkedPublicIpAddress property: The linked public IP address of the public IP address resource.- Returns:
- the linkedPublicIpAddress value.
-
withLinkedPublicIpAddress
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
Get the deleteOption property: Specify what happens to the public IP address when the VM using it is deleted.- Returns:
- the deleteOption value.
-
withDeleteOption
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static PublicIpAddressInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the PublicIpAddressInner.
-