ServerPropertiesForGeoRestore Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. ServerPropertiesForCreate - com.
azure. resourcemanager. postgresql. models. ServerPropertiesForGeoRestore
- com.
- com.
public final class ServerPropertiesForGeoRestore
extends ServerPropertiesForCreate
The properties used to create a new server by restoring to a different region from a geo replicated backup.
Constructor Summary
| Constructor | Description |
|---|---|
| ServerPropertiesForGeoRestore() |
Creates an instance of Server |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Create |
createMode()
Get the create |
|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
| String |
sourceServerId()
Get the source |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Server |
withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructure |
|
Server |
withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimal |
|
Server |
withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)
Set the public |
|
Server |
withSourceServerId(String sourceServerId)
Set the source |
|
Server |
withSslEnforcement(SslEnforcementEnum sslEnforcement)
Set the ssl |
|
Server |
withStorageProfile(StorageProfile storageProfile)
Set the storage |
|
Server |
withVersion(ServerVersion version)
Set the version property: Server version. |
Methods inherited from ServerPropertiesForCreate
Methods inherited from java.lang.Object
Constructor Details
ServerPropertiesForGeoRestore
public ServerPropertiesForGeoRestore()
Creates an instance of ServerPropertiesForGeoRestore class.
Method Details
createMode
public CreateMode createMode()
Get the createMode property: The mode to create a new server.
Overrides:
ServerPropertiesForGeoRestore.createMode()Returns:
fromJson
public static ServerPropertiesForGeoRestore fromJson(JsonReader jsonReader)
Reads an instance of ServerPropertiesForGeoRestore from the JsonReader.
Parameters:
Returns:
Throws:
sourceServerId
public String sourceServerId()
Get the sourceServerId property: The source server id to restore from.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ServerPropertiesForGeoRestore.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
ServerPropertiesForGeoRestore.validate()withInfrastructureEncryption
public ServerPropertiesForGeoRestore withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
Overrides:
ServerPropertiesForGeoRestore.withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)Parameters:
withMinimalTlsVersion
public ServerPropertiesForGeoRestore withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
Overrides:
ServerPropertiesForGeoRestore.withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)Parameters:
withPublicNetworkAccess
public ServerPropertiesForGeoRestore 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:
ServerPropertiesForGeoRestore.withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)Parameters:
withSourceServerId
public ServerPropertiesForGeoRestore withSourceServerId(String sourceServerId)
Set the sourceServerId property: The source server id to restore from.
Parameters:
Returns:
withSslEnforcement
public ServerPropertiesForGeoRestore withSslEnforcement(SslEnforcementEnum sslEnforcement)
Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
Overrides:
ServerPropertiesForGeoRestore.withSslEnforcement(SslEnforcementEnum sslEnforcement)Parameters:
withStorageProfile
public ServerPropertiesForGeoRestore withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Storage profile of a server.
Overrides:
ServerPropertiesForGeoRestore.withStorageProfile(StorageProfile storageProfile)Parameters:
withVersion
public ServerPropertiesForGeoRestore withVersion(ServerVersion version)
Set the version property: Server version.
Overrides:
ServerPropertiesForGeoRestore.withVersion(ServerVersion version)Parameters: