Package com.dnsimple.endpoints
Class Domains
- java.lang.Object
-
- com.dnsimple.endpoints.Domains
-
public class Domains extends java.lang.ObjectProvides access to the DNSimple Domains API.
-
-
Constructor Summary
Constructors Constructor Description Domains(HttpEndpointClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EmptyResponseacceptPush(java.lang.Number account, java.lang.Number push, java.lang.Number contactId)Accept a push.SimpleResponse<Collaborator>addCollaborator(java.lang.Number account, java.lang.String domain, java.lang.String email)Add a collaborator to a domain.SimpleResponse<DelegationSignerRecord>createDelegationSignerRecord(java.lang.Number account, java.lang.String domain, DSRecordOptions options)Create a delegation signer record for a domain.SimpleResponse<Domain>createDomain(java.lang.Number account, java.lang.String name)Create a domain in an account.SimpleResponse<EmailForward>createEmailForward(java.lang.Number account, java.lang.String domain, java.lang.String from, java.lang.String to)Create an email forward for a domain.EmptyResponsedeleteDelegationSignerRecord(java.lang.Number account, java.lang.String domain, java.lang.Number dsRecordId)Delete a delegation signer record from a domain.EmptyResponsedeleteDomain(java.lang.Number account, java.lang.String domain)Delete a domain from an account.EmptyResponsedeleteEmailForward(java.lang.Number account, java.lang.String domain, java.lang.Number emailForward)Delete an email forward from a domain.EmptyResponsedisableDnssec(java.lang.Number account, java.lang.String domain)Disables DNSSEC on the domain.SimpleResponse<Dnssec>enableDnssec(java.lang.Number account, java.lang.String domain)Enables DNSSEC on the domain.SimpleResponse<DelegationSignerRecord>getDelegationSignerRecord(java.lang.Number account, java.lang.String domain, java.lang.Number dsRecordId)Get a delegation signer record for a domain using the delegation signer records's ID.SimpleResponse<Dnssec>getDnssec(java.lang.Number account, java.lang.String domain)Get DNSSEC status of the domain.SimpleResponse<Domain>getDomain(java.lang.Number account, java.lang.String domain)Get a specific domain associated to an account using the domain's name or ID.SimpleResponse<EmailForward>getEmailForward(java.lang.Number account, java.lang.String domain, java.lang.Number emailForward)Get a specific email forward associated to a domain using the email forward's ID.SimpleResponse<DomainPush>initiatePush(java.lang.Number account, java.lang.String domain, java.lang.String newAccountEmail)Initiate a push.PaginatedResponse<Collaborator>listCollaborators(java.lang.Number account, java.lang.String domain)Lists the collaborators in the domain.PaginatedResponse<Collaborator>listCollaborators(java.lang.Number account, java.lang.String domain, ListOptions options)Lists the collaborators in the account.PaginatedResponse<DelegationSignerRecord>listDelegationSignerRecords(java.lang.Number account, java.lang.String domain)Lists the delegation signer records in the domain.PaginatedResponse<DelegationSignerRecord>listDelegationSignerRecords(java.lang.Number account, java.lang.String domain, ListOptions options)Lists the delegation signer records in the domain.PaginatedResponse<Domain>listDomains(java.lang.Number account)Lists the domains in the account.PaginatedResponse<Domain>listDomains(java.lang.Number account, ListOptions options)Lists the domains in the account.PaginatedResponse<EmailForward>listEmailForwards(java.lang.Number account, java.lang.String domain)List email forwards under a given domain.PaginatedResponse<EmailForward>listEmailForwards(java.lang.Number account, java.lang.String domain, ListOptions options)List email forwards under a given domain.PaginatedResponse<DomainPush>listPushes(java.lang.Number account)List pushes under a given domain.PaginatedResponse<DomainPush>listPushes(java.lang.Number account, ListOptions options)List pushes under a given domain.EmptyResponserejectPush(java.lang.Number account, java.lang.Number push)Reject a push.EmptyResponseremoveCollaborator(java.lang.Number account, java.lang.String domain, java.lang.String collaboratorId)Remove a collaborator from a domain.
-
-
-
Constructor Detail
-
Domains
public Domains(HttpEndpointClient client)
-
-
Method Detail
-
listDomains
public PaginatedResponse<Domain> listDomains(java.lang.Number account)
Lists the domains in the account.- Parameters:
account- The account ID- Returns:
- The list domains response
- See Also:
- https://developer.dnsimple.com/v2/domains/#listDomains
-
listDomains
public PaginatedResponse<Domain> listDomains(java.lang.Number account, ListOptions options)
Lists the domains in the account.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list domains response
- See Also:
- https://developer.dnsimple.com/v2/domains/#listDomains
-
createDomain
public SimpleResponse<Domain> createDomain(java.lang.Number account, java.lang.String name)
Create a domain in an account.- Parameters:
account- The account IDname- The name of the domain- Returns:
- The create domain response
- See Also:
- https://developer.dnsimple.com/v2/domains/#createDomain
-
getDomain
public SimpleResponse<Domain> getDomain(java.lang.Number account, java.lang.String domain)
Get a specific domain associated to an account using the domain's name or ID.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The get domain response
- See Also:
- https://developer.dnsimple.com/v2/domains/#getDomain
-
deleteDomain
public EmptyResponse deleteDomain(java.lang.Number account, java.lang.String domain)
Delete a domain from an account.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The delete domain response
- See Also:
- https://developer.dnsimple.com/v2/domains/#deleteDomain
-
listCollaborators
public PaginatedResponse<Collaborator> listCollaborators(java.lang.Number account, java.lang.String domain)
Lists the collaborators in the domain.- Parameters:
account- The account IDdomain- The domain ID or name- Returns:
- The list collaborators response
- See Also:
- https://developer.dnsimple.com/v2/domains/collaborators/#list
-
listCollaborators
public PaginatedResponse<Collaborator> listCollaborators(java.lang.Number account, java.lang.String domain, ListOptions options)
Lists the collaborators in the account.- Parameters:
account- The account IDdomain- The domain ID or nameoptions- The options for the list request- Returns:
- The list collaborators response
- See Also:
- https://developer.dnsimple.com/v2/domains/collaborators/#listCollaborators
-
addCollaborator
public SimpleResponse<Collaborator> addCollaborator(java.lang.Number account, java.lang.String domain, java.lang.String email)
Add a collaborator to a domain.- Parameters:
account- The account IDdomain- The domain ID or nameemail- The email of the collaborator- Returns:
- The add collaborator response
- See Also:
- https://developer.dnsimple.com/v2/domains/collaborators/#addCollaborator
-
removeCollaborator
public EmptyResponse removeCollaborator(java.lang.Number account, java.lang.String domain, java.lang.String collaboratorId)
Remove a collaborator from a domain.- Parameters:
account- The account IDdomain- The domain ID or namecollaboratorId- The collaborator ID- Returns:
- The remove collaborator response
- See Also:
- https://developer.dnsimple.com/v2/domains/collaborators/#removeCollaborator
-
enableDnssec
public SimpleResponse<Dnssec> enableDnssec(java.lang.Number account, java.lang.String domain)
Enables DNSSEC on the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The DNSSEC enable response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#enableDomainDnssec
-
disableDnssec
public EmptyResponse disableDnssec(java.lang.Number account, java.lang.String domain)
Disables DNSSEC on the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The DNSSEC disable response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#disableDomainDnsec
-
getDnssec
public SimpleResponse<Dnssec> getDnssec(java.lang.Number account, java.lang.String domain)
Get DNSSEC status of the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The get DNSSEC response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#getDomainDnssec
-
listDelegationSignerRecords
public PaginatedResponse<DelegationSignerRecord> listDelegationSignerRecords(java.lang.Number account, java.lang.String domain)
Lists the delegation signer records in the domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The list delegation signer records response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#listDomainDelegationSignerRecords
-
listDelegationSignerRecords
public PaginatedResponse<DelegationSignerRecord> listDelegationSignerRecords(java.lang.Number account, java.lang.String domain, ListOptions options)
Lists the delegation signer records in the domain.- Parameters:
account- The account IDdomain- The domain ID or name or nameoptions- The options for the list request- Returns:
- The list delegation signer records response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#listDomainDelegationSignerRecords
-
createDelegationSignerRecord
public SimpleResponse<DelegationSignerRecord> createDelegationSignerRecord(java.lang.Number account, java.lang.String domain, DSRecordOptions options)
Create a delegation signer record for a domain.- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options to create the DS record- Returns:
- The create delegation signer record response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#createDomainDelegationSignerRecord
-
getDelegationSignerRecord
public SimpleResponse<DelegationSignerRecord> getDelegationSignerRecord(java.lang.Number account, java.lang.String domain, java.lang.Number dsRecordId)
Get a delegation signer record for a domain using the delegation signer records's ID.- Parameters:
account- The account IDdomain- The domain name or IDdsRecordId- The delegation signer record ID- Returns:
- The get delegation signer record response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#getDomainDelegationSignerRecord
-
deleteDelegationSignerRecord
public EmptyResponse deleteDelegationSignerRecord(java.lang.Number account, java.lang.String domain, java.lang.Number dsRecordId)
Delete a delegation signer record from a domain.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or namedsRecordId- The delegation signer record ID- Returns:
- The delete delegation signer record response
- See Also:
- https://developer.dnsimple.com/v2/domains/dnssec/#deleteDomainDelegationSignerRecord
-
listEmailForwards
public PaginatedResponse<EmailForward> listEmailForwards(java.lang.Number account, java.lang.String domain)
List email forwards under a given domain.- Parameters:
account- The account IDdomain- The domain ID or name or name- Returns:
- The list email forwards response
- See Also:
- https://developer.dnsimple.com/v2/domains/email-forwards/#listEmailForwards
-
listEmailForwards
public PaginatedResponse<EmailForward> listEmailForwards(java.lang.Number account, java.lang.String domain, ListOptions options)
List email forwards under a given domain.- Parameters:
account- The account IDdomain- The domain ID or name or nameoptions- The options for the list request- Returns:
- The list email forwards response
- See Also:
- https://developer.dnsimple.com/v2/domains/email-forwards/#listEmailForwards
-
createEmailForward
public SimpleResponse<EmailForward> createEmailForward(java.lang.Number account, java.lang.String domain, java.lang.String from, java.lang.String to)
Create an email forward for a domain.- Parameters:
account- The account IDdomain- The domain name or IDfrom- The email address the emails are send toto- The email address the email address the emails are forwarded to.- Returns:
- The create email forward response
- See Also:
- https://developer.dnsimple.com/v2/domains/email-forwards/#createEmailForward
-
getEmailForward
public SimpleResponse<EmailForward> getEmailForward(java.lang.Number account, java.lang.String domain, java.lang.Number emailForward)
Get a specific email forward associated to a domain using the email forward's ID.- Parameters:
account- The account IDdomain- The domain name or IDemailForward- The email forward ID- Returns:
- The get email forward response
- See Also:
- https://developer.dnsimple.com/v2/domains/email-forwards/#getEmailForward
-
deleteEmailForward
public EmptyResponse deleteEmailForward(java.lang.Number account, java.lang.String domain, java.lang.Number emailForward)
Delete an email forward from a domain.WARNING: this cannot be undone.
- Parameters:
account- The account IDdomain- The domain ID or name or nameemailForward- The email forward ID- Returns:
- The delete email forward response
- See Also:
- https://developer.dnsimple.com/v2/domains/email-forwards/#deleteEmailForward
-
initiatePush
public SimpleResponse<DomainPush> initiatePush(java.lang.Number account, java.lang.String domain, java.lang.String newAccountEmail)
Initiate a push.- Parameters:
account- The account IDdomain- The domain name or IDnewAccountEmail- The email address of the target DNSimple account- Returns:
- The initiate push response
- See Also:
- https://developer.dnsimple.com/v2/domains/pushes/#initiateDomainPush
-
listPushes
public PaginatedResponse<DomainPush> listPushes(java.lang.Number account)
List pushes under a given domain.- Parameters:
account- The account ID- Returns:
- The list pushes response
- See Also:
- https://developer.dnsimple.com/v2/domains/pushes/#listPushes
-
listPushes
public PaginatedResponse<DomainPush> listPushes(java.lang.Number account, ListOptions options)
List pushes under a given domain.- Parameters:
account- The account IDoptions- The options for the list request- Returns:
- The list pushes response
- See Also:
- https://developer.dnsimple.com/v2/domains/pushes/#listPushes
-
acceptPush
public EmptyResponse acceptPush(java.lang.Number account, java.lang.Number push, java.lang.Number contactId)
Accept a push.- Parameters:
account- The account IDpush- The push IDcontactId- A contact that belongs to the target DNSimple account- Returns:
- The accept push response
- See Also:
- https://developer.dnsimple.com/v2/domains/pushes/#acceptPush
-
rejectPush
public EmptyResponse rejectPush(java.lang.Number account, java.lang.Number push)
Reject a push.- Parameters:
account- The account IDpush- The push ID- Returns:
- The accept push response
- See Also:
- https://developer.dnsimple.com/v2/domains/pushes/#rejectPush
-
-