Class ServerPropertiesForCreate
java.lang.Object
com.azure.resourcemanager.mariadb.models.ServerPropertiesForCreate
- Direct Known Subclasses:
ServerPropertiesForDefaultCreate
,ServerPropertiesForGeoRestore
,ServerPropertiesForReplica
,ServerPropertiesForRestore
The properties used to create a new server.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServerPropertiesForCreate class. -
Method Summary
Modifier and TypeMethodDescriptionGet the minimalTlsVersion property: Enforce a minimal Tls version for the server.Get the publicNetworkAccess property: Whether or not public network access is allowed for this server.Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.Get the storageProfile property: Storage profile of a server.void
validate()
Validates the instance.version()
Get the version property: Server version.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.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.
-
Constructor Details
-
ServerPropertiesForCreate
public ServerPropertiesForCreate()Creates an instance of ServerPropertiesForCreate class.
-
-
Method Details
-
version
Get the version property: Server version.- Returns:
- the version value.
-
withVersion
Set the version property: Server version.- Parameters:
version
- the version value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
sslEnforcement
Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Returns:
- the sslEnforcement value.
-
withSslEnforcement
Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Parameters:
sslEnforcement
- the sslEnforcement value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
minimalTlsVersion
Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Parameters:
minimalTlsVersion
- the minimalTlsVersion value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
publicNetworkAccess
Get 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'.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public ServerPropertiesForCreate 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'.- Parameters:
publicNetworkAccess
- the publicNetworkAccess value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
storageProfile
Get the storageProfile property: Storage profile of a server.- Returns:
- the storageProfile value.
-
withStorageProfile
Set the storageProfile property: Storage profile of a server.- Parameters:
storageProfile
- the storageProfile value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-