ServerPropertiesForGeoRestore Class

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 ServerPropertiesForGeoRestore class.

Method Summary

Modifier and Type Method and Description
CreateMode createMode()

Get the createMode property: The mode to create a new server.

static ServerPropertiesForGeoRestore fromJson(JsonReader jsonReader)

Reads an instance of ServerPropertiesForGeoRestore from the JsonReader.

String sourceServerId()

Get the sourceServerId property: The source server id to restore from.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerPropertiesForGeoRestore withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)

Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.

ServerPropertiesForGeoRestore withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.

ServerPropertiesForGeoRestore withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)

Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.

ServerPropertiesForGeoRestore withSourceServerId(String sourceServerId)

Set the sourceServerId property: The source server id to restore from.

ServerPropertiesForGeoRestore withSslEnforcement(SslEnforcementEnum sslEnforcement)

Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.

ServerPropertiesForGeoRestore withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

ServerPropertiesForGeoRestore 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:

the createMode value.

fromJson

public static ServerPropertiesForGeoRestore fromJson(JsonReader jsonReader)

Reads an instance of ServerPropertiesForGeoRestore from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerPropertiesForGeoRestore if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

sourceServerId

public String sourceServerId()

Get the sourceServerId property: The source server id to restore from.

Returns:

the sourceServerId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerPropertiesForGeoRestore.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

infrastructureEncryption

withMinimalTlsVersion

public ServerPropertiesForGeoRestore withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.

Overrides:

ServerPropertiesForGeoRestore.withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

Parameters:

minimalTlsVersion

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:

publicNetworkAccess

withSourceServerId

public ServerPropertiesForGeoRestore withSourceServerId(String sourceServerId)

Set the sourceServerId property: The source server id to restore from.

Parameters:

sourceServerId - the sourceServerId value to set.

Returns:

the ServerPropertiesForGeoRestore object itself.

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:

sslEnforcement

withStorageProfile

public ServerPropertiesForGeoRestore withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

Overrides:

ServerPropertiesForGeoRestore.withStorageProfile(StorageProfile storageProfile)

Parameters:

storageProfile

withVersion

public ServerPropertiesForGeoRestore withVersion(ServerVersion version)

Set the version property: Server version.

Overrides:

ServerPropertiesForGeoRestore.withVersion(ServerVersion version)

Parameters:

version

Applies to