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