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 Summary
ConstructorsConstructorDescriptionCreates an instance of RecipientsContractProperties class. -
Method Summary
Modifier and TypeMethodDescriptionemails()Get the emails property: List of Emails subscribed for the notification.static RecipientsContractPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecipientsContractProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) users()Get the users property: List of Users subscribed for the notification.voidvalidate()Validates the instance.withEmails(List<String> emails) Set the emails property: List of Emails subscribed for the notification.Set the users property: List of Users subscribed for the notification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecipientsContractProperties
public RecipientsContractProperties()Creates an instance of RecipientsContractProperties class.
-
-
Method Details
-
emails
Get the emails property: List of Emails subscribed for the notification.- Returns:
- the emails value.
-
withEmails
Set the emails property: List of Emails subscribed for the notification.- Parameters:
emails- the emails value to set.- Returns:
- the RecipientsContractProperties object itself.
-
users
Get the users property: List of Users subscribed for the notification.- Returns:
- the users value.
-
withUsers
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
- Specified by:
toJsonin interfacecom.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.
-