Class RecipientsContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.RecipientsContractProperties
-
public final class RecipientsContractProperties extends Object
Notification Parameter contract.
-
-
Constructor Summary
Constructors Constructor Description RecipientsContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
emails()
Get the emails property: List of Emails subscribed for the notification.List<String>
users()
Get the users property: List of Users subscribed for the notification.void
validate()
Validates the instance.RecipientsContractProperties
withEmails(List<String> emails)
Set the emails property: List of Emails subscribed for the notification.RecipientsContractProperties
withUsers(List<String> users)
Set the users property: List of Users subscribed for the notification.
-
-
-
Method Detail
-
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.
-
-