CommunicationServiceKeysInner Class

  • java.lang.Object
    • com.azure.resourcemanager.communication.fluent.models.CommunicationServiceKeysInner

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 CommunicationServiceKeysInner class.

Method Summary

Modifier and Type Method and Description
static CommunicationServiceKeysInner fromJson(JsonReader jsonReader)

Reads an instance of CommunicationServiceKeysInner from the JsonReader.

String primaryConnectionString()

Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.

String primaryKey()

Get the primaryKey property: The primary access key.

String secondaryConnectionString()

Get the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.

String secondaryKey()

Get the secondaryKey property: The secondary access key.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CommunicationServiceKeysInner withPrimaryConnectionString(String primaryConnectionString)

Set the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.

CommunicationServiceKeysInner withPrimaryKey(String primaryKey)

Set the primaryKey property: The primary access key.

CommunicationServiceKeysInner withSecondaryConnectionString(String secondaryConnectionString)

Set the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.

CommunicationServiceKeysInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: The secondary access key.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of CommunicationServiceKeysInner 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 CommunicationServiceKeysInner.

primaryConnectionString

public String primaryConnectionString()

Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.

Returns:

the primaryConnectionString value.

primaryKey

public String primaryKey()

Get the primaryKey property: The primary access key.

Returns:

the primaryKey value.

secondaryConnectionString

public String secondaryConnectionString()

Get the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.

Returns:

the secondaryConnectionString value.

secondaryKey

public String secondaryKey()

Get the secondaryKey property: The secondary access key.

Returns:

the secondaryKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

primaryConnectionString - the primaryConnectionString value to set.

Returns:

the CommunicationServiceKeysInner object itself.

withPrimaryKey

public CommunicationServiceKeysInner withPrimaryKey(String primaryKey)

Set the primaryKey property: The primary access key.

Parameters:

primaryKey - the primaryKey value to set.

Returns:

the CommunicationServiceKeysInner object itself.

withSecondaryConnectionString

public CommunicationServiceKeysInner withSecondaryConnectionString(String secondaryConnectionString)

Set the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.

Parameters:

secondaryConnectionString - the secondaryConnectionString value to set.

Returns:

the CommunicationServiceKeysInner object itself.

withSecondaryKey

public CommunicationServiceKeysInner withSecondaryKey(String secondaryKey)

Set the secondaryKey property: The secondary access key.

Parameters:

secondaryKey - the secondaryKey value to set.

Returns:

the CommunicationServiceKeysInner object itself.

Applies to