public final class MxRecord extends Object
| Constructor and Description |
|---|
MxRecord() |
| Modifier and Type | Method and Description |
|---|---|
String |
exchange()
Get the exchange property: The domain name of the mail host for this MX record.
|
Integer |
preference()
Get the preference property: The preference value for this MX record.
|
void |
validate()
Validates the instance.
|
MxRecord |
withExchange(String exchange)
Set the exchange property: The domain name of the mail host for this MX record.
|
MxRecord |
withPreference(Integer preference)
Set the preference property: The preference value for this MX record.
|
public Integer preference()
public MxRecord withPreference(Integer preference)
preference - the preference value to set.public String exchange()
public MxRecord withExchange(String exchange)
exchange - the exchange value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.