Interface Server
public interface Server
An immutable client-side representation of Server.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the Server definition.static interface
The Server definition stages.static interface
The template for Server update.static interface
The Server update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the administratorLogin property: The administrator's login name of a server.Gets the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).Gets the fullyQualifiedDomainName property: The fully qualified domain name of a server.id()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.mariadb.fluent.models.ServerInner object.location()
Gets the location property: The geo-location where the resource lives.Gets the masterServerId property: The master server id of a replica server.Gets the minimalTlsVersion property: Enforce a minimal Tls version for the server.name()
Gets the name property: The name of the resource.Gets the privateEndpointConnections property: List of private endpoint connections on a server.Gets the publicNetworkAccess property: Whether or not public network access is allowed for this server.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the replicaCapacity property: The maximum number of replicas that a master server can have.Gets the replicationRole property: The replication role of the server.Gets the name of the resource group.void
restart()
Restarts a server.void
restart
(com.azure.core.util.Context context) Restarts a server.sku()
Gets the sku property: The SKU (pricing tier) of the server.Gets the sslEnforcement property: Enable ssl enforcement or not when connect to server.void
start()
Starts a stopped server.void
start
(com.azure.core.util.Context context) Starts a stopped server.void
stop()
Stops a running server.void
stop
(com.azure.core.util.Context context) Stops a running server.Gets the storageProfile property: Storage profile of a server.tags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.update()
Begins update for the Server resource.Gets the userVisibleState property: A state of a server that is visible to user.version()
Gets the version property: Server version.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
sku
Sku sku()Gets the sku property: The SKU (pricing tier) of the server.- Returns:
- the sku value.
-
administratorLogin
String administratorLogin()Gets 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.
-
version
ServerVersion version()Gets the version property: Server version.- Returns:
- the version value.
-
sslEnforcement
SslEnforcementEnum sslEnforcement()Gets the sslEnforcement property: Enable ssl enforcement or not when connect to server.- Returns:
- the sslEnforcement value.
-
minimalTlsVersion
MinimalTlsVersionEnum minimalTlsVersion()Gets the minimalTlsVersion property: Enforce a minimal Tls version for the server.- Returns:
- the minimalTlsVersion value.
-
userVisibleState
ServerState userVisibleState()Gets the userVisibleState property: A state of a server that is visible to user.- Returns:
- the userVisibleState value.
-
fullyQualifiedDomainName
String fullyQualifiedDomainName()Gets the fullyQualifiedDomainName property: The fully qualified domain name of a server.- Returns:
- the fullyQualifiedDomainName value.
-
earliestRestoreDate
OffsetDateTime earliestRestoreDate()Gets the earliestRestoreDate property: Earliest restore point creation time (ISO8601 format).- Returns:
- the earliestRestoreDate value.
-
storageProfile
StorageProfile storageProfile()Gets the storageProfile property: Storage profile of a server.- Returns:
- the storageProfile value.
-
replicationRole
String replicationRole()Gets the replicationRole property: The replication role of the server.- Returns:
- the replicationRole value.
-
masterServerId
String masterServerId()Gets the masterServerId property: The master server id of a replica server.- Returns:
- the masterServerId value.
-
replicaCapacity
Integer replicaCapacity()Gets the replicaCapacity property: The maximum number of replicas that a master server can have.- Returns:
- the replicaCapacity value.
-
publicNetworkAccess
PublicNetworkAccessEnum publicNetworkAccess()Gets 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.
-
privateEndpointConnections
List<ServerPrivateEndpointConnection> privateEndpointConnections()Gets the privateEndpointConnections property: List of private endpoint connections on a server.- Returns:
- the privateEndpointConnections value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
ServerInner innerModel()Gets the inner com.azure.resourcemanager.mariadb.fluent.models.ServerInner object.- Returns:
- the inner object.
-
update
Server.Update update()Begins update for the Server resource.- Returns:
- the stage of resource update.
-
refresh
Server refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
restart
void restart()Restarts a server.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(com.azure.core.util.Context context) Restarts a server.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start()Starts a stopped server.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(com.azure.core.util.Context context) Starts a stopped server.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop()Stops a running server.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(com.azure.core.util.Context context) Stops a running server.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-