Class RequiredTraffic

java.lang.Object
com.azure.resourcemanager.appplatform.models.RequiredTraffic
All Implemented Interfaces:
com.azure.json.JsonSerializable<RequiredTraffic>

public final class RequiredTraffic extends Object implements com.azure.json.JsonSerializable<RequiredTraffic>
Required inbound or outbound traffic for Azure Spring Apps resource.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the direction property: The direction of required traffic.
    Get the fqdns property: The FQDN list of required traffic.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RequiredTraffic from the JsonReader.
    ips()
    Get the ips property: The ip list of required traffic.
    Get the port property: The port of required traffic.
    Get the protocol property: The protocol of required traffic.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    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

    • RequiredTraffic

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

    • protocol

      public String protocol()
      Get the protocol property: The protocol of required traffic.
      Returns:
      the protocol value.
    • port

      public Integer port()
      Get the port property: The port of required traffic.
      Returns:
      the port value.
    • ips

      public List<String> ips()
      Get the ips property: The ip list of required traffic.
      Returns:
      the ips value.
    • fqdns

      public List<String> fqdns()
      Get the fqdns property: The FQDN list of required traffic.
      Returns:
      the fqdns value.
    • direction

      public TrafficDirection direction()
      Get the direction property: The direction of required traffic.
      Returns:
      the direction 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<RequiredTraffic>
      Throws:
      IOException
    • fromJson

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