- All Implemented Interfaces:
com.azure.json.JsonSerializable<TestKeys>
public final class TestKeys
extends Object
implements com.azure.json.JsonSerializable<TestKeys>
Test keys payload.
-
Constructor Summary
Constructors
Creates an instance of TestKeys class.
-
Method Summary
Get the enabled property: Indicates whether the test endpoint feature enabled or not.
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of TestKeys from the JsonReader.
Get the primaryKey property: Primary key.
Get the primaryTestEndpoint property: Primary test endpoint.
Get the secondaryKey property: Secondary key.
Get the secondaryTestEndpoint property: Secondary test endpoint.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Set the enabled property: Indicates whether the test endpoint feature enabled or not.
Set the primaryKey property: Primary key.
Set the primaryTestEndpoint property: Primary test endpoint.
Set the secondaryKey property: Secondary key.
Set the secondaryTestEndpoint property: Secondary test endpoint.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TestKeys
public TestKeys()
Creates an instance of TestKeys class.
-
Method Details
-
primaryKey
Get the primaryKey property: Primary key.
- Returns:
- the primaryKey value.
-
withPrimaryKey
Set the primaryKey property: Primary key.
- Parameters:
primaryKey - the primaryKey value to set.
- Returns:
- the TestKeys object itself.
-
secondaryKey
Get the secondaryKey property: Secondary key.
- Returns:
- the secondaryKey value.
-
withSecondaryKey
Set the secondaryKey property: Secondary key.
- Parameters:
secondaryKey - the secondaryKey value to set.
- Returns:
- the TestKeys object itself.
-
primaryTestEndpoint
public String primaryTestEndpoint()
Get the primaryTestEndpoint property: Primary test endpoint.
- Returns:
- the primaryTestEndpoint value.
-
withPrimaryTestEndpoint
Set the primaryTestEndpoint property: Primary test endpoint.
- Parameters:
primaryTestEndpoint - the primaryTestEndpoint value to set.
- Returns:
- the TestKeys object itself.
-
secondaryTestEndpoint
public String secondaryTestEndpoint()
Get the secondaryTestEndpoint property: Secondary test endpoint.
- Returns:
- the secondaryTestEndpoint value.
-
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.
-
enabled
Get the enabled property: Indicates whether the test endpoint feature enabled or not.
- Returns:
- the enabled value.
-
withEnabled
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.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
toJson
public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter)
throws IOException
- Specified by:
toJson in interface com.azure.json.JsonSerializable<TestKeys>
- Throws:
IOException
-
fromJson
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.