Class ServerInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.sql.fluent.models.ServerInner
-
public class ServerInner extends com.azure.core.management.ResourceAn Azure SQL Database server.
-
-
Constructor Summary
Constructors Constructor Description ServerInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringadministratorLogin()Get the administratorLogin property: Administrator username for the server.StringadministratorLoginPassword()Get the administratorLoginPassword property: The administrator login password (required for server creation).StringfullyQualifiedDomainName()Get the fullyQualifiedDomainName property: The fully qualified domain name of the server.ResourceIdentityidentity()Get the identity property: The Azure Active Directory identity of the server.Stringkind()Get the kind property: Kind of sql server.StringminimalTlsVersion()Get the minimalTlsVersion property: Minimal TLS version.List<ServerPrivateEndpointConnection>privateEndpointConnections()Get the privateEndpointConnections property: List of private endpoint connections on a server.ServerPublicNetworkAccesspublicNetworkAccess()Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this server.Stringstate()Get the state property: The state of the server.voidvalidate()Validates the instance.Stringversion()Get the version property: The version of the server.ServerInnerwithAdministratorLogin(String administratorLogin)Set the administratorLogin property: Administrator username for the server.ServerInnerwithAdministratorLoginPassword(String administratorLoginPassword)Set the administratorLoginPassword property: The administrator login password (required for server creation).ServerInnerwithIdentity(ResourceIdentity identity)Set the identity property: The Azure Active Directory identity of the server.ServerInnerwithMinimalTlsVersion(String minimalTlsVersion)Set the minimalTlsVersion property: Minimal TLS version.ServerInnerwithPublicNetworkAccess(ServerPublicNetworkAccess publicNetworkAccess)Set the publicNetworkAccess property: Whether or not public endpoint access is allowed for this server.ServerInnerwithVersion(String version)Set the version property: The version of the server.
-
-
-
Method Detail
-
identity
public ResourceIdentity identity()
Get the identity property: The Azure Active Directory identity of the server.- Returns:
- the identity value.
-
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.
-
kind
public String kind()
Get the kind property: Kind of sql server. This is metadata used for the Azure portal experience.- Returns:
- the kind value.
-
administratorLogin
public String administratorLogin()
Get the administratorLogin property: Administrator username for the server. Once created it cannot be changed.- Returns:
- the administratorLogin value.
-
withAdministratorLogin
public ServerInner withAdministratorLogin(String administratorLogin)
Set the administratorLogin property: Administrator username for the server. Once created it cannot be changed.- Parameters:
administratorLogin- the administratorLogin value to set.- Returns:
- the ServerInner object itself.
-
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The administrator login password (required for server creation).- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ServerInner withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The administrator login password (required for server creation).- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ServerInner object itself.
-
version
public String version()
Get the version property: The version of the server.- Returns:
- the version value.
-
withVersion
public ServerInner withVersion(String version)
Set the version property: The version of the server.- Parameters:
version- the version value to set.- Returns:
- the ServerInner object itself.
-
state
public String state()
Get the state property: The state of the server.- Returns:
- the state value.
-
fullyQualifiedDomainName
public String fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: The fully qualified domain name of the server.- Returns:
- the fullyQualifiedDomainName value.
-
privateEndpointConnections
public List<ServerPrivateEndpointConnection> privateEndpointConnections()
Get the privateEndpointConnections property: List of private endpoint connections on a server.- Returns:
- the privateEndpointConnections value.
-
minimalTlsVersion
public String minimalTlsVersion()
Get the minimalTlsVersion property: Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'.- Returns:
- the minimalTlsVersion value.
-
withMinimalTlsVersion
public ServerInner withMinimalTlsVersion(String minimalTlsVersion)
Set the minimalTlsVersion property: Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'.- Parameters:
minimalTlsVersion- the minimalTlsVersion value to set.- Returns:
- the ServerInner object itself.
-
publicNetworkAccess
public ServerPublicNetworkAccess publicNetworkAccess()
Get the publicNetworkAccess property: Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'.- Returns:
- the publicNetworkAccess value.
-
withPublicNetworkAccess
public ServerInner withPublicNetworkAccess(ServerPublicNetworkAccess publicNetworkAccess)
Set the publicNetworkAccess property: Whether or not public endpoint 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-