Class PublicIpAddressPropertiesFormatInner

java.lang.Object
com.azure.resourcemanager.network.fluent.models.PublicIpAddressPropertiesFormatInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<PublicIpAddressPropertiesFormatInner>

public final class PublicIpAddressPropertiesFormatInner extends Object implements com.azure.json.JsonSerializable<PublicIpAddressPropertiesFormatInner>
Public IP address properties.
  • Constructor Details

    • PublicIpAddressPropertiesFormatInner

      public PublicIpAddressPropertiesFormatInner()
      Creates an instance of PublicIpAddressPropertiesFormatInner class.
  • Method Details

    • publicIpAllocationMethod

      public IpAllocationMethod publicIpAllocationMethod()
      Get the publicIpAllocationMethod property: The public IP address allocation method.
      Returns:
      the publicIpAllocationMethod value.
    • withPublicIpAllocationMethod

      public PublicIpAddressPropertiesFormatInner withPublicIpAllocationMethod(IpAllocationMethod publicIpAllocationMethod)
      Set the publicIpAllocationMethod property: The public IP address allocation method.
      Parameters:
      publicIpAllocationMethod - the publicIpAllocationMethod value to set.
      Returns:
      the PublicIpAddressPropertiesFormatInner object itself.
    • publicIpAddressVersion

      public IpVersion publicIpAddressVersion()
      Get the publicIpAddressVersion property: The public IP address version.
      Returns:
      the publicIpAddressVersion value.
    • withPublicIpAddressVersion

      public PublicIpAddressPropertiesFormatInner withPublicIpAddressVersion(IpVersion publicIpAddressVersion)
      Set the publicIpAddressVersion property: The public IP address version.
      Parameters:
      publicIpAddressVersion - the publicIpAddressVersion value to set.
      Returns:
      the PublicIpAddressPropertiesFormatInner 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

      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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner object itself.
    • idleTimeoutInMinutes

      public Integer idleTimeoutInMinutes()
      Get the idleTimeoutInMinutes property: The idle timeout of the public IP address.
      Returns:
      the idleTimeoutInMinutes value.
    • withIdleTimeoutInMinutes

      public PublicIpAddressPropertiesFormatInner withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
      Set the idleTimeoutInMinutes property: The idle timeout of the public IP address.
      Parameters:
      idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.
      Returns:
      the PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner object itself.
    • natGateway

      public NatGatewayInner natGateway()
      Get the natGateway property: The NatGateway for the Public IP address.
      Returns:
      the natGateway value.
    • withNatGateway

      public PublicIpAddressPropertiesFormatInner withNatGateway(NatGatewayInner natGateway)
      Set the natGateway property: The NatGateway for the Public IP address.
      Parameters:
      natGateway - the natGateway value to set.
      Returns:
      the PublicIpAddressPropertiesFormatInner object itself.
    • migrationPhase

      public PublicIpAddressMigrationPhase migrationPhase()
      Get the migrationPhase property: Migration phase of Public IP Address.
      Returns:
      the migrationPhase value.
    • withMigrationPhase

      public PublicIpAddressPropertiesFormatInner withMigrationPhase(PublicIpAddressMigrationPhase migrationPhase)
      Set the migrationPhase property: Migration phase of Public IP Address.
      Parameters:
      migrationPhase - the migrationPhase value to set.
      Returns:
      the PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner 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 PublicIpAddressPropertiesFormatInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<PublicIpAddressPropertiesFormatInner>
      Throws:
      IOException
    • fromJson

      public static PublicIpAddressPropertiesFormatInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PublicIpAddressPropertiesFormatInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PublicIpAddressPropertiesFormatInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the PublicIpAddressPropertiesFormatInner.