Package com.okta.sdk.resource.api
Class EmailServerApi
java.lang.Object
com.okta.sdk.resource.api.EmailServerApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class EmailServerApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEmailServer
(EmailServerPost emailServerPost) Create a custom SMTP server Creates a custom email SMTP server configuration for your orgcreateEmailServer
(EmailServerPost emailServerPost, Map<String, String> additionalHeaders) Create a custom SMTP server Creates a custom email SMTP server configuration for your orgvoid
deleteEmailServer
(String emailServerId) Delete an SMTP Server configuration Deletes the specified custom SMTP server configurationvoid
deleteEmailServer
(String emailServerId, Map<String, String> additionalHeaders) Delete an SMTP Server configuration Deletes the specified custom SMTP server configurationgetEmailServer
(String emailServerId) Retrieve an SMTP Server configuration Retrieves the specified custom SMTP server configurationgetEmailServer
(String emailServerId, Map<String, String> additionalHeaders) Retrieve an SMTP Server configuration Retrieves the specified custom SMTP server configurationprotected static com.fasterxml.jackson.databind.ObjectMapper
List all enrolled SMTP servers Lists all the enrolled custom SMTP server configurationslistEmailServers
(Map<String, String> additionalHeaders) List all enrolled SMTP servers Lists all the enrolled custom SMTP server configurationsvoid
setApiClient
(ApiClient apiClient) void
testEmailServer
(String emailServerId, EmailTestAddresses emailTestAddresses) Test an SMTP Server configuration Tests the specified custom SMTP Server configurationvoid
testEmailServer
(String emailServerId, EmailTestAddresses emailTestAddresses, Map<String, String> additionalHeaders) Test an SMTP Server configuration Tests the specified custom SMTP Server configurationupdateEmailServer
(String emailServerId, EmailServerRequest emailServerRequest) Update an SMTP Server configuration Updates the specified custom SMTP server configurationupdateEmailServer
(String emailServerId, EmailServerRequest emailServerRequest, Map<String, String> additionalHeaders) Update an SMTP Server configuration Updates the specified custom SMTP server configuration
-
Constructor Details
-
EmailServerApi
public EmailServerApi() -
EmailServerApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createEmailServer
Create a custom SMTP server Creates a custom email SMTP server configuration for your org- Parameters:
emailServerPost
- (optional)- Returns:
- EmailServerResponse
- Throws:
ApiException
- if fails to make API call
-
createEmailServer
public EmailServerResponse createEmailServer(EmailServerPost emailServerPost, Map<String, String> additionalHeaders) throws ApiExceptionCreate a custom SMTP server Creates a custom email SMTP server configuration for your org- Parameters:
emailServerPost
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- EmailServerResponse
- Throws:
ApiException
- if fails to make API call
-
deleteEmailServer
Delete an SMTP Server configuration Deletes the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)- Throws:
ApiException
- if fails to make API call
-
deleteEmailServer
public void deleteEmailServer(String emailServerId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an SMTP Server configuration Deletes the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getEmailServer
Retrieve an SMTP Server configuration Retrieves the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)- Returns:
- EmailServerListResponse
- Throws:
ApiException
- if fails to make API call
-
getEmailServer
public EmailServerListResponse getEmailServer(String emailServerId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an SMTP Server configuration Retrieves the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- EmailServerListResponse
- Throws:
ApiException
- if fails to make API call
-
listEmailServers
List all enrolled SMTP servers Lists all the enrolled custom SMTP server configurations- Returns:
- EmailServerListResponse
- Throws:
ApiException
- if fails to make API call
-
listEmailServers
public EmailServerListResponse listEmailServers(Map<String, String> additionalHeaders) throws ApiExceptionList all enrolled SMTP servers Lists all the enrolled custom SMTP server configurations- Parameters:
additionalHeaders
- additionalHeaders for this call- Returns:
- EmailServerListResponse
- Throws:
ApiException
- if fails to make API call
-
testEmailServer
public void testEmailServer(String emailServerId, EmailTestAddresses emailTestAddresses) throws ApiException Test an SMTP Server configuration Tests the specified custom SMTP Server configuration- Parameters:
emailServerId
- (required)emailTestAddresses
- (optional)- Throws:
ApiException
- if fails to make API call
-
testEmailServer
public void testEmailServer(String emailServerId, EmailTestAddresses emailTestAddresses, Map<String, String> additionalHeaders) throws ApiExceptionTest an SMTP Server configuration Tests the specified custom SMTP Server configuration- Parameters:
emailServerId
- (required)emailTestAddresses
- (optional)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
updateEmailServer
public EmailServerResponse updateEmailServer(String emailServerId, EmailServerRequest emailServerRequest) throws ApiException Update an SMTP Server configuration Updates the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)emailServerRequest
- (optional)- Returns:
- EmailServerResponse
- Throws:
ApiException
- if fails to make API call
-
updateEmailServer
public EmailServerResponse updateEmailServer(String emailServerId, EmailServerRequest emailServerRequest, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an SMTP Server configuration Updates the specified custom SMTP server configuration- Parameters:
emailServerId
- (required)emailServerRequest
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- EmailServerResponse
- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-