Class MxRecord
java.lang.Object
com.azure.resourcemanager.privatedns.models.MxRecord
An MX record.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexchange()Get the exchange property: The domain name of the mail host for this MX record.Get the preference property: The preference value for this MX record.voidvalidate()Validates the instance.withExchange(String exchange) Set the exchange property: The domain name of the mail host for this MX record.withPreference(Integer preference) Set the preference property: The preference value for this MX record.
-
Constructor Details
-
MxRecord
public MxRecord()Creates an instance of MxRecord class.
-
-
Method Details
-
preference
Get the preference property: The preference value for this MX record.- Returns:
- the preference value.
-
withPreference
Set the preference property: The preference value for this MX record.- Parameters:
preference- the preference value to set.- Returns:
- the MxRecord object itself.
-
exchange
Get the exchange property: The domain name of the mail host for this MX record.- Returns:
- the exchange value.
-
withExchange
Set the exchange property: The domain name of the mail host for this MX record.- Parameters:
exchange- the exchange value to set.- Returns:
- the MxRecord object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-