Class DeploymentSettings
java.lang.Object
com.azure.resourcemanager.appplatform.models.DeploymentSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentSettings>
public final class DeploymentSettings
extends Object
implements com.azure.json.JsonSerializable<DeploymentSettings>
Deployment settings payload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addonConfigs property: Collection of addons.apms()Get the apms property: Collection of ApmReferences.Get the containerProbeSettings property: Container liveness and readiness probe settings.Get the environmentVariables property: Collection of environment variables.static DeploymentSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentSettings from the JsonReader.Get the livenessProbe property: Periodic probe of App Instance liveness.Get the readinessProbe property: Periodic probe of App Instance service readiness.Get the resourceRequests property: The requested resource quantity for required CPU and Memory.Get the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized.Get the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the addonConfigs property: Collection of addons.withApms(List<ApmReference> apms) Set the apms property: Collection of ApmReferences.withContainerProbeSettings(ContainerProbeSettings containerProbeSettings) Set the containerProbeSettings property: Container liveness and readiness probe settings.withEnvironmentVariables(Map<String, String> environmentVariables) Set the environmentVariables property: Collection of environment variables.withLivenessProbe(Probe livenessProbe) Set the livenessProbe property: Periodic probe of App Instance liveness.withReadinessProbe(Probe readinessProbe) Set the readinessProbe property: Periodic probe of App Instance service readiness.withResourceRequests(ResourceRequests resourceRequests) Set the resourceRequests property: The requested resource quantity for required CPU and Memory.withStartupProbe(Probe startupProbe) Set the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized.withTerminationGracePeriodSeconds(Integer terminationGracePeriodSeconds) Set the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeploymentSettings
public DeploymentSettings()Creates an instance of DeploymentSettings class.
-
-
Method Details
-
resourceRequests
Get the resourceRequests property: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later.- Returns:
- the resourceRequests value.
-
withResourceRequests
Set the resourceRequests property: The requested resource quantity for required CPU and Memory. It is recommended that using this field to represent the required CPU and Memory, the old field cpu and memoryInGB will be deprecated later.- Parameters:
resourceRequests- the resourceRequests value to set.- Returns:
- the DeploymentSettings object itself.
-
environmentVariables
Get the environmentVariables property: Collection of environment variables.- Returns:
- the environmentVariables value.
-
withEnvironmentVariables
Set the environmentVariables property: Collection of environment variables.- Parameters:
environmentVariables- the environmentVariables value to set.- Returns:
- the DeploymentSettings object itself.
-
apms
Get the apms property: Collection of ApmReferences.- Returns:
- the apms value.
-
withApms
Set the apms property: Collection of ApmReferences.- Parameters:
apms- the apms value to set.- Returns:
- the DeploymentSettings object itself.
-
addonConfigs
Get the addonConfigs property: Collection of addons.- Returns:
- the addonConfigs value.
-
withAddonConfigs
Set the addonConfigs property: Collection of addons.- Parameters:
addonConfigs- the addonConfigs value to set.- Returns:
- the DeploymentSettings object itself.
-
livenessProbe
Get the livenessProbe property: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Returns:
- the livenessProbe value.
-
withLivenessProbe
Set the livenessProbe property: Periodic probe of App Instance liveness. App Instance will be restarted if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Parameters:
livenessProbe- the livenessProbe value to set.- Returns:
- the DeploymentSettings object itself.
-
readinessProbe
Get the readinessProbe property: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Returns:
- the readinessProbe value.
-
withReadinessProbe
Set the readinessProbe property: Periodic probe of App Instance service readiness. App Instance will be removed from service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Parameters:
readinessProbe- the readinessProbe value to set.- Returns:
- the DeploymentSettings object itself.
-
startupProbe
Get the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Returns:
- the startupProbe value.
-
withStartupProbe
Set the startupProbe property: StartupProbe indicates that the App Instance has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a App Instance's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes.- Parameters:
startupProbe- the startupProbe value to set.- Returns:
- the DeploymentSettings object itself.
-
terminationGracePeriodSeconds
Get the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds.- Returns:
- the terminationGracePeriodSeconds value.
-
withTerminationGracePeriodSeconds
Set the terminationGracePeriodSeconds property: Optional duration in seconds the App Instance needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the App Instance are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 90 seconds.- Parameters:
terminationGracePeriodSeconds- the terminationGracePeriodSeconds value to set.- Returns:
- the DeploymentSettings object itself.
-
containerProbeSettings
Get the containerProbeSettings property: Container liveness and readiness probe settings.- Returns:
- the containerProbeSettings value.
-
withContainerProbeSettings
Set the containerProbeSettings property: Container liveness and readiness probe settings.- Parameters:
containerProbeSettings- the containerProbeSettings value to set.- Returns:
- the DeploymentSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeploymentSettings>- Throws:
IOException
-
fromJson
Reads an instance of DeploymentSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentSettings 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 DeploymentSettings.
-