Class DeploymentSettings
- java.lang.Object
-
- com.azure.resourcemanager.appplatform.models.DeploymentSettings
-
public final class DeploymentSettings extends Object
Deployment settings payload.
-
-
Constructor Summary
Constructors Constructor Description DeploymentSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercpu()Get the cpu property: Required CPU, basic tier should be 1, standard tier should be in range (1, 4).Map<String,String>environmentVariables()Get the environmentVariables property: Collection of environment variables.StringjvmOptions()Get the jvmOptions property: JVM parameter.IntegermemoryInGB()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).StringnetCoreMainEntryPath()Get the netCoreMainEntryPath property: The path to the .NET executable relative to zip root.RuntimeVersionruntimeVersion()Get the runtimeVersion property: Runtime version.voidvalidate()Validates the instance.DeploymentSettingswithCpu(Integer cpu)Set the cpu property: Required CPU, basic tier should be 1, standard tier should be in range (1, 4).DeploymentSettingswithEnvironmentVariables(Map<String,String> environmentVariables)Set the environmentVariables property: Collection of environment variables.DeploymentSettingswithJvmOptions(String jvmOptions)Set the jvmOptions property: JVM parameter.DeploymentSettingswithMemoryInGB(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).DeploymentSettingswithNetCoreMainEntryPath(String netCoreMainEntryPath)Set the netCoreMainEntryPath property: The path to the .NET executable relative to zip root.DeploymentSettingswithRuntimeVersion(RuntimeVersion runtimeVersion)Set the runtimeVersion property: Runtime version.
-
-
-
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.
-
-