Class ClientScriptForConnect
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.ClientScriptForConnect
-
public final class ClientScriptForConnect extends Object
Client script details for file / folder restore.
-
-
Constructor Summary
Constructors Constructor Description ClientScriptForConnect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
osType()
Get the osType property: OS type - Windows, Linux etc.String
scriptContent()
Get the scriptContent property: File content of the client script for file / folder restore.String
scriptExtension()
Get the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.String
scriptNameSuffix()
Get the scriptNameSuffix property: Mandatory suffix that should be added to the name of script that is given for download to user.String
url()
Get the url property: URL of Executable from where to source the content.void
validate()
Validates the instance.ClientScriptForConnect
withOsType(String osType)
Set the osType property: OS type - Windows, Linux etc.ClientScriptForConnect
withScriptContent(String scriptContent)
Set the scriptContent property: File content of the client script for file / folder restore.ClientScriptForConnect
withScriptExtension(String scriptExtension)
Set the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.ClientScriptForConnect
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.ClientScriptForConnect
withUrl(String url)
Set the url property: URL of Executable from where to source the content.
-
-
-
Method Detail
-
scriptContent
public String scriptContent()
Get the scriptContent property: File content of the client script for file / folder restore.- Returns:
- the scriptContent value.
-
withScriptContent
public ClientScriptForConnect withScriptContent(String scriptContent)
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
public String scriptExtension()
Get the scriptExtension property: File extension of the client script for file / folder restore - .ps1 , .sh , etc.- Returns:
- the scriptExtension value.
-
withScriptExtension
public ClientScriptForConnect withScriptExtension(String scriptExtension)
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
public String osType()
Get the osType property: OS type - Windows, Linux etc. for which this file / folder restore client script works.- Returns:
- the osType value.
-
withOsType
public ClientScriptForConnect withOsType(String osType)
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
public String 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
public ClientScriptForConnect withUrl(String url)
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
public String 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
public ClientScriptForConnect 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. 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.
-
-