AzPowerShellSetup Class

public final class AzPowerShellSetup
extends CustomSetupBase

The express custom setup of installing Azure PowerShell.

Constructor Summary

Constructor Description
AzPowerShellSetup()

Creates an instance of AzPowerShellSetup class.

Method Summary

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

Reads an instance of AzPowerShellSetup from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of custom setup.

void validate()

Validates the instance.

String version()

Get the version property: The required version of Azure PowerShell to install.

AzPowerShellSetup withVersion(String version)

Set the version property: The required version of Azure PowerShell to install.

Methods inherited from CustomSetupBase

Methods inherited from java.lang.Object

Constructor Details

AzPowerShellSetup

public AzPowerShellSetup()

Creates an instance of AzPowerShellSetup class.

Method Details

fromJson

public static AzPowerShellSetup fromJson(JsonReader jsonReader)

Reads an instance of AzPowerShellSetup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzPowerShellSetup if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AzPowerShellSetup.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of custom setup.

Overrides:

AzPowerShellSetup.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

AzPowerShellSetup.validate()

version

public String version()

Get the version property: The required version of Azure PowerShell to install.

Returns:

the version value.

withVersion

public AzPowerShellSetup withVersion(String version)

Set the version property: The required version of Azure PowerShell to install.

Parameters:

version - the version value to set.

Returns:

the AzPowerShellSetup object itself.

Applies to