Class BuildResultProperties

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

public final class BuildResultProperties extends Object implements com.azure.json.JsonSerializable<BuildResultProperties>
Build result resource properties payload.
  • Constructor Details

    • BuildResultProperties

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

    • name

      public String name()
      Get the name property: The name of this build result.
      Returns:
      the name value.
    • withName

      public BuildResultProperties withName(String name)
      Set the name property: The name of this build result.
      Parameters:
      name - the name value to set.
      Returns:
      the BuildResultProperties object itself.
    • provisioningState

      public BuildResultProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the KPack build result.
      Returns:
      the provisioningState value.
    • error

      public Error error()
      Get the error property: Error when build is failed.
      Returns:
      the error value.
    • withError

      public BuildResultProperties withError(Error error)
      Set the error property: Error when build is failed.
      Parameters:
      error - the error value to set.
      Returns:
      the BuildResultProperties object itself.
    • buildPodName

      public String buildPodName()
      Get the buildPodName property: The build pod name which can be used to get the build log streaming.
      Returns:
      the buildPodName value.
    • withBuildPodName

      public BuildResultProperties withBuildPodName(String buildPodName)
      Set the buildPodName property: The build pod name which can be used to get the build log streaming.
      Parameters:
      buildPodName - the buildPodName value to set.
      Returns:
      the BuildResultProperties object itself.
    • buildStages

      public List<BuildStageProperties> buildStages()
      Get the buildStages property: All of the build stage (init-container and container) resources in build pod.
      Returns:
      the buildStages value.
    • image

      public String image()
      Get the image property: The container registry image of this build result.
      Returns:
      the image 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<BuildResultProperties>
      Throws:
      IOException
    • fromJson

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