Class ServerPropertiesForReplica
- java.lang.Object
-
- com.azure.resourcemanager.mysql.models.ServerPropertiesForCreate
-
- com.azure.resourcemanager.mysql.models.ServerPropertiesForReplica
-
public final class ServerPropertiesForReplica extends ServerPropertiesForCreate
The properties to create a new replica.
-
-
Constructor Summary
Constructors Constructor Description ServerPropertiesForReplica()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringsourceServerId()Get the sourceServerId property: The master server id to create replica from.voidvalidate()Validates the instance.ServerPropertiesForReplicawithInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.ServerPropertiesForReplicawithMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.ServerPropertiesForReplicawithPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.ServerPropertiesForReplicawithSourceServerId(String sourceServerId)Set the sourceServerId property: The master server id to create replica from.ServerPropertiesForReplicawithSslEnforcement(SslEnforcementEnum sslEnforcement)Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.ServerPropertiesForReplicawithStorageProfile(StorageProfile storageProfile)Set the storageProfile property: Storage profile of a server.ServerPropertiesForReplicawithVersion(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
-
sourceServerId
public String sourceServerId()
Get the sourceServerId property: The master server id to create replica from.- Returns:
- the sourceServerId value.
-
withSourceServerId
public ServerPropertiesForReplica withSourceServerId(String sourceServerId)
Set the sourceServerId property: The master server id to create replica from.- Parameters:
sourceServerId- the sourceServerId value to set.- Returns:
- the ServerPropertiesForReplica object itself.
-
withVersion
public ServerPropertiesForReplica 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 ServerPropertiesForReplica 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 ServerPropertiesForReplica 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 ServerPropertiesForReplica 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 ServerPropertiesForReplica 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 ServerPropertiesForReplica 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.
-
-