Partage via


ServerInner Class

public final class ServerInner
extends Resource

Represents a server.

Constructor Summary

Constructor Description
ServerInner()

Creates an instance of ServerInner class.

Method Summary

Modifier and Type Method and Description
String administratorLogin()

Get the administratorLogin property: The administrator's login name of a server.

String byokEnforcement()

Get the byokEnforcement property: Status showing whether the server data encryption is enabled with customer-managed keys.

OffsetDateTime earliestRestoreDate()

Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).

static ServerInner fromJson(JsonReader jsonReader)

Reads an instance of ServerInner from the JsonReader.

String fullyQualifiedDomainName()

Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.

String id()

Get the id property: Fully qualified resource Id for the resource.

ResourceIdentity identity()

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

InfrastructureEncryption infrastructureEncryption()

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

String masterServerId()

Get the masterServerId property: The master server id of a replica server.

MinimalTlsVersionEnum minimalTlsVersion()

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

String name()

Get the name property: The name of the resource.

List<ServerPrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections on a server.

PublicNetworkAccessEnum publicNetworkAccess()

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

Integer replicaCapacity()

Get the replicaCapacity property: The maximum number of replicas that a master server can have.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

ServerState userVisibleState()

Get the userVisibleState property: A state of a server that is visible to user.

void validate()

Validates the instance.

ServerVersion version()

Get the version property: Server version.

ServerInner withAdministratorLogin(String administratorLogin)

Set the administratorLogin property: The administrator's login name of a server.

ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate)

Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).

ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName)

Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.

ServerInner withIdentity(ResourceIdentity identity)

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

ServerInner withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)

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

ServerInner withLocation(String location)
ServerInner withMasterServerId(String masterServerId)

Set the masterServerId property: The master server id of a replica server.

ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

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

ServerInner withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)

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

ServerInner withReplicaCapacity(Integer replicaCapacity)

Set the replicaCapacity property: The maximum number of replicas that a master server can have.

ServerInner withReplicationRole(String replicationRole)

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

ServerInner withSku(Sku sku)

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

ServerInner withSslEnforcement(SslEnforcementEnum sslEnforcement)

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

ServerInner withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

ServerInner withTags(Map<String,String> tags)
ServerInner withUserVisibleState(ServerState userVisibleState)

Set the userVisibleState property: A state of a server that is visible to user.

ServerInner withVersion(ServerVersion version)

Set the version property: Server version.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ServerInner

public ServerInner()

Creates an instance of ServerInner class.

Method Details

administratorLogin

public String administratorLogin()

Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).

Returns:

the administratorLogin value.

byokEnforcement

public String byokEnforcement()

Get the byokEnforcement property: Status showing whether the server data encryption is enabled with customer-managed keys.

Returns:

the byokEnforcement value.

earliestRestoreDate

public OffsetDateTime earliestRestoreDate()

Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).

Returns:

the earliestRestoreDate value.

fromJson

public static ServerInner fromJson(JsonReader jsonReader)

Reads an instance of ServerInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

fullyQualifiedDomainName

public String fullyQualifiedDomainName()

Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.

Returns:

the fullyQualifiedDomainName value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ServerInner.id()

Returns:

the id value.

identity

public ResourceIdentity identity()

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

Returns:

the identity value.

infrastructureEncryption

public InfrastructureEncryption infrastructureEncryption()

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

Returns:

the infrastructureEncryption value.

masterServerId

public String masterServerId()

Get the masterServerId property: The master server id of a replica server.

Returns:

the masterServerId value.

minimalTlsVersion

public MinimalTlsVersionEnum minimalTlsVersion()

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

Returns:

the minimalTlsVersion value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerInner.name()

Returns:

the name value.

privateEndpointConnections

public List<ServerPrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: List of private endpoint connections on a server.

Returns:

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

replicaCapacity

public Integer replicaCapacity()

Get the replicaCapacity property: The maximum number of replicas that a master server can have.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerInner.type()

Returns:

the type value.

userVisibleState

public ServerState userVisibleState()

Get the userVisibleState property: A state of a server that is visible to user.

Returns:

the userVisibleState value.

validate

public void validate()

Validates the instance.

version

public ServerVersion version()

Get the version property: Server version.

Returns:

the version value.

withAdministratorLogin

public ServerInner withAdministratorLogin(String administratorLogin)

Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).

Parameters:

administratorLogin - the administratorLogin value to set.

Returns:

the ServerInner object itself.

withEarliestRestoreDate

public ServerInner withEarliestRestoreDate(OffsetDateTime earliestRestoreDate)

Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).

Parameters:

earliestRestoreDate - the earliestRestoreDate value to set.

Returns:

the ServerInner object itself.

withFullyQualifiedDomainName

public ServerInner withFullyQualifiedDomainName(String fullyQualifiedDomainName)

Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.

Parameters:

fullyQualifiedDomainName - the fullyQualifiedDomainName value to set.

Returns:

the ServerInner object itself.

withIdentity

public ServerInner withIdentity(ResourceIdentity identity)

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

Parameters:

identity - the identity value to set.

Returns:

the ServerInner object itself.

withInfrastructureEncryption

public ServerInner withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)

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

Parameters:

infrastructureEncryption - the infrastructureEncryption value to set.

Returns:

the ServerInner object itself.

withLocation

public ServerInner withLocation(String location)

Overrides:

ServerInner.withLocation(String location)

Parameters:

location

withMasterServerId

public ServerInner withMasterServerId(String masterServerId)

Set the masterServerId property: The master server id of a replica server.

Parameters:

masterServerId - the masterServerId value to set.

Returns:

the ServerInner object itself.

withMinimalTlsVersion

public ServerInner withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)

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

Parameters:

minimalTlsVersion - the minimalTlsVersion value to set.

Returns:

the ServerInner object itself.

withPublicNetworkAccess

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

withReplicaCapacity

public ServerInner withReplicaCapacity(Integer replicaCapacity)

Set the replicaCapacity property: The maximum number of replicas that a master server can have.

Parameters:

replicaCapacity - the replicaCapacity value to set.

Returns:

the ServerInner object itself.

withReplicationRole

public ServerInner withReplicationRole(String replicationRole)

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

Parameters:

replicationRole - the replicationRole value to set.

Returns:

the ServerInner object itself.

withSku

public ServerInner withSku(Sku sku)

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

Parameters:

sku - the sku value to set.

Returns:

the ServerInner object itself.

withSslEnforcement

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

withStorageProfile

public ServerInner withStorageProfile(StorageProfile storageProfile)

Set the storageProfile property: Storage profile of a server.

Parameters:

storageProfile - the storageProfile value to set.

Returns:

the ServerInner object itself.

withTags

public ServerInner withTags(Map<String,String> tags)

Overrides:

ServerInner.withTags(Map<String,String> tags)

Parameters:

tags

withUserVisibleState

public ServerInner withUserVisibleState(ServerState userVisibleState)

Set the userVisibleState property: A state of a server that is visible to user.

Parameters:

userVisibleState - the userVisibleState value to set.

Returns:

the ServerInner object itself.

withVersion

public ServerInner withVersion(ServerVersion version)

Set the version property: Server version.

Parameters:

version - the version value to set.

Returns:

the ServerInner object itself.

Applies to