Class ServerRestartParameter
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParameter
-
public final class ServerRestartParameter extends Object
Server restart parameters.
-
-
Constructor Summary
Constructors Constructor Description ServerRestartParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
maxFailoverSeconds()
Get the maxFailoverSeconds property: The maximum allowed failover time in seconds.EnableStatusEnum
restartWithFailover()
Get the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.void
validate()
Validates the instance.ServerRestartParameter
withMaxFailoverSeconds(Integer maxFailoverSeconds)
Set the maxFailoverSeconds property: The maximum allowed failover time in seconds.ServerRestartParameter
withRestartWithFailover(EnableStatusEnum restartWithFailover)
Set the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
-
-
-
Method Detail
-
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.
-
-