Share via


InstallScript Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.InstallScript

Implements

public final class InstallScript
implements JsonSerializable<InstallScript>

Server farm install script configuration.

Constructor Summary

Constructor Description
InstallScript()

Creates an instance of InstallScript class.

Method Summary

Modifier and Type Method and Description
static InstallScript fromJson(JsonReader jsonReader)

Reads an instance of InstallScript from the JsonReader.

String name()

Get the name property: Name of the install script.

InstallScriptSource source()

Get the source property: Source of the install script.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

InstallScript withName(String name)

Set the name property: Name of the install script.

InstallScript withSource(InstallScriptSource source)

Set the source property: Source of the install script.

Methods inherited from java.lang.Object

Constructor Details

InstallScript

public InstallScript()

Creates an instance of InstallScript class.

Method Details

fromJson

public static InstallScript fromJson(JsonReader jsonReader)

Reads an instance of InstallScript from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InstallScript 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 InstallScript.

name

public String name()

Get the name property: Name of the install script.

Returns:

the name value.

source

public InstallScriptSource source()

Get the source property: Source of the install script.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public InstallScript withName(String name)

Set the name property: Name of the install script.

Parameters:

name - the name value to set.

Returns:

the InstallScript object itself.

withSource

public InstallScript withSource(InstallScriptSource source)

Set the source property: Source of the install script.

Parameters:

source - the source value to set.

Returns:

the InstallScript object itself.

Applies to