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 associated with the nat gateway resource.
    List<com.azure.core.management.SubResource>
    Get the publicIpPrefixes property: An array of public ip prefixes associated with the nat gateway resource.
    Get the resourceGuid property: The resource GUID property of the 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 associated with the nat gateway resource.
    withPublicIpPrefixes(List<com.azure.core.management.SubResource> publicIpPrefixes)
    Set the publicIpPrefixes property: An array of public ip prefixes associated with the 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 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 associated with the nat gateway resource.
      Parameters:
      publicIpAddresses - the publicIpAddresses 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 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 associated with the nat gateway resource.
      Parameters:
      publicIpPrefixes - the publicIpPrefixes 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.
    • 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.