java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.RestartParameter

public final class RestartParameter extends Object
Represents server restart parameters.
  • Constructor Details

    • RestartParameter

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

    • restartWithFailover

      public Boolean restartWithFailover()
      Get the restartWithFailover property: Indicates whether to restart the server with failover.
      Returns:
      the restartWithFailover value.
    • withRestartWithFailover

      public RestartParameter withRestartWithFailover(Boolean restartWithFailover)
      Set the restartWithFailover property: Indicates whether to restart the server with failover.
      Parameters:
      restartWithFailover - the restartWithFailover value to set.
      Returns:
      the RestartParameter object itself.
    • failoverMode

      public FailoverMode failoverMode()
      Get the failoverMode property: Failover mode.
      Returns:
      the failoverMode value.
    • withFailoverMode

      public RestartParameter withFailoverMode(FailoverMode failoverMode)
      Set the failoverMode property: Failover mode.
      Parameters:
      failoverMode - the failoverMode value to set.
      Returns:
      the RestartParameter object itself.
    • validate

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