TestCertificate Class

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

Implements

public final class TestCertificate
implements JsonSerializable<TestCertificate>

Certificates metadata.

Constructor Summary

Constructor Description
TestCertificate()

Creates an instance of TestCertificate class.

Method Summary

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

Reads an instance of TestCertificate from the JsonReader.

String getName()

Get the name property: Name of the certificate.

CertificateType getType()

Get the type property: Type of certificate.

String getValue()

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

TestCertificate setName(String name)

Set the name property: Name of the certificate.

TestCertificate setType(CertificateType type)

Set the type property: Type of certificate.

TestCertificate setValue(String value)

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

TestCertificate

public TestCertificate()

Creates an instance of TestCertificate class.

Method Details

fromJson

public static TestCertificate fromJson(JsonReader jsonReader)

Reads an instance of TestCertificate from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getName

public String getName()

Get the name property: Name of the certificate.

Returns:

the name value.

getType

public CertificateType getType()

Get the type property: Type of certificate.

Returns:

the type value.

getValue

public String getValue()

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

Returns:

the value value.

setName

public TestCertificate setName(String name)

Set the name property: Name of the certificate.

Parameters:

name - the name value to set.

Returns:

the TestCertificate object itself.

setType

public TestCertificate setType(CertificateType type)

Set the type property: Type of certificate.

Parameters:

type - the type value to set.

Returns:

the TestCertificate object itself.

setValue

public TestCertificate setValue(String value)

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

Parameters:

value - the value value to set.

Returns:

the TestCertificate object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to