java.lang.Object
com.azure.resourcemanager.apimanagement.fluent.models.GatewayKeysContractInner
-
Constructor Summary
Constructors
Creates an instance of GatewayKeysContractInner class.
-
Method Summary
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of GatewayKeysContractInner from the JsonReader.
Get the primary property: Primary gateway key.
Get the secondary property: Secondary gateway key.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Set the primary property: Primary gateway key.
Set the secondary property: Secondary gateway key.
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
-
GatewayKeysContractInner
public GatewayKeysContractInner()
Creates an instance of GatewayKeysContractInner class.
-
Method Details
-
primary
Get the primary property: Primary gateway key.
- Returns:
- the primary value.
-
withPrimary
Set the primary property: Primary gateway key.
- Parameters:
primary - the primary value to set.
- Returns:
- the GatewayKeysContractInner object itself.
-
secondary
Get the secondary property: Secondary gateway key.
- Returns:
- the secondary value.
-
withSecondary
Set the secondary property: Secondary gateway key.
- Parameters:
secondary - the secondary value to set.
- Returns:
- the GatewayKeysContractInner object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
-
fromJson
Reads an instance of GatewayKeysContractInner from the JsonReader.
- Parameters:
jsonReader - The JsonReader being read.
- Returns:
- An instance of GatewayKeysContractInner 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 GatewayKeysContractInner.