Class BuildServiceAgentPoolProperties

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

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

    • BuildServiceAgentPoolProperties

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

    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Provisioning state of the build service agent pool.
      Returns:
      the provisioningState value.
    • poolSize

      Get the poolSize property: build service agent pool size properties.
      Returns:
      the poolSize value.
    • withPoolSize

      Set the poolSize property: build service agent pool size properties.
      Parameters:
      poolSize - the poolSize value to set.
      Returns:
      the BuildServiceAgentPoolProperties 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<BuildServiceAgentPoolProperties>
      Throws:
      IOException
    • fromJson

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