Class ServerPropertiesForCreate
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.ServerPropertiesForCreate
-
- Direct Known Subclasses:
ServerPropertiesForDefaultCreate,ServerPropertiesForGeoRestore,ServerPropertiesForReplica,ServerPropertiesForRestore
public class ServerPropertiesForCreate extends Object
The properties used to create a new server.
-
-
Constructor Summary
Constructors Constructor Description ServerPropertiesForCreate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InfrastructureEncryptioninfrastructureEncryption()Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.MinimalTlsVersionEnumminimalTlsVersion()Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.PublicNetworkAccessEnumpublicNetworkAccess()Get the publicNetworkAccess property: Whether or not public network access is allowed for this server.SslEnforcementEnumsslEnforcement()Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.StorageProfilestorageProfile()Get the storageProfile property: Storage profile of a server.voidvalidate()Validates the instance.ServerVersionversion()Get the version property: Server version.ServerPropertiesForCreatewithInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.ServerPropertiesForCreatewithMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.ServerPropertiesForCreatewithPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.ServerPropertiesForCreatewithSslEnforcement(SslEnforcementEnum sslEnforcement)Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.ServerPropertiesForCreatewithStorageProfile(StorageProfile storageProfile)Set the storageProfile property: Storage profile of a server.ServerPropertiesForCreatewithVersion(ServerVersion version)Set the version property: Server version.
-
-
-
Method Detail
-
version
public ServerVersion version()
Get the version property: Server version.- Returns:
- the version value.
-
withVersion
public ServerPropertiesForCreate withVersion(ServerVersion version)
Set the version property: Server version.- Parameters:
version- the version value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
sslEnforcement
public SslEnforcementEnum sslEnforcement()
Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Returns:
- the sslEnforcement value.
-
withSslEnforcement
public ServerPropertiesForCreate withSslEnforcement(SslEnforcementEnum sslEnforcement)
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
public MinimalTlsVersionEnum minimalTlsVersion()
Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
public ServerPropertiesForCreate withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Parameters:
minimalTlsVersion- the minimalTlsVersion value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
infrastructureEncryption
public InfrastructureEncryption infrastructureEncryption()
Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.- Returns:
- the infrastructureEncryption value.
-
withInfrastructureEncryption
public ServerPropertiesForCreate withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.- Parameters:
infrastructureEncryption- the infrastructureEncryption value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
publicNetworkAccess
public PublicNetworkAccessEnum 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
public StorageProfile storageProfile()
Get the storageProfile property: Storage profile of a server.- Returns:
- the storageProfile value.
-
withStorageProfile
public ServerPropertiesForCreate withStorageProfile(StorageProfile storageProfile)
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.
-
-