Class CommunicationServiceKeysInner

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 Details

    • CommunicationServiceKeysInner

      public CommunicationServiceKeysInner()
  • Method Details

    • primaryKey

      public String primaryKey()
      Get the primaryKey property: The primary access key.
      Returns:
      the primaryKey value.
    • 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.
    • secondaryKey

      public String secondaryKey()
      Get the secondaryKey property: The secondary access key.
      Returns:
      the secondaryKey value.
    • 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.
    • primaryConnectionString

      public String primaryConnectionString()
      Get the primaryConnectionString property: CommunicationService connection string constructed via the primaryKey.
      Returns:
      the primaryConnectionString value.
    • 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.
    • secondaryConnectionString

      public String secondaryConnectionString()
      Get the secondaryConnectionString property: CommunicationService connection string constructed via the secondaryKey.
      Returns:
      the secondaryConnectionString value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.