Class ServerUpdateParameters
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.ServerUpdateParameters
-
public final class ServerUpdateParameters extends Object
Parameters allowed to update for a server.
-
-
Constructor Summary
Constructors Constructor Description ServerUpdateParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadministratorLoginPassword()Get the administratorLoginPassword property: The password of the administrator login.ResourceIdentityidentity()Get the identity property: The Azure Active Directory identity of the server.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.StringreplicationRole()Get the replicationRole property: The replication role of the server.Skusku()Get the sku property: The SKU (pricing tier) of the 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.Map<String,String>tags()Get the tags property: Application-specific metadata in the form of key-value pairs.voidvalidate()Validates the instance.ServerVersionversion()Get the version property: The version of a server.ServerUpdateParameterswithAdministratorLoginPassword(String administratorLoginPassword)Set the administratorLoginPassword property: The password of the administrator login.ServerUpdateParameterswithIdentity(ResourceIdentity identity)Set the identity property: The Azure Active Directory identity of the server.ServerUpdateParameterswithMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.ServerUpdateParameterswithPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.ServerUpdateParameterswithReplicationRole(String replicationRole)Set the replicationRole property: The replication role of the server.ServerUpdateParameterswithSku(Sku sku)Set the sku property: The SKU (pricing tier) of the server.ServerUpdateParameterswithSslEnforcement(SslEnforcementEnum sslEnforcement)Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.ServerUpdateParameterswithStorageProfile(StorageProfile storageProfile)Set the storageProfile property: Storage profile of a server.ServerUpdateParameterswithTags(Map<String,String> tags)Set the tags property: Application-specific metadata in the form of key-value pairs.ServerUpdateParameterswithVersion(ServerVersion version)Set the version property: The version of a server.
-
-
-
Method Detail
-
identity
public ResourceIdentity identity()
Get the identity property: The Azure Active Directory identity of the server.- Returns:
- the identity value.
-
withIdentity
public ServerUpdateParameters withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the server.- Parameters:
identity- the identity value to set.- Returns:
- the ServerUpdateParameters object itself.
-
sku
public Sku sku()
Get the sku property: The SKU (pricing tier) of the server.- Returns:
- the sku value.
-
withSku
public ServerUpdateParameters withSku(Sku sku)
Set the sku property: The SKU (pricing tier) of the server.- Parameters:
sku- the sku value to set.- Returns:
- the ServerUpdateParameters object itself.
-
tags
public Map<String,String> tags()
Get the tags property: Application-specific metadata in the form of key-value pairs.- Returns:
- the tags value.
-
withTags
public ServerUpdateParameters withTags(Map<String,String> tags)
Set the tags property: Application-specific metadata in the form of key-value pairs.- Parameters:
tags- the tags value to set.- Returns:
- the ServerUpdateParameters object itself.
-
storageProfile
public StorageProfile storageProfile()
Get the storageProfile property: Storage profile of a server.- Returns:
- the storageProfile value.
-
withStorageProfile
public ServerUpdateParameters withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Storage profile of a server.- Parameters:
storageProfile- the storageProfile value to set.- Returns:
- the ServerUpdateParameters object itself.
-
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The password of the administrator login.- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ServerUpdateParameters withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The password of the administrator login.- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ServerUpdateParameters object itself.
-
version
public ServerVersion version()
Get the version property: The version of a server.- Returns:
- the version value.
-
withVersion
public ServerUpdateParameters withVersion(ServerVersion version)
Set the version property: The version of a server.- Parameters:
version- the version value to set.- Returns:
- the ServerUpdateParameters 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 ServerUpdateParameters 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 ServerUpdateParameters object itself.
-
minimalTlsVersion
public MinimalTlsVersionEnum minimalTlsVersion()
Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
public ServerUpdateParameters withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Parameters:
minimalTlsVersion- the minimalTlsVersion value to set.- Returns:
- the ServerUpdateParameters 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 ServerUpdateParameters 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 ServerUpdateParameters object itself.
-
replicationRole
public String replicationRole()
Get the replicationRole property: The replication role of the server.- Returns:
- the replicationRole value.
-
withReplicationRole
public ServerUpdateParameters withReplicationRole(String replicationRole)
Set the replicationRole property: The replication role of the server.- Parameters:
replicationRole- the replicationRole value to set.- Returns:
- the ServerUpdateParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-