Class ServerPropertiesForGeoRestore
java.lang.Object
com.azure.resourcemanager.mariadb.models.ServerPropertiesForCreate
com.azure.resourcemanager.mariadb.models.ServerPropertiesForGeoRestore
The properties used to create a new server by restoring to a different region from a geo replicated backup.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServerPropertiesForGeoRestore class. -
Method Summary
Modifier and TypeMethodDescriptionGet the sourceServerId property: The source server id to restore from.void
validate()
Validates the instance.withMinimalTlsVersion
(MinimalTlsVersionEnum minimalTlsVersion) Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.withPublicNetworkAccess
(PublicNetworkAccessEnum publicNetworkAccess) Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.withSourceServerId
(String sourceServerId) Set the sourceServerId property: The source server id to restore from.withSslEnforcement
(SslEnforcementEnum sslEnforcement) Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.withStorageProfile
(StorageProfile storageProfile) Set the storageProfile property: Storage profile of a server.withVersion
(ServerVersion version) Set the version property: Server version.Methods inherited from class com.azure.resourcemanager.mariadb.models.ServerPropertiesForCreate
minimalTlsVersion, publicNetworkAccess, sslEnforcement, storageProfile, version
-
Constructor Details
-
ServerPropertiesForGeoRestore
public ServerPropertiesForGeoRestore()Creates an instance of ServerPropertiesForGeoRestore class.
-
-
Method Details
-
sourceServerId
Get the sourceServerId property: The source server id to restore from.- Returns:
- the sourceServerId value.
-
withSourceServerId
Set the sourceServerId property: The source server id to restore from.- Parameters:
sourceServerId
- the sourceServerId value to set.- Returns:
- the ServerPropertiesForGeoRestore object itself.
-
withVersion
Set the version property: Server version.- Overrides:
withVersion
in classServerPropertiesForCreate
- Parameters:
version
- the version value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withSslEnforcement
Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Overrides:
withSslEnforcement
in classServerPropertiesForCreate
- Parameters:
sslEnforcement
- the sslEnforcement value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withMinimalTlsVersion
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Overrides:
withMinimalTlsVersion
in classServerPropertiesForCreate
- Parameters:
minimalTlsVersion
- the minimalTlsVersion value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withPublicNetworkAccess
public ServerPropertiesForGeoRestore withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess) Set the publicNetworkAccess property: Whether or not public network access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.- Overrides:
withPublicNetworkAccess
in classServerPropertiesForCreate
- Parameters:
publicNetworkAccess
- the publicNetworkAccess value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withStorageProfile
Set the storageProfile property: Storage profile of a server.- Overrides:
withStorageProfile
in classServerPropertiesForCreate
- Parameters:
storageProfile
- the storageProfile value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classServerPropertiesForCreate
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-