Class DeploymentSettings

java.lang.Object
com.azure.resourcemanager.appplatform.models.DeploymentSettings

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

    • DeploymentSettings

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

    • resourceRequests

      public ResourceRequests 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

      public DeploymentSettings withResourceRequests(ResourceRequests resourceRequests)
      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

      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.
    • apms

      public List<ApmReference> apms()
      Get the apms property: Collection of ApmReferences.
      Returns:
      the apms value.
    • withApms

      public DeploymentSettings withApms(List<ApmReference> apms)
      Set the apms property: Collection of ApmReferences.
      Parameters:
      apms - the apms value to set.
      Returns:
      the DeploymentSettings object itself.
    • addonConfigs

      public Map<String,Map<String,Object>> addonConfigs()
      Get the addonConfigs property: Collection of addons.
      Returns:
      the addonConfigs value.
    • withAddonConfigs

      public DeploymentSettings withAddonConfigs(Map<String,Map<String,Object>> addonConfigs)
      Set the addonConfigs property: Collection of addons.
      Parameters:
      addonConfigs - the addonConfigs value to set.
      Returns:
      the DeploymentSettings object itself.
    • livenessProbe

      public Probe 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

      public DeploymentSettings withLivenessProbe(Probe livenessProbe)
      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

      public Probe 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

      public DeploymentSettings withReadinessProbe(Probe readinessProbe)
      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

      public Probe 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

      public DeploymentSettings withStartupProbe(Probe startupProbe)
      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

      public Integer 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

      public DeploymentSettings withTerminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
      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

      public ContainerProbeSettings containerProbeSettings()
      Get the containerProbeSettings property: Container liveness and readiness probe settings.
      Returns:
      the containerProbeSettings value.
    • withContainerProbeSettings

      public DeploymentSettings withContainerProbeSettings(ContainerProbeSettings containerProbeSettings)
      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.