TestKeys Class

  • java.lang.Object
    • com.azure.resourcemanager.appplatform.models.TestKeys

Implements

public final class TestKeys
implements JsonSerializable<TestKeys>

Test keys payload.

Constructor Summary

Constructor Description
TestKeys()

Creates an instance of TestKeys class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Indicates whether the test endpoint feature enabled or not.

static TestKeys fromJson(JsonReader jsonReader)

Reads an instance of TestKeys from the JsonReader.

String primaryKey()

Get the primaryKey property: Primary key.

String primaryTestEndpoint()

Get the primaryTestEndpoint property: Primary test endpoint.

String secondaryKey()

Get the secondaryKey property: Secondary key.

String secondaryTestEndpoint()

Get the secondaryTestEndpoint property: Secondary test endpoint.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TestKeys withEnabled(Boolean enabled)

Set the enabled property: Indicates whether the test endpoint feature enabled or not.

TestKeys withPrimaryKey(String primaryKey)

Set the primaryKey property: Primary key.

TestKeys withPrimaryTestEndpoint(String primaryTestEndpoint)

Set the primaryTestEndpoint property: Primary test endpoint.

TestKeys withSecondaryKey(String secondaryKey)

Set the secondaryKey property: Secondary key.

TestKeys withSecondaryTestEndpoint(String secondaryTestEndpoint)

Set the secondaryTestEndpoint property: Secondary test endpoint.

Methods inherited from java.lang.Object

Constructor Details

TestKeys

public TestKeys()

Creates an instance of TestKeys class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Indicates whether the test endpoint feature enabled or not.

Returns:

the enabled value.

fromJson

public static TestKeys fromJson(JsonReader jsonReader)

Reads an instance of TestKeys from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

primaryKey

public String primaryKey()

Get the primaryKey property: Primary key.

Returns:

the primaryKey value.

primaryTestEndpoint

public String primaryTestEndpoint()

Get the primaryTestEndpoint property: Primary test endpoint.

Returns:

the primaryTestEndpoint value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: Secondary key.

Returns:

the secondaryKey value.

secondaryTestEndpoint

public String secondaryTestEndpoint()

Get the secondaryTestEndpoint property: Secondary test endpoint.

Returns:

the secondaryTestEndpoint value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public TestKeys withEnabled(Boolean enabled)

Set the enabled property: Indicates whether the test endpoint feature enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the TestKeys object itself.

withPrimaryKey

public TestKeys withPrimaryKey(String primaryKey)

Set the primaryKey property: Primary key.

Parameters:

primaryKey - the primaryKey value to set.

Returns:

the TestKeys object itself.

withPrimaryTestEndpoint

public TestKeys withPrimaryTestEndpoint(String primaryTestEndpoint)

Set the primaryTestEndpoint property: Primary test endpoint.

Parameters:

primaryTestEndpoint - the primaryTestEndpoint value to set.

Returns:

the TestKeys object itself.

withSecondaryKey

public TestKeys withSecondaryKey(String secondaryKey)

Set the secondaryKey property: Secondary key.

Parameters:

secondaryKey - the secondaryKey value to set.

Returns:

the TestKeys object itself.

withSecondaryTestEndpoint

public TestKeys withSecondaryTestEndpoint(String secondaryTestEndpoint)

Set the secondaryTestEndpoint property: Secondary test endpoint.

Parameters:

secondaryTestEndpoint - the secondaryTestEndpoint value to set.

Returns:

the TestKeys object itself.

Applies to