Class BuildResultUserSourceInfo

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

public final class BuildResultUserSourceInfo extends UserSourceInfo
Reference to a build result.
  • Constructor Details

    • BuildResultUserSourceInfo

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

    • type

      public String type()
      Get the type property: Type of the source uploaded.
      Overrides:
      type in class UserSourceInfo
      Returns:
      the type value.
    • buildResultId

      public String buildResultId()
      Get the buildResultId property: Resource id of an existing succeeded build result under the same Spring instance.
      Returns:
      the buildResultId value.
    • withBuildResultId

      public BuildResultUserSourceInfo withBuildResultId(String buildResultId)
      Set the buildResultId property: Resource id of an existing succeeded build result under the same Spring instance.
      Parameters:
      buildResultId - the buildResultId value to set.
      Returns:
      the BuildResultUserSourceInfo object itself.
    • withVersion

      public BuildResultUserSourceInfo withVersion(String version)
      Set the version property: Version of the source.
      Overrides:
      withVersion in class UserSourceInfo
      Parameters:
      version - the version value to set.
      Returns:
      the UserSourceInfo object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UserSourceInfo
      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<UserSourceInfo>
      Overrides:
      toJson in class UserSourceInfo
      Throws:
      IOException
    • fromJson

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