Package com.dnsimple.request
Class ZoneRecordOptions
java.lang.Object
com.dnsimple.request.ZoneRecordOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic ZoneRecordOptionspriority(int priority) Set a prioritySet the regions where the record will be present.ttl(int ttl) Set a TTL (time to live)
-
Method Details
-
of
- Parameters:
name- the name of the record. Use an empty string to create a record for the apex.type- the type of the recordcontent- the content of the record
-
ttl
Set a TTL (time to live) -
priority
Set a priority -
regions
Set the regions where the record will be present. More info at https://developer.dnsimple.com/v2/zones/records/#zone-record-regions -
asPayload
- Returns:
- a map with this object's attributes and prunes the `regions` attribute if it's empty
-