Class SubscriptionKeysContractInner
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.fluent.models.SubscriptionKeysContractInner
-
public final class SubscriptionKeysContractInner extends Object
Subscription keys.
-
-
Constructor Summary
Constructors Constructor Description SubscriptionKeysContractInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
primaryKey()
Get the primaryKey property: Subscription primary key.String
secondaryKey()
Get the secondaryKey property: Subscription secondary key.void
validate()
Validates the instance.SubscriptionKeysContractInner
withPrimaryKey(String primaryKey)
Set the primaryKey property: Subscription primary key.SubscriptionKeysContractInner
withSecondaryKey(String secondaryKey)
Set the secondaryKey property: Subscription secondary key.
-
-
-
Method Detail
-
primaryKey
public String primaryKey()
Get the primaryKey property: Subscription primary key.- Returns:
- the primaryKey value.
-
withPrimaryKey
public SubscriptionKeysContractInner withPrimaryKey(String primaryKey)
Set the primaryKey property: Subscription primary key.- Parameters:
primaryKey
- the primaryKey value to set.- Returns:
- the SubscriptionKeysContractInner object itself.
-
secondaryKey
public String secondaryKey()
Get the secondaryKey property: Subscription secondary key.- Returns:
- the secondaryKey value.
-
withSecondaryKey
public SubscriptionKeysContractInner withSecondaryKey(String secondaryKey)
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.
-
-