Class ServerRestartParameter
java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.models.ServerRestartParameter
Server restart parameters.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServerRestartParameter class. -
Method Summary
Modifier and TypeMethodDescriptionGet the maxFailoverSeconds property: The maximum allowed failover time in seconds.Get the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.void
validate()
Validates the instance.withMaxFailoverSeconds
(Integer maxFailoverSeconds) Set the maxFailoverSeconds property: The maximum allowed failover time in seconds.withRestartWithFailover
(EnableStatusEnum restartWithFailover) Set the restartWithFailover property: Whether or not failover to standby server when restarting a server with high availability enabled.
-
Constructor Details
-
ServerRestartParameter
public ServerRestartParameter()Creates an instance of ServerRestartParameter class.
-
-
Method Details
-
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
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
Get the maxFailoverSeconds property: The maximum allowed failover time in seconds.- Returns:
- the maxFailoverSeconds value.
-
withMaxFailoverSeconds
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.
-