Class DevToolPortalComponent

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

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

    • DevToolPortalComponent

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

    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • resourceRequests

      public DevToolPortalResourceRequests resourceRequests()
      Get the resourceRequests property: The requested resource quantity for required CPU and Memory.
      Returns:
      the resourceRequests value.
    • instances

      public List<DevToolPortalInstance> instances()
      Get the instances property: Collection of instances belong to Dev Tool Portal.
      Returns:
      the instances 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<DevToolPortalComponent>
      Throws:
      IOException
    • fromJson

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