Class ServerRestartParameter

java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParameter

public final class ServerRestartParameter extends Object
Server restart parameters.
  • Constructor Details

    • ServerRestartParameter

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

    • restartWithFailover

      public EnableStatusEnum restartWithFailover()
      Get the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
      Returns:
      the restartWithFailover value.
    • withRestartWithFailover

      public ServerRestartParameter withRestartWithFailover(EnableStatusEnum restartWithFailover)
      Set the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
      Parameters:
      restartWithFailover - the restartWithFailover value to set.
      Returns:
      the ServerRestartParameter object itself.
    • maxFailoverSeconds

      public Integer maxFailoverSeconds()
      Get the maxFailoverSeconds property: The maximum allowed failover time in seconds.
      Returns:
      the maxFailoverSeconds value.
    • withMaxFailoverSeconds

      public ServerRestartParameter withMaxFailoverSeconds(Integer maxFailoverSeconds)
      Set the maxFailoverSeconds property: The maximum allowed failover time in seconds.
      Parameters:
      maxFailoverSeconds - the maxFailoverSeconds value to set.
      Returns:
      the ServerRestartParameter object itself.
    • validate

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