ServerUpdateParametersProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.fluent.models.ServerUpdateParametersProperties

Implements

public final class ServerUpdateParametersProperties
implements JsonSerializable<ServerUpdateParametersProperties>

The properties that can be updated for a server.

Constructor Summary

Constructor Description
ServerUpdateParametersProperties()

Creates an instance of ServerUpdateParametersProperties class.

Method Summary

Modifier and Type Method and Description
String administratorLoginPassword()

Get the administratorLoginPassword property: The password of the administrator login.

static ServerUpdateParametersProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerUpdateParametersProperties from the JsonReader.

MinimalTlsVersionEnum minimalTlsVersion()

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

PublicNetworkAccessEnum publicNetworkAccess()

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

String replicationRole()

Get the replicationRole property: The replication role of the server.

SslEnforcementEnum sslEnforcement()

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

StorageProfile storageProfile()

Get the storageProfile property: Storage profile of a server.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerVersion version()

Get the version property: The version of a server.

ServerUpdateParametersProperties withAdministratorLoginPassword(String administratorLoginPassword)

Set the administratorLoginPassword property: The password of the administrator login.

ServerUpdateParametersProperties withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

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

ServerUpdateParametersProperties withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)

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

ServerUpdateParametersProperties withReplicationRole(String replicationRole)

Set the replicationRole property: The replication role of the server.

ServerUpdateParametersProperties withSslEnforcement(SslEnforcementEnum sslEnforcement)

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

ServerUpdateParametersProperties withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

ServerUpdateParametersProperties withVersion(ServerVersion version)

Set the version property: The version of a server.

Methods inherited from java.lang.Object

Constructor Details

ServerUpdateParametersProperties

public ServerUpdateParametersProperties()

Creates an instance of ServerUpdateParametersProperties class.

Method Details

administratorLoginPassword

public String administratorLoginPassword()

Get the administratorLoginPassword property: The password of the administrator login.

Returns:

the administratorLoginPassword value.

fromJson

public static ServerUpdateParametersProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerUpdateParametersProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ServerUpdateParametersProperties.

minimalTlsVersion

public MinimalTlsVersionEnum minimalTlsVersion()

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

Returns:

the minimalTlsVersion value.

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.

replicationRole

public String replicationRole()

Get the replicationRole property: The replication role of the server.

Returns:

the replicationRole value.

sslEnforcement

public SslEnforcementEnum sslEnforcement()

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

Returns:

the sslEnforcement value.

storageProfile

public StorageProfile storageProfile()

Get the storageProfile property: Storage profile of a server.

Returns:

the storageProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

version

public ServerVersion version()

Get the version property: The version of a server.

Returns:

the version value.

withAdministratorLoginPassword

public ServerUpdateParametersProperties withAdministratorLoginPassword(String administratorLoginPassword)

Set the administratorLoginPassword property: The password of the administrator login.

Parameters:

administratorLoginPassword - the administratorLoginPassword value to set.

Returns:

the ServerUpdateParametersProperties object itself.

withMinimalTlsVersion

public ServerUpdateParametersProperties withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

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

Parameters:

minimalTlsVersion - the minimalTlsVersion value to set.

Returns:

the ServerUpdateParametersProperties object itself.

withPublicNetworkAccess

public ServerUpdateParametersProperties 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 ServerUpdateParametersProperties object itself.

withReplicationRole

public ServerUpdateParametersProperties withReplicationRole(String replicationRole)

Set the replicationRole property: The replication role of the server.

Parameters:

replicationRole - the replicationRole value to set.

Returns:

the ServerUpdateParametersProperties object itself.

withSslEnforcement

public ServerUpdateParametersProperties 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 ServerUpdateParametersProperties object itself.

withStorageProfile

public ServerUpdateParametersProperties withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the ServerUpdateParametersProperties object itself.

withVersion

public ServerUpdateParametersProperties withVersion(ServerVersion version)

Set the version property: The version of a server.

Parameters:

version - the version value to set.

Returns:

the ServerUpdateParametersProperties object itself.

Applies to