Class ApplicationGatewayFrontendPortPropertiesFormat

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

public final class ApplicationGatewayFrontendPortPropertiesFormat extends Object implements com.azure.json.JsonSerializable<ApplicationGatewayFrontendPortPropertiesFormat>
Properties of Frontend port of an application gateway.
  • Constructor Details

    • ApplicationGatewayFrontendPortPropertiesFormat

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

    • port

      public Integer port()
      Get the port property: Frontend port.
      Returns:
      the port value.
    • withPort

      Set the port property: Frontend port.
      Parameters:
      port - the port value to set.
      Returns:
      the ApplicationGatewayFrontendPortPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the frontend port 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<ApplicationGatewayFrontendPortPropertiesFormat>
      Throws:
      IOException
    • fromJson

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