Interface MxType.Service
- All Superinterfaces:
Maskable
,ResourceRecord.Service
,ResultLimitable
,Service
- Enclosing class:
- MxType
@ApiService("SoftLayer_Dns_Domain_ResourceRecord_MxType") public static interface MxType.Service extends ResourceRecord.Service
The SoftLayer_Dns_Domain_ResourceRecord_MxType service controls the creation, modification, and deletion of MX records within a domain hosted on SoftLayer's DNS servers. It exists separately from the SoftLayer_Dns_Domain_ResourceRecord to provide control for MX priority in addition to host, data, and time-to-live.
-
Method Summary
Modifier and Type Method Description MxType.ServiceAsync
asAsync()
Get an async version of this serviceMxType
createObject(MxType templateObject)
createObject creates a new MX record.List<ResourceRecord>
createObjectsForMxType(List<ResourceRecord> templateObjects)
Create multiple MX records on a domain.Boolean
deleteObjectForMxType()
Delete a domain's MX record.Boolean
deleteObjectsForMxType(List<MxType> templateObjects)
Remove multiple MX records from a domain.Boolean
editObject(MxType templateObject)
editObject edits an existing MX resource record.Boolean
editObjectsForMxType(List<MxType> templateObjects)
Edit multiple MX records on a domain.MxType
getObjectForMxType()
getObject retrieves the SoftLayer_Dns_Domain_ResourceRecord_MxType object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Dns_Domain_ResourceRecord_MxType service.void
setMask(MxType.Mask mask)
MxType.Mask
withMask()
Use the existing mask on this service or create it if not presentMxType.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return itMethods inherited from interface com.softlayer.api.service.dns.domain.ResourceRecord.Service
createObject, createObjects, deleteObject, deleteObjects, editObject, editObjects, getDomain, getObject, setMask
Methods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
Method Details
-
asAsync
MxType.ServiceAsync asAsync()Description copied from interface:Service
Get an async version of this service- Specified by:
asAsync
in interfaceResourceRecord.Service
- Specified by:
asAsync
in interfaceService
-
withNewMask
MxType.Mask withNewMask()Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
- Specified by:
withNewMask
in interfaceResourceRecord.Service
-
withMask
MxType.Mask withMask()Description copied from interface:Maskable
Use the existing mask on this service or create it if not present- Specified by:
withMask
in interfaceMaskable
- Specified by:
withMask
in interfaceResourceRecord.Service
-
setMask
-
createObject
createObject creates a new MX record. The ''host'' property of the templateObject parameter is scrubbed to remove all non-alpha numeric characters except for "@", "_", ".", "*", and "-". The ''data'' property of the templateObject parameter is scrubbed to remove all non-alphanumeric characters for "." and "-". Creating an MX record updates the serial number of the domain the resource record is associated with. -
createObjectsForMxType
@ApiMethod("createObjects") List<ResourceRecord> createObjectsForMxType(List<ResourceRecord> templateObjects)Create multiple MX records on a domain. This follows the same logic as ''createObject'. The serial number of the domain associated with this MX record is updated upon creation.
''createObjects'' returns Boolean ''true'' on successful creation or ''false'' if it was unable to create a resource record. -
deleteObjectForMxType
Delete a domain's MX record. '''This cannot be undone.''' Be wary of running this method. If you remove a resource record in error you will need to re-create it by creating a new SoftLayer_Dns_Domain_ResourceRecord_MxType object. The serial number of the domain associated with this MX record is updated upon deletion.
''deleteObject'' returns Boolean ''true'' on successful deletion or ''false'' if it was unable to remove a resource record. -
deleteObjectsForMxType
Remove multiple MX records from a domain. This follows the same logic as ''deleteObject'' and '''cannot be undone'''. The serial number of the domain associated with this MX record is updated upon deletion.
''deleteObjects'' returns Boolean ''true'' on successful deletion or ''false'' if it was unable to remove a resource record. -
editObject
editObject edits an existing MX resource record. The ''host'' property of the templateObject parameter is scrubbed to remove all non-alpha numeric characters except for "@", "_", ".", "*", and "-". The ''data'' property of the templateObject parameter is scrubbed to remove all non-alphanumeric characters for "." and "-". Editing an MX record updates the serial number of the domain the record is associated with.
''editObject'' returns Boolean ''true'' on a successful edit or ''false'' if it was unable to edit the resource record. -
editObjectsForMxType
Edit multiple MX records on a domain. This follows the same logic as ''createObject'. The serial number of the domain associated with this MX record is updated upon creation.
''createObjects'' returns Boolean ''true'' on successful creation or ''false'' if it was unable to create a resource record. -
getObjectForMxType
getObject retrieves the SoftLayer_Dns_Domain_ResourceRecord_MxType object whose ID number corresponds to the ID number of the init parameter passed to the SoftLayer_Dns_Domain_ResourceRecord_MxType service. You can only retrieve resource records belonging to domains that are assigned to your SoftLayer account.
-