View Javadoc
1   package org.kuali.common.dns.dnsme.model;
2   
3   import static org.kuali.common.util.base.Precondition.checkNotBlank;
4   import static org.kuali.common.util.base.Precondition.checkNotNull;
5   
6   public final class DNSMadeEasyServiceContext {
7   
8   	public DNSMadeEasyServiceContext(DNSMadeEasyCredentials credentials, String restApiUrl, String domainName) {
9   		this.credentials = checkNotNull(credentials, "credentials");
10  		this.restApiUrl = checkNotBlank(restApiUrl, "restApiUrl");
11  		this.domainName = checkNotBlank(domainName, "domainName");
12  	}
13  
14  	private final DNSMadeEasyCredentials credentials;
15  	private final String restApiUrl;
16  	private final String domainName;
17  
18  	public DNSMadeEasyCredentials getCredentials() {
19  		return credentials;
20  	}
21  
22  	public String getRestApiUrl() {
23  		return restApiUrl;
24  	}
25  
26  	public String getDomainName() {
27  		return domainName;
28  	}
29  }