CommunicationServiceKeysInner Class
- java.
lang. Object - com.
azure. resourcemanager. communication. fluent. models. CommunicationServiceKeysInner
- com.
Implements
public final class CommunicationServiceKeysInner
implements JsonSerializable<CommunicationServiceKeysInner>
A class representing the access keys of a CommunicationService.
Constructor Summary
| Constructor | Description |
|---|---|
| CommunicationServiceKeysInner() |
Creates an instance of Communication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Communication |
fromJson(JsonReader jsonReader)
Reads an instance of Communication |
| String |
primaryConnectionString()
Get the primary |
| String |
primaryKey()
Get the primary |
| String |
secondaryConnectionString()
Get the secondary |
| String |
secondaryKey()
Get the secondary |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Communication |
withPrimaryConnectionString(String primaryConnectionString)
Set the primary |
|
Communication |
withPrimaryKey(String primaryKey)
Set the primary |
|
Communication |
withSecondaryConnectionString(String secondaryConnectionString)
Set the secondary |
|
Communication |
withSecondaryKey(String secondaryKey)
Set the secondary |
Methods inherited from java.lang.Object
Constructor Details
CommunicationServiceKeysInner
public CommunicationServiceKeysInner()
Creates an instance of CommunicationServiceKeysInner class.
Method Details
fromJson
public static CommunicationServiceKeysInner fromJson(JsonReader jsonReader)
Reads an instance of CommunicationServiceKeysInner from the JsonReader.
Parameters:
Returns:
Throws:
primaryConnectionString
public String primaryConnectionString()
Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
Returns:
primaryKey
public String primaryKey()
Get the primaryKey property: The primary access key.
Returns:
secondaryConnectionString
public String secondaryConnectionString()
Get the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.
Returns:
secondaryKey
public String secondaryKey()
Get the secondaryKey property: The secondary access key.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPrimaryConnectionString
public CommunicationServiceKeysInner withPrimaryConnectionString(String primaryConnectionString)
Set the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
Parameters:
Returns:
withPrimaryKey
public CommunicationServiceKeysInner withPrimaryKey(String primaryKey)
Set the primaryKey property: The primary access key.
Parameters:
Returns:
withSecondaryConnectionString
public CommunicationServiceKeysInner withSecondaryConnectionString(String secondaryConnectionString)
Set the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.
Parameters:
Returns:
withSecondaryKey
public CommunicationServiceKeysInner withSecondaryKey(String secondaryKey)
Set the secondaryKey property: The secondary access key.
Parameters:
Returns: