Class BuildServiceAgentPoolSizeProperties

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

public final class BuildServiceAgentPoolSizeProperties extends Object implements com.azure.json.JsonSerializable<BuildServiceAgentPoolSizeProperties>
Build service agent pool size properties.
  • Constructor Details

    • BuildServiceAgentPoolSizeProperties

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

    • name

      public String name()
      Get the name property: The name of build service agent pool size.
      Returns:
      the name value.
    • withName

      Set the name property: The name of build service agent pool size.
      Parameters:
      name - the name value to set.
      Returns:
      the BuildServiceAgentPoolSizeProperties object itself.
    • cpu

      public String cpu()
      Get the cpu property: The cpu property of build service agent pool size.
      Returns:
      the cpu value.
    • memory

      public String memory()
      Get the memory property: The memory property of build service agent pool size.
      Returns:
      the memory 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<BuildServiceAgentPoolSizeProperties>
      Throws:
      IOException
    • fromJson

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