Class TriggeredBuildResult

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

public final class TriggeredBuildResult extends Object implements com.azure.json.JsonSerializable<TriggeredBuildResult>
The build result triggered by a build.
  • Constructor Details

    • TriggeredBuildResult

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

    • id

      public String id()
      Get the id property: The unique build id of this build result.
      Returns:
      the id value.
    • withId

      public TriggeredBuildResult withId(String id)
      Set the id property: The unique build id of this build result.
      Parameters:
      id - the id value to set.
      Returns:
      the TriggeredBuildResult object itself.
    • provisioningState

      public TriggeredBuildResultProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of this build result.
      Returns:
      the provisioningState value.
    • image

      public String image()
      Get the image property: The container image of this build result.
      Returns:
      the image value.
    • withImage

      public TriggeredBuildResult withImage(String image)
      Set the image property: The container image of this build result.
      Parameters:
      image - the image value to set.
      Returns:
      the TriggeredBuildResult object itself.
    • lastTransitionTime

      public OffsetDateTime lastTransitionTime()
      Get the lastTransitionTime property: The last transition time of this build result.
      Returns:
      the lastTransitionTime value.
    • withLastTransitionTime

      public TriggeredBuildResult withLastTransitionTime(OffsetDateTime lastTransitionTime)
      Set the lastTransitionTime property: The last transition time of this build result.
      Parameters:
      lastTransitionTime - the lastTransitionTime value to set.
      Returns:
      the TriggeredBuildResult object itself.
    • lastTransitionReason

      public String lastTransitionReason()
      Get the lastTransitionReason property: The last transition reason of this build result.
      Returns:
      the lastTransitionReason value.
    • withLastTransitionReason

      public TriggeredBuildResult withLastTransitionReason(String lastTransitionReason)
      Set the lastTransitionReason property: The last transition reason of this build result.
      Parameters:
      lastTransitionReason - the lastTransitionReason value to set.
      Returns:
      the TriggeredBuildResult object itself.
    • lastTransitionStatus

      public String lastTransitionStatus()
      Get the lastTransitionStatus property: The last transition status of this build result.
      Returns:
      the lastTransitionStatus value.
    • withLastTransitionStatus

      public TriggeredBuildResult withLastTransitionStatus(String lastTransitionStatus)
      Set the lastTransitionStatus property: The last transition status of this build result.
      Parameters:
      lastTransitionStatus - the lastTransitionStatus value to set.
      Returns:
      the TriggeredBuildResult 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<TriggeredBuildResult>
      Throws:
      IOException
    • fromJson

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