Class EnvironmentServer

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

public final class EnvironmentServer extends Object implements com.azure.json.JsonSerializable<EnvironmentServer>
Server information of the environment.
  • Constructor Details

    • EnvironmentServer

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

    • type

      public EnvironmentServerType type()
      Get the type property: Type of the server that represents the environment.
      Returns:
      the type value.
    • withType

      public EnvironmentServer withType(EnvironmentServerType type)
      Set the type property: Type of the server that represents the environment.
      Parameters:
      type - the type value to set.
      Returns:
      the EnvironmentServer object itself.
    • managementPortalUri

      public List<String> managementPortalUri()
      Get the managementPortalUri property: The location of the management portal.
      Returns:
      the managementPortalUri value.
    • withManagementPortalUri

      public EnvironmentServer withManagementPortalUri(List<String> managementPortalUri)
      Set the managementPortalUri property: The location of the management portal.
      Parameters:
      managementPortalUri - the managementPortalUri value to set.
      Returns:
      the EnvironmentServer 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<EnvironmentServer>
      Throws:
      IOException
    • fromJson

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