Class DeploymentSettings


  • public final class DeploymentSettings
    extends Object
    Deployment settings payload.
    • Constructor Detail

      • DeploymentSettings

        public DeploymentSettings()
    • Method Detail

      • cpu

        public Integer cpu()
        Get the cpu property: Required CPU, basic tier should be 1, standard tier should be in range (1, 4).
        Returns:
        the cpu value.
      • withCpu

        public DeploymentSettings withCpu​(Integer cpu)
        Set the cpu property: Required CPU, basic tier should be 1, standard tier should be in range (1, 4).
        Parameters:
        cpu - the cpu value to set.
        Returns:
        the DeploymentSettings object itself.
      • memoryInGB

        public Integer memoryInGB()
        Get the memoryInGB property: Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8).
        Returns:
        the memoryInGB value.
      • withMemoryInGB

        public DeploymentSettings withMemoryInGB​(Integer memoryInGB)
        Set the memoryInGB property: Required Memory size in GB, basic tier should be in range (1, 2), standard tier should be in range (1, 8).
        Parameters:
        memoryInGB - the memoryInGB value to set.
        Returns:
        the DeploymentSettings object itself.
      • jvmOptions

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

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

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

        public DeploymentSettings 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 DeploymentSettings object itself.
      • environmentVariables

        public Map<String,​String> environmentVariables()
        Get the environmentVariables property: Collection of environment variables.
        Returns:
        the environmentVariables value.
      • withEnvironmentVariables

        public DeploymentSettings withEnvironmentVariables​(Map<String,​String> environmentVariables)
        Set the environmentVariables property: Collection of environment variables.
        Parameters:
        environmentVariables - the environmentVariables value to set.
        Returns:
        the DeploymentSettings object itself.
      • runtimeVersion

        public RuntimeVersion runtimeVersion()
        Get the runtimeVersion property: Runtime version.
        Returns:
        the runtimeVersion value.
      • withRuntimeVersion

        public DeploymentSettings withRuntimeVersion​(RuntimeVersion runtimeVersion)
        Set the runtimeVersion property: Runtime version.
        Parameters:
        runtimeVersion - the runtimeVersion value to set.
        Returns:
        the DeploymentSettings object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.