Class NetworkIsolationSettings
java.lang.Object
com.azure.resourcemanager.sql.models.NetworkIsolationSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkIsolationSettings>
public final class NetworkIsolationSettings
extends Object
implements com.azure.json.JsonSerializable<NetworkIsolationSettings>
Contains the ARM resources for which to create private endpoint connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkIsolationSettings class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkIsolationSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkIsolationSettings from the JsonReader.Get the sqlServerResourceId property: The resource id for the SQL server which is the target of this request.Get the storageAccountResourceId property: The resource id for the storage account used to store BACPAC file.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withSqlServerResourceId(String sqlServerResourceId) Set the sqlServerResourceId property: The resource id for the SQL server which is the target of this request.withStorageAccountResourceId(String storageAccountResourceId) Set the storageAccountResourceId property: The resource id for the storage account used to store BACPAC file.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NetworkIsolationSettings
public NetworkIsolationSettings()Creates an instance of NetworkIsolationSettings class.
-
-
Method Details
-
storageAccountResourceId
Get the storageAccountResourceId property: The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter.- Returns:
- the storageAccountResourceId value.
-
withStorageAccountResourceId
Set the storageAccountResourceId property: The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter.- Parameters:
storageAccountResourceId- the storageAccountResourceId value to set.- Returns:
- the NetworkIsolationSettings object itself.
-
sqlServerResourceId
Get the sqlServerResourceId property: The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation.- Returns:
- the sqlServerResourceId value.
-
withSqlServerResourceId
Set the sqlServerResourceId property: The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation.- Parameters:
sqlServerResourceId- the sqlServerResourceId value to set.- Returns:
- the NetworkIsolationSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkIsolationSettings>- Throws:
IOException
-
fromJson
public static NetworkIsolationSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkIsolationSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkIsolationSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the NetworkIsolationSettings.
-