Class SrvType
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.dns.domain.ResourceRecord
com.softlayer.api.service.dns.domain.resourcerecord.SrvType
@ApiType("SoftLayer_Dns_Domain_ResourceRecord_SrvType") public class SrvType extends ResourceRecord
SoftLayer_Dns_Domain_ResourceRecord_SrvType is a SoftLayer_Dns_Domain_ResourceRecord object whose ''type'' property is set to "srv" and defines a DNS SRV record on a SoftLayer hosted domain.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SrvType.Mask
static interface
SrvType.Service
The SoftLayer_Dns_Domain_ResourceRecord_SrvType service controls the creation, modification, and deletion of SRV records within a domain hosted on SoftLayer's DNS servers.static interface
SrvType.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Long
port
The TCP or UDP port on which the service is to be found.protected boolean
portSpecified
protected Long
priority
The priority of the target host, lower value means more preferred.protected boolean
prioritySpecified
protected String
protocol
The protocol of the desired service; this is usually either TCP or UDP.protected boolean
protocolSpecified
protected String
service
The symbolic name of the desired serviceprotected boolean
serviceSpecified
protected Long
weight
A relative weight for records with the same priority.protected boolean
weightSpecified
Fields inherited from class com.softlayer.api.service.dns.domain.ResourceRecord
data, dataSpecified, domain, domainId, domainIdSpecified, expire, expireSpecified, host, hostSpecified, id, idSpecified, minimum, minimumSpecified, mxPriority, mxPrioritySpecified, refresh, refreshSpecified, responsiblePerson, responsiblePersonSpecified, retry, retrySpecified, ttl, ttlSpecified, type, typeSpecified
-
Constructor Summary
Constructors Constructor Description SrvType()
-
Method Summary
Modifier and Type Method Description SrvType.Service
asService(ApiClient client)
Long
getPort()
Long
getPriority()
String
getProtocol()
String
getService()
Long
getWeight()
boolean
isPortSpecified()
boolean
isPrioritySpecified()
boolean
isProtocolSpecified()
boolean
isServiceSpecified()
boolean
isWeightSpecified()
static SrvType.Service
service(ApiClient client)
static SrvType.Service
service(ApiClient client, Long id)
void
setPort(Long port)
void
setPriority(Long priority)
void
setProtocol(String protocol)
void
setService(String service)
void
setWeight(Long weight)
void
unsetPort()
void
unsetPriority()
void
unsetProtocol()
void
unsetService()
void
unsetWeight()
Methods inherited from class com.softlayer.api.service.dns.domain.ResourceRecord
getData, getDomain, getDomainId, getExpire, getHost, getId, getMinimum, getMxPriority, getRefresh, getResponsiblePerson, getRetry, getTtl, getType, isDataSpecified, isDomainIdSpecified, isExpireSpecified, isHostSpecified, isIdSpecified, isMinimumSpecified, isMxPrioritySpecified, isRefreshSpecified, isResponsiblePersonSpecified, isRetrySpecified, isTtlSpecified, isTypeSpecified, setData, setDomain, setDomainId, setExpire, setHost, setId, setMinimum, setMxPriority, setRefresh, setResponsiblePerson, setRetry, setTtl, setType, unsetData, unsetDomainId, unsetExpire, unsetHost, unsetId, unsetMinimum, unsetMxPriority, unsetRefresh, unsetResponsiblePerson, unsetRetry, unsetTtl, unsetType
-
Field Details
-
port
The TCP or UDP port on which the service is to be found. -
portSpecified
protected boolean portSpecified -
priority
The priority of the target host, lower value means more preferred. -
prioritySpecified
protected boolean prioritySpecified -
protocol
The protocol of the desired service; this is usually either TCP or UDP. -
protocolSpecified
protected boolean protocolSpecified -
service
The symbolic name of the desired service -
serviceSpecified
protected boolean serviceSpecified -
weight
A relative weight for records with the same priority. -
weightSpecified
protected boolean weightSpecified
-
-
Constructor Details
-
SrvType
public SrvType()
-
-
Method Details
-
getPort
-
setPort
-
isPortSpecified
public boolean isPortSpecified() -
unsetPort
public void unsetPort() -
getPriority
-
setPriority
-
isPrioritySpecified
public boolean isPrioritySpecified() -
unsetPriority
public void unsetPriority() -
getProtocol
-
setProtocol
-
isProtocolSpecified
public boolean isProtocolSpecified() -
unsetProtocol
public void unsetProtocol() -
getService
-
setService
-
isServiceSpecified
public boolean isServiceSpecified() -
unsetService
public void unsetService() -
getWeight
-
setWeight
-
isWeightSpecified
public boolean isWeightSpecified() -
unsetWeight
public void unsetWeight() -
asService
- Overrides:
asService
in classResourceRecord
-
service
-
service
-