Class WarUploadedUserSourceInfo

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

public final class WarUploadedUserSourceInfo extends UploadedUserSourceInfo
Uploaded War binary for a deployment.
  • Constructor Details

    • WarUploadedUserSourceInfo

      public WarUploadedUserSourceInfo()
      Creates an instance of WarUploadedUserSourceInfo 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.
    • runtimeVersion

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

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

      public String jvmOptions()
      Get the jvmOptions property: JVM parameter.
      Returns:
      the jvmOptions value.
    • withJvmOptions

      public WarUploadedUserSourceInfo withJvmOptions(String jvmOptions)
      Set the jvmOptions property: JVM parameter.
      Parameters:
      jvmOptions - the jvmOptions value to set.
      Returns:
      the WarUploadedUserSourceInfo object itself.
    • serverVersion

      public String serverVersion()
      Get the serverVersion property: Server version, currently only Apache Tomcat is supported.
      Returns:
      the serverVersion value.
    • withServerVersion

      public WarUploadedUserSourceInfo withServerVersion(String serverVersion)
      Set the serverVersion property: Server version, currently only Apache Tomcat is supported.
      Parameters:
      serverVersion - the serverVersion value to set.
      Returns:
      the WarUploadedUserSourceInfo object itself.
    • withRelativePath

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