Class RestartParameter
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.models.RestartParameter
Represents server restart parameters.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the failoverMode property: Failover mode.Get the restartWithFailover property: Indicates whether to restart the server with failover.void
validate()
Validates the instance.withFailoverMode
(FailoverMode failoverMode) Set the failoverMode property: Failover mode.withRestartWithFailover
(Boolean restartWithFailover) Set the restartWithFailover property: Indicates whether to restart the server with failover.
-
Constructor Details
-
RestartParameter
public RestartParameter()Creates an instance of RestartParameter class.
-
-
Method Details
-
restartWithFailover
Get the restartWithFailover property: Indicates whether to restart the server with failover.- Returns:
- the restartWithFailover value.
-
withRestartWithFailover
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
Get the failoverMode property: Failover mode.- Returns:
- the failoverMode value.
-
withFailoverMode
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.
-