Class MSDeployProperties
java.lang.Object
com.azure.resourcemanager.appservice.models.MSDeployCore
com.azure.resourcemanager.appservice.fluent.models.MSDeployProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MSDeployCore>
Core resource properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addOnPackages property: List of Add-On packages.static MSDeployProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MSDeployProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAddOnPackages
(List<MSDeployCore> addOnPackages) Set the addOnPackages property: List of Add-On packages.withAppOffline
(Boolean appOffline) Set the appOffline property: Sets the AppOffline rule while the MSDeploy operation executes.withConnectionString
(String connectionString) Set the connectionString property: SQL Connection String.withDbType
(String dbType) Set the dbType property: Database Type.withPackageUri
(String packageUri) Set the packageUri property: Package URI.withSetParameters
(Map<String, String> setParameters) Set the setParameters property: MSDeploy Parameters.withSetParametersXmlFileUri
(String setParametersXmlFileUri) Set the setParametersXmlFileUri property: URI of MSDeploy Parameters file.withSkipAppData
(Boolean skipAppData) Set the skipAppData property: Controls whether the MSDeploy operation skips the App_Data directory.Methods inherited from class com.azure.resourcemanager.appservice.models.MSDeployCore
appOffline, connectionString, dbType, packageUri, setParameters, setParametersXmlFileUri, skipAppData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MSDeployProperties
public MSDeployProperties()Creates an instance of MSDeployProperties class.
-
-
Method Details
-
addOnPackages
Get the addOnPackages property: List of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule.- Returns:
- the addOnPackages value.
-
withAddOnPackages
Set the addOnPackages property: List of Add-On packages. Add-On packages implicitly enable the Do Not Delete MSDeploy rule.- Parameters:
addOnPackages
- the addOnPackages value to set.- Returns:
- the MSDeployProperties object itself.
-
withPackageUri
Set the packageUri property: Package URI.- Overrides:
withPackageUri
in classMSDeployCore
- Parameters:
packageUri
- the packageUri value to set.- Returns:
- the MSDeployCore object itself.
-
withConnectionString
Set the connectionString property: SQL Connection String.- Overrides:
withConnectionString
in classMSDeployCore
- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the MSDeployCore object itself.
-
withDbType
Set the dbType property: Database Type.- Overrides:
withDbType
in classMSDeployCore
- Parameters:
dbType
- the dbType value to set.- Returns:
- the MSDeployCore object itself.
-
withSetParametersXmlFileUri
Set the setParametersXmlFileUri property: URI of MSDeploy Parameters file. Must not be set if SetParameters is used.- Overrides:
withSetParametersXmlFileUri
in classMSDeployCore
- Parameters:
setParametersXmlFileUri
- the setParametersXmlFileUri value to set.- Returns:
- the MSDeployCore object itself.
-
withSetParameters
Set the setParameters property: MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used.- Overrides:
withSetParameters
in classMSDeployCore
- Parameters:
setParameters
- the setParameters value to set.- Returns:
- the MSDeployCore object itself.
-
withSkipAppData
Set the skipAppData property: Controls whether the MSDeploy operation skips the App_Data directory. If set to <code>true</code>, the existing App_Data directory on the destination will not be deleted, and any App_Data directory in the source will be ignored. Setting is <code>false</code> by default.- Overrides:
withSkipAppData
in classMSDeployCore
- Parameters:
skipAppData
- the skipAppData value to set.- Returns:
- the MSDeployCore object itself.
-
withAppOffline
Set the appOffline property: Sets the AppOffline rule while the MSDeploy operation executes. Setting is <code>false</code> by default.- Overrides:
withAppOffline
in classMSDeployCore
- Parameters:
appOffline
- the appOffline value to set.- Returns:
- the MSDeployCore object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classMSDeployCore
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MSDeployCore>
- Overrides:
toJson
in classMSDeployCore
- Throws:
IOException
-
fromJson
Reads an instance of MSDeployProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MSDeployProperties 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 MSDeployProperties.
-