Share via


InstallScriptSource Class

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

Implements

public final class InstallScriptSource
implements JsonSerializable<InstallScriptSource>

Object to hold install script reference.

Constructor Summary

Constructor Description
InstallScriptSource()

Creates an instance of InstallScriptSource class.

Method Summary

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

Reads an instance of InstallScriptSource from the JsonReader.

String sourceUri()

Get the sourceUri property: Install script source URI where the install script file will be fetched from.

JsonWriter toJson(JsonWriter jsonWriter)
InstallScriptType type()

Get the type property: Type of the install script.

void validate()

Validates the instance.

InstallScriptSource withSourceUri(String sourceUri)

Set the sourceUri property: Install script source URI where the install script file will be fetched from.

InstallScriptSource withType(InstallScriptType type)

Set the type property: Type of the install script.

Methods inherited from java.lang.Object

Constructor Details

InstallScriptSource

public InstallScriptSource()

Creates an instance of InstallScriptSource class.

Method Details

fromJson

public static InstallScriptSource fromJson(JsonReader jsonReader)

Reads an instance of InstallScriptSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

sourceUri

public String sourceUri()

Get the sourceUri property: Install script source URI where the install script file will be fetched from.

Returns:

the sourceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public InstallScriptType type()

Get the type property: Type of the install script.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withSourceUri

public InstallScriptSource withSourceUri(String sourceUri)

Set the sourceUri property: Install script source URI where the install script file will be fetched from.

Parameters:

sourceUri - the sourceUri value to set.

Returns:

the InstallScriptSource object itself.

withType

public InstallScriptSource withType(InstallScriptType type)

Set the type property: Type of the install script.

Parameters:

type - the type value to set.

Returns:

the InstallScriptSource object itself.

Applies to