Class ClientScriptForConnect
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.ClientScriptForConnect
Client script details for file / folder restore.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ClientScriptForConnect class. -
Method Summary
Modifier and TypeMethodDescriptionosType()
Get the osType property: OS type - Windows, Linux etc.Get the scriptContent property: File content of the client script for file / folder restore.Get the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.Get the scriptNameSuffix property: Mandatory suffix that should be added to the name of script that is given for download to user.url()
Get the url property: URL of Executable from where to source the content.void
validate()
Validates the instance.withOsType
(String osType) Set the osType property: OS type - Windows, Linux etc.withScriptContent
(String scriptContent) Set the scriptContent property: File content of the client script for file / folder restore.withScriptExtension
(String scriptExtension) Set the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.withScriptNameSuffix
(String scriptNameSuffix) Set the scriptNameSuffix property: Mandatory suffix that should be added to the name of script that is given for download to user.Set the url property: URL of Executable from where to source the content.
-
Constructor Details
-
ClientScriptForConnect
public ClientScriptForConnect()Creates an instance of ClientScriptForConnect class.
-
-
Method Details
-
scriptContent
Get the scriptContent property: File content of the client script for file / folder restore.- Returns:
- the scriptContent value.
-
withScriptContent
Set the scriptContent property: File content of the client script for file / folder restore.- Parameters:
scriptContent
- the scriptContent value to set.- Returns:
- the ClientScriptForConnect object itself.
-
scriptExtension
Get the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.- Returns:
- the scriptExtension value.
-
withScriptExtension
Set the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.- Parameters:
scriptExtension
- the scriptExtension value to set.- Returns:
- the ClientScriptForConnect object itself.
-
osType
Get the osType property: OS type - Windows, Linux etc. for which this file / folder restore client script works.- Returns:
- the osType value.
-
withOsType
Set the osType property: OS type - Windows, Linux etc. for which this file / folder restore client script works.- Parameters:
osType
- the osType value to set.- Returns:
- the ClientScriptForConnect object itself.
-
url
Get the url property: URL of Executable from where to source the content. If this is not null then ScriptContent should not be used.- Returns:
- the url value.
-
withUrl
Set the url property: URL of Executable from where to source the content. If this is not null then ScriptContent should not be used.- Parameters:
url
- the url value to set.- Returns:
- the ClientScriptForConnect object itself.
-
scriptNameSuffix
Get the scriptNameSuffix property: Mandatory suffix that should be added to the name of script that is given for download to user. If its null or empty then , ignore it.- Returns:
- the scriptNameSuffix value.
-
withScriptNameSuffix
Set the scriptNameSuffix property: Mandatory suffix that should be added to the name of script that is given for download to user. If its null or empty then , ignore it.- Parameters:
scriptNameSuffix
- the scriptNameSuffix value to set.- Returns:
- the ClientScriptForConnect object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-