Class ServerInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.mariadb.fluent.models.ServerInner
public final class ServerInner
extends com.azure.core.management.Resource
Represents a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the administratorLogin property: The administrator's login name of a server.Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.Get the masterServerId property: The master server id of a replica server.Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.Get the privateEndpointConnections property: List of private endpoint connections on a server.Get the publicNetworkAccess property: Whether or not public network access is allowed for this server.Get the replicaCapacity property: The maximum number of replicas that a master server can have.Get the replicationRole property: The replication role of the server.sku()
Get the sku property: The SKU (pricing tier) of the server.Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.Get the storageProfile property: Storage profile of a server.Get the userVisibleState property: A state of a server that is visible to user.void
validate()
Validates the instance.version()
Get the version property: Server version.withAdministratorLogin
(String administratorLogin) Set the administratorLogin property: The administrator's login name of a server.withEarliestRestoreDate
(OffsetDateTime earliestRestoreDate) Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).withFullyQualifiedDomainName
(String fullyQualifiedDomainName) Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.withLocation
(String location) withMasterServerId
(String masterServerId) Set the masterServerId property: The master server id of a replica server.withMinimalTlsVersion
(MinimalTlsVersionEnum minimalTlsVersion) Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.withPublicNetworkAccess
(PublicNetworkAccessEnum publicNetworkAccess) Set the publicNetworkAccess property: Whether or not public network access is allowed for this server.withReplicaCapacity
(Integer replicaCapacity) Set the replicaCapacity property: The maximum number of replicas that a master server can have.withReplicationRole
(String replicationRole) Set the replicationRole property: The replication role of the server.Set the sku property: The SKU (pricing tier) of the server.withSslEnforcement
(SslEnforcementEnum sslEnforcement) Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.withStorageProfile
(StorageProfile storageProfile) Set the storageProfile property: Storage profile of a server.withUserVisibleState
(ServerState userVisibleState) Set the userVisibleState property: A state of a server that is visible to user.withVersion
(ServerVersion version) Set the version property: Server version.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ServerInner
public ServerInner()Creates an instance of ServerInner class.
-
-
Method Details
-
sku
Get the sku property: The SKU (pricing tier) of the server.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU (pricing tier) of the server.- Parameters:
sku
- the sku value to set.- Returns:
- the ServerInner object itself.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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.
-
withAdministratorLogin
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.
-
version
Get the version property: Server version.- Returns:
- the version value.
-
withVersion
Set the version property: Server version.- Parameters:
version
- the version value to set.- Returns:
- the ServerInner object itself.
-
sslEnforcement
Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Returns:
- the sslEnforcement value.
-
withSslEnforcement
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.
-
minimalTlsVersion
Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Parameters:
minimalTlsVersion
- the minimalTlsVersion value to set.- Returns:
- the ServerInner object itself.
-
userVisibleState
Get the userVisibleState property: A state of a server that is visible to user.- Returns:
- the userVisibleState value.
-
withUserVisibleState
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.
-
fullyQualifiedDomainName
Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.- Returns:
- the fullyQualifiedDomainName value.
-
withFullyQualifiedDomainName
Set the fullyQualifiedDomainName property: The fully qualified domain name of a server.- Parameters:
fullyQualifiedDomainName
- the fullyQualifiedDomainName value to set.- Returns:
- the ServerInner object itself.
-
earliestRestoreDate
Get the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).- Returns:
- the earliestRestoreDate value.
-
withEarliestRestoreDate
Set the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).- Parameters:
earliestRestoreDate
- the earliestRestoreDate value to set.- Returns:
- the ServerInner object itself.
-
storageProfile
Get the storageProfile property: Storage profile of a server.- Returns:
- the storageProfile value.
-
withStorageProfile
Set the storageProfile property: Storage profile of a server.- Parameters:
storageProfile
- the storageProfile value to set.- Returns:
- the ServerInner object itself.
-
replicationRole
Get the replicationRole property: The replication role of the server.- Returns:
- the replicationRole value.
-
withReplicationRole
Set the replicationRole property: The replication role of the server.- Parameters:
replicationRole
- the replicationRole value to set.- Returns:
- the ServerInner object itself.
-
masterServerId
Get the masterServerId property: The master server id of a replica server.- Returns:
- the masterServerId value.
-
withMasterServerId
Set the masterServerId property: The master server id of a replica server.- Parameters:
masterServerId
- the masterServerId value to set.- Returns:
- the ServerInner object itself.
-
replicaCapacity
Get the replicaCapacity property: The maximum number of replicas that a master server can have.- Returns:
- the replicaCapacity value.
-
withReplicaCapacity
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.
-
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.
-
withPublicNetworkAccess
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.
-
privateEndpointConnections
Get the privateEndpointConnections property: List of private endpoint connections on a server.- Returns:
- the privateEndpointConnections value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-