ServerPropertiesForCreate Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. ServerPropertiesForCreate
- com.
Implements
public class ServerPropertiesForCreate
implements JsonSerializable<ServerPropertiesForCreate>
The properties used to create a new server.
Constructor Summary
| Constructor | Description |
|---|---|
| ServerPropertiesForCreate() |
Creates an instance of Server |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Create |
createMode()
Get the create |
|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
|
Infrastructure |
infrastructureEncryption()
Get the infrastructure |
|
Minimal |
minimalTlsVersion()
Get the minimal |
|
Public |
publicNetworkAccess()
Get the public |
|
Ssl |
sslEnforcement()
Get the ssl |
|
Storage |
storageProfile()
Get the storage |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Server |
version()
Get the version property: Server version. |
|
Server |
withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructure |
|
Server |
withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimal |
|
Server |
withPublicNetworkAccess(PublicNetworkAccessEnum publicNetworkAccess)
Set the public |
|
Server |
withSslEnforcement(SslEnforcementEnum sslEnforcement)
Set the ssl |
|
Server |
withStorageProfile(StorageProfile storageProfile)
Set the storage |
|
Server |
withVersion(ServerVersion version)
Set the version property: Server version. |
Methods inherited from java.lang.Object
Constructor Details
ServerPropertiesForCreate
public ServerPropertiesForCreate()
Creates an instance of ServerPropertiesForCreate class.
Method Details
createMode
public CreateMode createMode()
Get the createMode property: The mode to create a new server.
Returns:
fromJson
public static ServerPropertiesForCreate fromJson(JsonReader jsonReader)
Reads an instance of ServerPropertiesForCreate from the JsonReader.
Parameters:
Returns:
Throws:
infrastructureEncryption
public InfrastructureEncryption infrastructureEncryption()
Get the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
Returns:
minimalTlsVersion
public MinimalTlsVersionEnum minimalTlsVersion()
Get the minimalTlsVersion property: Enforce a minimal Tls version for the server.
Returns:
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:
sslEnforcement
public SslEnforcementEnum sslEnforcement()
Get the sslEnforcement property: Enable ssl enforcement or not when connect to server.
Returns:
storageProfile
public StorageProfile storageProfile()
Get the storageProfile property: Storage profile of a server.
Returns:
toJson
validate
public void validate()
Validates the instance.
version
public ServerVersion version()
Get the version property: Server version.
Returns:
withInfrastructureEncryption
public ServerPropertiesForCreate withInfrastructureEncryption(InfrastructureEncryption infrastructureEncryption)
Set the infrastructureEncryption property: Status showing whether the server enabled infrastructure encryption.
Parameters:
Returns:
withMinimalTlsVersion
public ServerPropertiesForCreate withMinimalTlsVersion(MinimalTlsVersionEnum minimalTlsVersion)
Set the minimalTlsVersion property: Enforce a minimal Tls version for the server.
Parameters:
Returns:
withPublicNetworkAccess
public ServerPropertiesForCreate 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:
Returns:
withSslEnforcement
public ServerPropertiesForCreate withSslEnforcement(SslEnforcementEnum sslEnforcement)
Set the sslEnforcement property: Enable ssl enforcement or not when connect to server.
Parameters:
Returns:
withStorageProfile
public ServerPropertiesForCreate withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: Storage profile of a server.
Parameters:
Returns:
withVersion
public ServerPropertiesForCreate withVersion(ServerVersion version)
Set the version property: Server version.
Parameters:
Returns: