Class RecipientsContractProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.models.RecipientsContractProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<RecipientsContractProperties>

public final class RecipientsContractProperties extends Object implements com.azure.json.JsonSerializable<RecipientsContractProperties>
Notification Parameter contract.
  • Constructor Details

    • RecipientsContractProperties

      public RecipientsContractProperties()
      Creates an instance of RecipientsContractProperties class.
  • Method Details

    • emails

      public List<String> emails()
      Get the emails property: List of Emails subscribed for the notification.
      Returns:
      the emails value.
    • withEmails

      public RecipientsContractProperties withEmails(List<String> emails)
      Set the emails property: List of Emails subscribed for the notification.
      Parameters:
      emails - the emails value to set.
      Returns:
      the RecipientsContractProperties object itself.
    • users

      public List<String> users()
      Get the users property: List of Users subscribed for the notification.
      Returns:
      the users value.
    • withUsers

      public RecipientsContractProperties withUsers(List<String> users)
      Set the users property: List of Users subscribed for the notification.
      Parameters:
      users - the users value to set.
      Returns:
      the RecipientsContractProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RecipientsContractProperties>
      Throws:
      IOException
    • fromJson

      public static RecipientsContractProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RecipientsContractProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RecipientsContractProperties 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 RecipientsContractProperties.