java.lang.Object
com.azure.resourcemanager.communication.fluent.models.CommunicationServiceKeysInner
public final class CommunicationServiceKeysInner
extends Object
A class representing the access keys of a CommunicationService.
-
Constructor Summary
Constructors
-
Method Summary
Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
Get the primaryKey property: The primary access key.
Get the secondaryConnectionString property: CommunicationService connection string constructed via the
secondaryKey.
Get the secondaryKey property: The secondary access key.
void
Set the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
Set the primaryKey property: The primary access key.
Set the secondaryConnectionString property: CommunicationService connection string constructed via the
secondaryKey.
Set the secondaryKey property: The secondary access key.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CommunicationServiceKeysInner
public CommunicationServiceKeysInner()
-
Method Details
-
primaryKey
Get the primaryKey property: The primary access key.
- Returns:
- the primaryKey value.
-
withPrimaryKey
Set the primaryKey property: The primary access key.
- Parameters:
primaryKey
- the primaryKey value to set.
- Returns:
- the CommunicationServiceKeysInner object itself.
-
secondaryKey
Get the secondaryKey property: The secondary access key.
- Returns:
- the secondaryKey value.
-
withSecondaryKey
Set the secondaryKey property: The secondary access key.
- Parameters:
secondaryKey
- the secondaryKey value to set.
- Returns:
- the CommunicationServiceKeysInner object itself.
-
primaryConnectionString
public String primaryConnectionString()
Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
- Returns:
- the primaryConnectionString value.
-
withPrimaryConnectionString
Set the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
- Parameters:
primaryConnectionString
- the primaryConnectionString value to set.
- Returns:
- the CommunicationServiceKeysInner object itself.
-
secondaryConnectionString
public String secondaryConnectionString()
Get the secondaryConnectionString property: CommunicationService connection string constructed via the
secondaryKey.
- Returns:
- the secondaryConnectionString value.
-
withSecondaryConnectionString
Set the secondaryConnectionString property: CommunicationService connection string constructed via the
secondaryKey.
- Parameters:
secondaryConnectionString
- the secondaryConnectionString value to set.
- Returns:
- the CommunicationServiceKeysInner object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.