Class FqdnEndpointDetail

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

public final class FqdnEndpointDetail extends Object implements com.azure.json.JsonSerializable<FqdnEndpointDetail>
The FqdnEndpointDetail model.
  • Constructor Details

    • FqdnEndpointDetail

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

    • port

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

      public FqdnEndpointDetail withPort(Integer port)
      Set the port property: The port property.
      Parameters:
      port - the port value to set.
      Returns:
      the FqdnEndpointDetail 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<FqdnEndpointDetail>
      Throws:
      IOException
    • fromJson

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