通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ServerUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.models.ServerUpdateParameters

Implements

public final class ServerUpdateParameters
implements JsonSerializable<ServerUpdateParameters>

Parameters allowed to update for a server.

Constructor Summary

Constructor Description
ServerUpdateParameters()

Creates an instance of ServerUpdateParameters class.

Method Summary

Modifier and Type Method and Description
String administratorLoginPassword()

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

static ServerUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of ServerUpdateParameters from the JsonReader.

ResourceIdentity identity()

Get the identity property: The Azure Active Directory identity of the server.

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.

Sku sku()

Get the sku property: The SKU (pricing tier) 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.

Map<String,String> tags()

Get the tags property: Application-specific metadata in the form of key-value pairs.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerVersion version()

Get the version property: The version of a server.

ServerUpdateParameters withAdministratorLoginPassword(String administratorLoginPassword)

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

ServerUpdateParameters withIdentity(ResourceIdentity identity)

Set the identity property: The Azure Active Directory identity of the server.

ServerUpdateParameters withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

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

ServerUpdateParameters withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)

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

ServerUpdateParameters withReplicationRole(String replicationRole)

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

ServerUpdateParameters withSku(Sku sku)

Set the sku property: The SKU (pricing tier) of the server.

ServerUpdateParameters withSslEnforcement(SslEnforcementEnum sslEnforcement)

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

ServerUpdateParameters withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

ServerUpdateParameters withTags(Map<String,String> tags)

Set the tags property: Application-specific metadata in the form of key-value pairs.

ServerUpdateParameters withVersion(ServerVersion version)

Set the version property: The version of a server.

Methods inherited from java.lang.Object

Constructor Details

ServerUpdateParameters

public ServerUpdateParameters()

Creates an instance of ServerUpdateParameters class.

Method Details

administratorLoginPassword

public String administratorLoginPassword()

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

Returns:

the administratorLoginPassword value.

fromJson

public static ServerUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of ServerUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerUpdateParameters 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 ServerUpdateParameters.

identity

public ResourceIdentity identity()

Get the identity property: The Azure Active Directory identity of the server.

Returns:

the identity value.

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.

sku

public Sku sku()

Get the sku property: The SKU (pricing tier) of the server.

Returns:

the sku 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.

tags

public Map<String,String> tags()

Get the tags property: Application-specific metadata in the form of key-value pairs.

Returns:

the tags 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 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to