MxRecord Class
- java.
lang. Object - com.
azure. resourcemanager. privatedns. models. MxRecord
- com.
Implements
public final class MxRecord
implements JsonSerializable<MxRecord>
An MX record.
Constructor Summary
Constructor | Description |
---|---|
MxRecord() |
Creates an instance of Mx |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
exchange()
Get the exchange property: The domain name of the mail host for this MX record. |
static
Mx |
fromJson(JsonReader jsonReader)
Reads an instance of Mx |
Integer |
preference()
Get the preference property: The preference value for this MX record. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Mx |
withExchange(String exchange)
Set the exchange property: The domain name of the mail host for this MX record. |
Mx |
withPreference(Integer preference)
Set the preference property: The preference value for this MX record. |
Methods inherited from java.lang.Object
Constructor Details
MxRecord
public MxRecord()
Creates an instance of MxRecord class.
Method Details
exchange
public String exchange()
Get the exchange property: The domain name of the mail host for this MX record.
Returns:
fromJson
public static MxRecord fromJson(JsonReader jsonReader)
Reads an instance of MxRecord from the JsonReader.
Parameters:
Returns:
Throws:
preference
public Integer preference()
Get the preference property: The preference value for this MX record.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExchange
public MxRecord withExchange(String exchange)
Set the exchange property: The domain name of the mail host for this MX record.
Parameters:
Returns:
withPreference
public MxRecord withPreference(Integer preference)
Set the preference property: The preference value for this MX record.
Parameters:
Returns:
Applies to
Azure SDK for Java