Class NatGatewayPropertiesFormat

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

public final class NatGatewayPropertiesFormat extends Object implements com.azure.json.JsonSerializable<NatGatewayPropertiesFormat>
Nat Gateway properties.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of NatGatewayPropertiesFormat class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of NatGatewayPropertiesFormat from the JsonReader.
    Get the idleTimeoutInMinutes property: The idle timeout of the nat gateway.
    Get the provisioningState property: The provisioning state of the NAT gateway resource.
    List<com.azure.core.management.SubResource>
    Get the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.
    List<com.azure.core.management.SubResource>
    Get the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.
    List<com.azure.core.management.SubResource>
    Get the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.
    List<com.azure.core.management.SubResource>
    Get the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.
    Get the resourceGuid property: The resource GUID property of the NAT gateway resource.
    com.azure.core.management.SubResource
    Get the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.
    List<com.azure.core.management.SubResource>
    Get the subnets property: An array of references to the subnets using this nat gateway resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
    Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.
    withPublicIpAddresses(List<com.azure.core.management.SubResource> publicIpAddresses)
    Set the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.
    withPublicIpAddressesV6(List<com.azure.core.management.SubResource> publicIpAddressesV6)
    Set the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.
    withPublicIpPrefixes(List<com.azure.core.management.SubResource> publicIpPrefixes)
    Set the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.
    withPublicIpPrefixesV6(List<com.azure.core.management.SubResource> publicIpPrefixesV6)
    Set the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.
    withSourceVirtualNetwork(com.azure.core.management.SubResource sourceVirtualNetwork)
    Set the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • NatGatewayPropertiesFormat

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

    • idleTimeoutInMinutes

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

      public NatGatewayPropertiesFormat withIdleTimeoutInMinutes(Integer idleTimeoutInMinutes)
      Set the idleTimeoutInMinutes property: The idle timeout of the nat gateway.
      Parameters:
      idleTimeoutInMinutes - the idleTimeoutInMinutes value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • publicIpAddresses

      public List<com.azure.core.management.SubResource> publicIpAddresses()
      Get the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.
      Returns:
      the publicIpAddresses value.
    • withPublicIpAddresses

      public NatGatewayPropertiesFormat withPublicIpAddresses(List<com.azure.core.management.SubResource> publicIpAddresses)
      Set the publicIpAddresses property: An array of public ip addresses V4 associated with the nat gateway resource.
      Parameters:
      publicIpAddresses - the publicIpAddresses value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • publicIpAddressesV6

      public List<com.azure.core.management.SubResource> publicIpAddressesV6()
      Get the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.
      Returns:
      the publicIpAddressesV6 value.
    • withPublicIpAddressesV6

      public NatGatewayPropertiesFormat withPublicIpAddressesV6(List<com.azure.core.management.SubResource> publicIpAddressesV6)
      Set the publicIpAddressesV6 property: An array of public ip addresses V6 associated with the nat gateway resource.
      Parameters:
      publicIpAddressesV6 - the publicIpAddressesV6 value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • publicIpPrefixes

      public List<com.azure.core.management.SubResource> publicIpPrefixes()
      Get the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.
      Returns:
      the publicIpPrefixes value.
    • withPublicIpPrefixes

      public NatGatewayPropertiesFormat withPublicIpPrefixes(List<com.azure.core.management.SubResource> publicIpPrefixes)
      Set the publicIpPrefixes property: An array of public ip prefixes V4 associated with the nat gateway resource.
      Parameters:
      publicIpPrefixes - the publicIpPrefixes value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • publicIpPrefixesV6

      public List<com.azure.core.management.SubResource> publicIpPrefixesV6()
      Get the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.
      Returns:
      the publicIpPrefixesV6 value.
    • withPublicIpPrefixesV6

      public NatGatewayPropertiesFormat withPublicIpPrefixesV6(List<com.azure.core.management.SubResource> publicIpPrefixesV6)
      Set the publicIpPrefixesV6 property: An array of public ip prefixes V6 associated with the nat gateway resource.
      Parameters:
      publicIpPrefixesV6 - the publicIpPrefixesV6 value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • subnets

      public List<com.azure.core.management.SubResource> subnets()
      Get the subnets property: An array of references to the subnets using this nat gateway resource.
      Returns:
      the subnets value.
    • sourceVirtualNetwork

      public com.azure.core.management.SubResource sourceVirtualNetwork()
      Get the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.
      Returns:
      the sourceVirtualNetwork value.
    • withSourceVirtualNetwork

      public NatGatewayPropertiesFormat withSourceVirtualNetwork(com.azure.core.management.SubResource sourceVirtualNetwork)
      Set the sourceVirtualNetwork property: A reference to the source virtual network using this nat gateway resource.
      Parameters:
      sourceVirtualNetwork - the sourceVirtualNetwork value to set.
      Returns:
      the NatGatewayPropertiesFormat object itself.
    • resourceGuid

      public String resourceGuid()
      Get the resourceGuid property: The resource GUID property of the NAT gateway resource.
      Returns:
      the resourceGuid value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the NAT gateway resource.
      Returns:
      the provisioningState value.
    • 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<NatGatewayPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static NatGatewayPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NatGatewayPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NatGatewayPropertiesFormat 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 NatGatewayPropertiesFormat.