Class BuildStageProperties

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

public final class BuildStageProperties extends Object implements com.azure.json.JsonSerializable<BuildStageProperties>
The build stage (init-container and container) resources in build pod.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of BuildStageProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the exitCode property: The exit code of this build init container.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BuildStageProperties from the JsonReader.
    Get the name property: The name of this build stage resource.
    Get the reason property: The reason of this build init container.
    Get the status property: The provisioning state of this build stage resource.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • BuildStageProperties

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

    • name

      public String name()
      Get the name property: The name of this build stage resource.
      Returns:
      the name value.
    • status

      Get the status property: The provisioning state of this build stage resource.
      Returns:
      the status value.
    • exitCode

      public String exitCode()
      Get the exitCode property: The exit code of this build init container.
      Returns:
      the exitCode value.
    • reason

      public String reason()
      Get the reason property: The reason of this build init container.
      Returns:
      the reason 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<BuildStageProperties>
      Throws:
      IOException
    • fromJson

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