Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* The version of the OpenAPI document: 6.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mailslurp.apis;
import com.mailslurp.clients.ApiCallback;
import com.mailslurp.clients.ApiClient;
import com.mailslurp.clients.ApiException;
import com.mailslurp.clients.ApiResponse;
import com.mailslurp.clients.Configuration;
import com.mailslurp.clients.Pair;
import com.mailslurp.clients.ProgressRequestBody;
import com.mailslurp.clients.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.mailslurp.models.CreateDomainOptions;
import com.mailslurp.models.DomainDto;
import com.mailslurp.models.DomainGroupsDto;
import com.mailslurp.models.DomainIssuesDto;
import com.mailslurp.models.DomainPreview;
import com.mailslurp.models.InboxDto;
import java.util.UUID;
import com.mailslurp.models.UpdateDomainOptions;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DomainControllerApi {
private ApiClient localVarApiClient;
public DomainControllerApi() {
this(Configuration.getDefaultApiClient());
}
public DomainControllerApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
/**
* Build call for addDomainWildcardCatchAll
* @param id (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call addDomainWildcardCatchAllCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/{id}/wildcard"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call addDomainWildcardCatchAllValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling addDomainWildcardCatchAll(Async)");
}
okhttp3.Call localVarCall = addDomainWildcardCatchAllCall(id, _callback);
return localVarCall;
}
/**
* Add catch all wild card inbox to domain
* Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated
* @param id (required)
* @return DomainDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainDto addDomainWildcardCatchAll(UUID id) throws ApiException {
ApiResponse localVarResp = addDomainWildcardCatchAllWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Add catch all wild card inbox to domain
* Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated
* @param id (required)
* @return ApiResponse<DomainDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse addDomainWildcardCatchAllWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = addDomainWildcardCatchAllValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Add catch all wild card inbox to domain (asynchronously)
* Add a catch all inbox to a domain so that any emails sent to it that cannot be matched will be sent to the catch all inbox generated
* @param id (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call addDomainWildcardCatchAllAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = addDomainWildcardCatchAllValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for createDomain
* @param createDomainOptions (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
*/
public okhttp3.Call createDomainCall(CreateDomainOptions createDomainOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = createDomainOptions;
// create path and map variables
String localVarPath = "/domains";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call createDomainValidateBeforeCall(CreateDomainOptions createDomainOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'createDomainOptions' is set
if (createDomainOptions == null) {
throw new ApiException("Missing the required parameter 'createDomainOptions' when calling createDomain(Async)");
}
okhttp3.Call localVarCall = createDomainCall(createDomainOptions, _callback);
return localVarCall;
}
/**
* Create Domain
* Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
* @param createDomainOptions (required)
* @return DomainDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
*/
public DomainDto createDomain(CreateDomainOptions createDomainOptions) throws ApiException {
ApiResponse localVarResp = createDomainWithHttpInfo(createDomainOptions);
return localVarResp.getData();
}
/**
* Create Domain
* Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
* @param createDomainOptions (required)
* @return ApiResponse<DomainDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
*/
public ApiResponse createDomainWithHttpInfo(CreateDomainOptions createDomainOptions) throws ApiException {
okhttp3.Call localVarCall = createDomainValidateBeforeCall(createDomainOptions, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Create Domain (asynchronously)
* Link a domain that you own with MailSlurp so you can create email addresses using it. Endpoint returns DNS records used for validation. You must add these verification records to your host provider's DNS setup to verify the domain.
* @param createDomainOptions (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
201
Created
-
*/
public okhttp3.Call createDomainAsync(CreateDomainOptions createDomainOptions, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = createDomainValidateBeforeCall(createDomainOptions, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for deleteDomain
* @param id (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteDomainCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call deleteDomainValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling deleteDomain(Async)");
}
okhttp3.Call localVarCall = deleteDomainCall(id, _callback);
return localVarCall;
}
/**
* Delete a domain
* Delete a domain. This will disable any existing inboxes that use this domain.
* @param id (required)
* @return List<String>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public List deleteDomain(UUID id) throws ApiException {
ApiResponse> localVarResp = deleteDomainWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Delete a domain
* Delete a domain. This will disable any existing inboxes that use this domain.
* @param id (required)
* @return ApiResponse<List<String>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public ApiResponse> deleteDomainWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = deleteDomainValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Delete a domain (asynchronously)
* Delete a domain. This will disable any existing inboxes that use this domain.
* @param id (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
204
No Content
-
*/
public okhttp3.Call deleteDomainAsync(UUID id, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = deleteDomainValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getAvailableDomains
* @param inboxType (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getAvailableDomainsCall(String inboxType, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/available-domains";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxType != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getAvailableDomainsValidateBeforeCall(String inboxType, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAvailableDomainsCall(inboxType, _callback);
return localVarCall;
}
/**
* Get all usable domains
* List all domains available for use with email address creation
* @param inboxType (optional)
* @return DomainGroupsDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainGroupsDto getAvailableDomains(String inboxType) throws ApiException {
ApiResponse localVarResp = getAvailableDomainsWithHttpInfo(inboxType);
return localVarResp.getData();
}
/**
* Get all usable domains
* List all domains available for use with email address creation
* @param inboxType (optional)
* @return ApiResponse<DomainGroupsDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getAvailableDomainsWithHttpInfo(String inboxType) throws ApiException {
okhttp3.Call localVarCall = getAvailableDomainsValidateBeforeCall(inboxType, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get all usable domains (asynchronously)
* List all domains available for use with email address creation
* @param inboxType (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getAvailableDomainsAsync(String inboxType, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getAvailableDomainsValidateBeforeCall(inboxType, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getDomain
* @param id (required)
* @param checkForErrors (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainCall(UUID id, Boolean checkForErrors, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (checkForErrors != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("checkForErrors", checkForErrors));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getDomainValidateBeforeCall(UUID id, Boolean checkForErrors, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getDomain(Async)");
}
okhttp3.Call localVarCall = getDomainCall(id, checkForErrors, _callback);
return localVarCall;
}
/**
* Get a domain
* Returns domain verification status and tokens for a given domain
* @param id (required)
* @param checkForErrors (optional)
* @return DomainDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainDto getDomain(UUID id, Boolean checkForErrors) throws ApiException {
ApiResponse localVarResp = getDomainWithHttpInfo(id, checkForErrors);
return localVarResp.getData();
}
/**
* Get a domain
* Returns domain verification status and tokens for a given domain
* @param id (required)
* @param checkForErrors (optional)
* @return ApiResponse<DomainDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getDomainWithHttpInfo(UUID id, Boolean checkForErrors) throws ApiException {
okhttp3.Call localVarCall = getDomainValidateBeforeCall(id, checkForErrors, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get a domain (asynchronously)
* Returns domain verification status and tokens for a given domain
* @param id (required)
* @param checkForErrors (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainAsync(UUID id, Boolean checkForErrors, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainValidateBeforeCall(id, checkForErrors, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getDomainIssues
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainIssuesCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/issues";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getDomainIssuesValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainIssuesCall(_callback);
return localVarCall;
}
/**
* Get domain issues
* List domain issues for domains you have created
* @return DomainIssuesDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainIssuesDto getDomainIssues() throws ApiException {
ApiResponse localVarResp = getDomainIssuesWithHttpInfo();
return localVarResp.getData();
}
/**
* Get domain issues
* List domain issues for domains you have created
* @return ApiResponse<DomainIssuesDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getDomainIssuesWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getDomainIssuesValidateBeforeCall(null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get domain issues (asynchronously)
* List domain issues for domains you have created
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainIssuesAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainIssuesValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getDomainWildcardCatchAllInbox
* @param id (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainWildcardCatchAllInboxCall(UUID id, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/{id}/wildcard"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getDomainWildcardCatchAllInboxValidateBeforeCall(UUID id, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getDomainWildcardCatchAllInbox(Async)");
}
okhttp3.Call localVarCall = getDomainWildcardCatchAllInboxCall(id, _callback);
return localVarCall;
}
/**
* Get catch all wild card inbox for domain
* Get the catch all inbox for a domain for missed emails
* @param id (required)
* @return InboxDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public InboxDto getDomainWildcardCatchAllInbox(UUID id) throws ApiException {
ApiResponse localVarResp = getDomainWildcardCatchAllInboxWithHttpInfo(id);
return localVarResp.getData();
}
/**
* Get catch all wild card inbox for domain
* Get the catch all inbox for a domain for missed emails
* @param id (required)
* @return ApiResponse<InboxDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getDomainWildcardCatchAllInboxWithHttpInfo(UUID id) throws ApiException {
okhttp3.Call localVarCall = getDomainWildcardCatchAllInboxValidateBeforeCall(id, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get catch all wild card inbox for domain (asynchronously)
* Get the catch all inbox for a domain for missed emails
* @param id (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainWildcardCatchAllInboxAsync(UUID id, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainWildcardCatchAllInboxValidateBeforeCall(id, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getDomains
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainsCall(final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getDomainsValidateBeforeCall(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainsCall(_callback);
return localVarCall;
}
/**
* Get domains
* List all custom domains you have created
* @return List<DomainPreview>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public List getDomains() throws ApiException {
ApiResponse> localVarResp = getDomainsWithHttpInfo();
return localVarResp.getData();
}
/**
* Get domains
* List all custom domains you have created
* @return ApiResponse<List<DomainPreview>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse> getDomainsWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = getDomainsValidateBeforeCall(null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get domains (asynchronously)
* List all custom domains you have created
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getDomainsAsync(final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = getDomainsValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for getMailSlurpDomains
* @param inboxType (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getMailSlurpDomainsCall(String inboxType, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/domains/mailslurp-domains";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
if (inboxType != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("inboxType", inboxType));
}
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getMailSlurpDomainsValidateBeforeCall(String inboxType, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getMailSlurpDomainsCall(inboxType, _callback);
return localVarCall;
}
/**
* Get MailSlurp domains
* List all MailSlurp domains used with non-custom email addresses
* @param inboxType (optional)
* @return DomainGroupsDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainGroupsDto getMailSlurpDomains(String inboxType) throws ApiException {
ApiResponse localVarResp = getMailSlurpDomainsWithHttpInfo(inboxType);
return localVarResp.getData();
}
/**
* Get MailSlurp domains
* List all MailSlurp domains used with non-custom email addresses
* @param inboxType (optional)
* @return ApiResponse<DomainGroupsDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse getMailSlurpDomainsWithHttpInfo(String inboxType) throws ApiException {
okhttp3.Call localVarCall = getMailSlurpDomainsValidateBeforeCall(inboxType, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Get MailSlurp domains (asynchronously)
* List all MailSlurp domains used with non-custom email addresses
* @param inboxType (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call getMailSlurpDomainsAsync(String inboxType, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getMailSlurpDomainsValidateBeforeCall(inboxType, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
/**
* Build call for updateDomain
* @param id (required)
* @param updateDomainOptions (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call updateDomainCall(UUID id, UpdateDomainOptions updateDomainOptions, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = updateDomainOptions;
// create path and map variables
String localVarPath = "/domains/{id}"
.replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
"*/*"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
localVarHeaderParams.put("Content-Type", localVarContentType);
String[] localVarAuthNames = new String[] { "API_KEY" };
return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call updateDomainValidateBeforeCall(UUID id, UpdateDomainOptions updateDomainOptions, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling updateDomain(Async)");
}
// verify the required parameter 'updateDomainOptions' is set
if (updateDomainOptions == null) {
throw new ApiException("Missing the required parameter 'updateDomainOptions' when calling updateDomain(Async)");
}
okhttp3.Call localVarCall = updateDomainCall(id, updateDomainOptions, _callback);
return localVarCall;
}
/**
* Update a domain
* Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
* @param id (required)
* @param updateDomainOptions (required)
* @return DomainDto
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public DomainDto updateDomain(UUID id, UpdateDomainOptions updateDomainOptions) throws ApiException {
ApiResponse localVarResp = updateDomainWithHttpInfo(id, updateDomainOptions);
return localVarResp.getData();
}
/**
* Update a domain
* Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
* @param id (required)
* @param updateDomainOptions (required)
* @return ApiResponse<DomainDto>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public ApiResponse updateDomainWithHttpInfo(UUID id, UpdateDomainOptions updateDomainOptions) throws ApiException {
okhttp3.Call localVarCall = updateDomainValidateBeforeCall(id, updateDomainOptions, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
/**
* Update a domain (asynchronously)
* Update values on a domain. Note you cannot change the domain name as it is immutable. Recreate the domain if you need to alter this.
* @param id (required)
* @param updateDomainOptions (required)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
OK
-
*/
public okhttp3.Call updateDomainAsync(UUID id, UpdateDomainOptions updateDomainOptions, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = updateDomainValidateBeforeCall(id, updateDomainOptions, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
}