TestSecret Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.TestSecret

Implements

public final class TestSecret
implements JsonSerializable<TestSecret>

Secret.

Constructor Summary

Constructor Description
TestSecret()

Creates an instance of TestSecret class.

Method Summary

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

Reads an instance of TestSecret from the JsonReader.

SecretType getType()

Get the type property: Type of secret.

String getValue()

Get the value property: The value of the secret for the respective type.

TestSecret setType(SecretType type)

Set the type property: Type of secret.

TestSecret setValue(String value)

Set the value property: The value of the secret for the respective type.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestSecret

public TestSecret()

Creates an instance of TestSecret class.

Method Details

fromJson

public static TestSecret fromJson(JsonReader jsonReader)

Reads an instance of TestSecret from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getType

public SecretType getType()

Get the type property: Type of secret.

Returns:

the type value.

getValue

public String getValue()

Get the value property: The value of the secret for the respective type.

Returns:

the value value.

setType

public TestSecret setType(SecretType type)

Set the type property: Type of secret.

Parameters:

type - the type value to set.

Returns:

the TestSecret object itself.

setValue

public TestSecret setValue(String value)

Set the value property: The value of the secret for the respective type.

Parameters:

value - the value value to set.

Returns:

the TestSecret object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to