EnvironmentVariableSetup Class

public final class EnvironmentVariableSetup
extends CustomSetupBase

The custom setup of setting environment variable.

Constructor Summary

Constructor Description
EnvironmentVariableSetup()

Creates an instance of EnvironmentVariableSetup class.

Method Summary

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

Reads an instance of EnvironmentVariableSetup from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of custom setup.

void validate()

Validates the instance.

String variableName()

Get the variableName property: The name of the environment variable.

String variableValue()

Get the variableValue property: The value of the environment variable.

EnvironmentVariableSetup withVariableName(String variableName)

Set the variableName property: The name of the environment variable.

EnvironmentVariableSetup withVariableValue(String variableValue)

Set the variableValue property: The value of the environment variable.

Methods inherited from CustomSetupBase

Methods inherited from java.lang.Object

Constructor Details

EnvironmentVariableSetup

public EnvironmentVariableSetup()

Creates an instance of EnvironmentVariableSetup class.

Method Details

fromJson

public static EnvironmentVariableSetup fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentVariableSetup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of EnvironmentVariableSetup 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:

EnvironmentVariableSetup.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of custom setup.

Overrides:

EnvironmentVariableSetup.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

EnvironmentVariableSetup.validate()

variableName

public String variableName()

Get the variableName property: The name of the environment variable.

Returns:

the variableName value.

variableValue

public String variableValue()

Get the variableValue property: The value of the environment variable.

Returns:

the variableValue value.

withVariableName

public EnvironmentVariableSetup withVariableName(String variableName)

Set the variableName property: The name of the environment variable.

Parameters:

variableName - the variableName value to set.

Returns:

the EnvironmentVariableSetup object itself.

withVariableValue

public EnvironmentVariableSetup withVariableValue(String variableValue)

Set the variableValue property: The value of the environment variable.

Parameters:

variableValue - the variableValue value to set.

Returns:

the EnvironmentVariableSetup object itself.

Applies to