Class BuildpacksGroupProperties

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

public final class BuildpacksGroupProperties extends Object implements com.azure.json.JsonSerializable<BuildpacksGroupProperties>
Buildpack group properties of the Builder.
  • Constructor Details

    • BuildpacksGroupProperties

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

    • name

      public String name()
      Get the name property: Buildpack group name.
      Returns:
      the name value.
    • withName

      public BuildpacksGroupProperties withName(String name)
      Set the name property: Buildpack group name.
      Parameters:
      name - the name value to set.
      Returns:
      the BuildpacksGroupProperties object itself.
    • buildpacks

      public List<BuildpackProperties> buildpacks()
      Get the buildpacks property: Buildpacks in the buildpack group.
      Returns:
      the buildpacks value.
    • withBuildpacks

      public BuildpacksGroupProperties withBuildpacks(List<BuildpackProperties> buildpacks)
      Set the buildpacks property: Buildpacks in the buildpack group.
      Parameters:
      buildpacks - the buildpacks value to set.
      Returns:
      the BuildpacksGroupProperties 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<BuildpacksGroupProperties>
      Throws:
      IOException
    • fromJson

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