Class NetCoreZipUploadedUserSourceInfo

All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSourceInfo>

public final class NetCoreZipUploadedUserSourceInfo extends UploadedUserSourceInfo
Uploaded Jar binary for a deployment.
  • Constructor Details

    • NetCoreZipUploadedUserSourceInfo

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

    • type

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

      public String netCoreMainEntryPath()
      Get the netCoreMainEntryPath property: The path to the .NET executable relative to zip root.
      Returns:
      the netCoreMainEntryPath value.
    • withNetCoreMainEntryPath

      public NetCoreZipUploadedUserSourceInfo withNetCoreMainEntryPath(String netCoreMainEntryPath)
      Set the netCoreMainEntryPath property: The path to the .NET executable relative to zip root.
      Parameters:
      netCoreMainEntryPath - the netCoreMainEntryPath value to set.
      Returns:
      the NetCoreZipUploadedUserSourceInfo object itself.
    • runtimeVersion

      public String runtimeVersion()
      Get the runtimeVersion property: Runtime version of the .Net file.
      Returns:
      the runtimeVersion value.
    • withRuntimeVersion

      public NetCoreZipUploadedUserSourceInfo withRuntimeVersion(String runtimeVersion)
      Set the runtimeVersion property: Runtime version of the .Net file.
      Parameters:
      runtimeVersion - the runtimeVersion value to set.
      Returns:
      the NetCoreZipUploadedUserSourceInfo object itself.
    • withRelativePath

      public NetCoreZipUploadedUserSourceInfo withRelativePath(String relativePath)
      Set the relativePath property: Relative path of the storage which stores the source.
      Overrides:
      withRelativePath in class UploadedUserSourceInfo
      Parameters:
      relativePath - the relativePath value to set.
      Returns:
      the UploadedUserSourceInfo object itself.
    • withVersion

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

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

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