Class ServerPropertiesForDefaultCreate
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.ServerPropertiesForCreate
-
- com.azure.resourcemanager.mysql.models.ServerPropertiesForDefaultCreate
-
public final class ServerPropertiesForDefaultCreate extends ServerPropertiesForCreate
The properties used to create a new server.
-
-
Constructor Summary
Constructors Constructor Description ServerPropertiesForDefaultCreate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadministratorLogin()Get the administratorLogin property: The administrator's login name of a server.StringadministratorLoginPassword()Get the administratorLoginPassword property: The password of the administrator login.voidvalidate()Validates the instance.ServerPropertiesForDefaultCreatewithAdministratorLogin(String administratorLogin)Set the administratorLogin property: The administrator's login name of a server.ServerPropertiesForDefaultCreatewithAdministratorLoginPassword(String administratorLoginPassword)Set the administratorLoginPassword property: The password of the administrator login.ServerPropertiesForDefaultCreatewithInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.ServerPropertiesForDefaultCreatewithMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.ServerPropertiesForDefaultCreatewithPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.ServerPropertiesForDefaultCreatewithSslEnforcement(SslEnforcementEnum sslEnforcement)Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.ServerPropertiesForDefaultCreatewithStorageProfile(StorageProfile storageProfile)Set the storageProfile property: Storage profile of a server.ServerPropertiesForDefaultCreatewithVersion(ServerVersion version)Set the version property: Server version.-
Methods inherited from class com.azure.resourcemanager.mysql.models.ServerPropertiesForCreate
infrastructureEncryption, minimalTlsVersion, publicNetworkAccess, sslEnforcement, storageProfile, version
-
-
-
-
Method Detail
-
administratorLogin
public String administratorLogin()
Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). The login name is required when updating password.- Returns:
- the administratorLogin value.
-
withAdministratorLogin
public ServerPropertiesForDefaultCreate withAdministratorLogin(String administratorLogin)
Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation). The login name is required when updating password.- Parameters:
administratorLogin- the administratorLogin value to set.- Returns:
- the ServerPropertiesForDefaultCreate object itself.
-
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The password of the administrator login.- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ServerPropertiesForDefaultCreate withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The password of the administrator login.- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ServerPropertiesForDefaultCreate object itself.
-
withVersion
public ServerPropertiesForDefaultCreate withVersion(ServerVersion version)
Set the version property: Server version.- Overrides:
withVersionin classServerPropertiesForCreate- Parameters:
version- the version value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withSslEnforcement
public ServerPropertiesForDefaultCreate withSslEnforcement(SslEnforcementEnum sslEnforcement)
Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Overrides:
withSslEnforcementin classServerPropertiesForCreate- Parameters:
sslEnforcement- the sslEnforcement value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withMinimalTlsVersion
public ServerPropertiesForDefaultCreate withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Overrides:
withMinimalTlsVersionin classServerPropertiesForCreate- Parameters:
minimalTlsVersion- the minimalTlsVersion value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withInfrastructureEncryption
public ServerPropertiesForDefaultCreate withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.- Overrides:
withInfrastructureEncryptionin classServerPropertiesForCreate- Parameters:
infrastructureEncryption- the infrastructureEncryption value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withPublicNetworkAccess
public ServerPropertiesForDefaultCreate 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:
withPublicNetworkAccessin classServerPropertiesForCreate- Parameters:
publicNetworkAccess- the publicNetworkAccess value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
withStorageProfile
public ServerPropertiesForDefaultCreate withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Storage profile of a server.- Overrides:
withStorageProfilein classServerPropertiesForCreate- Parameters:
storageProfile- the storageProfile value to set.- Returns:
- the ServerPropertiesForCreate object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classServerPropertiesForCreate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-