Package com.dnsimple.request
Class ZoneRecordOptions
- java.lang.Object
-
- com.dnsimple.request.ZoneRecordOptions
-
public class ZoneRecordOptions extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>asPayload()static ZoneRecordOptionsof(java.lang.String name, java.lang.String type, java.lang.String content)ZoneRecordOptionspriority(int priority)Set a priorityZoneRecordOptionsregions(java.lang.String... regions)Set the regions where the record will be present.ZoneRecordOptionsttl(int ttl)Set a TTL (time to live)
-
-
-
Method Detail
-
of
public static ZoneRecordOptions of(java.lang.String name, java.lang.String type, java.lang.String content)
- 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
public ZoneRecordOptions ttl(int ttl)
Set a TTL (time to live)
-
priority
public ZoneRecordOptions priority(int priority)
Set a priority
-
regions
public ZoneRecordOptions regions(java.lang.String... regions)
Set the regions where the record will be present. More info at https://developer.dnsimple.com/v2/zones/records/#zone-record-regions
-
asPayload
public java.util.Map<java.lang.String,java.lang.Object> asPayload()
- Returns:
- a map with this object's attributes and prunes the `regions` attribute if it's empty
-
-