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-03-29T16:47:02.065887-05:00[America/Chicago]",
comments="Generator version: 7.4.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 organizationcreateEmailServer
(EmailServerPost emailServerPost, Map<String, String> additionalHeaders) Create a custom SMTP server Creates a custom email SMTP server configuration for your organizationvoid
deleteEmailServer
(String emailServerId) Delete an SMTP Server configuration Deletes your organization's custom SMTP server with the given IDvoid
deleteEmailServer
(String emailServerId, Map<String, String> additionalHeaders) Delete an SMTP Server configuration Deletes your organization's custom SMTP server with the given IDgetEmailServer
(String emailServerId) Retrieve an SMTP Server configuration Retrieves a configuration of your organization's custom SMTP server with the given IDgetEmailServer
(String emailServerId, Map<String, String> additionalHeaders) Retrieve an SMTP Server configuration Retrieves a configuration of your organization's custom SMTP server with the given IDprotected static com.fasterxml.jackson.databind.ObjectMapper
List all enrolled SMTP servers Lists all the enrolled custom email SMTP serverslistEmailServers
(Map<String, String> additionalHeaders) List all enrolled SMTP servers Lists all the enrolled custom email SMTP serversvoid
setApiClient
(ApiClient apiClient) void
testEmailServer
(String emailServerId, EmailTestAddresses emailTestAddresses) Test an SMTP Server configuration Tests your organization's custom SMTP Server with the given IDvoid
testEmailServer
(String emailServerId, EmailTestAddresses emailTestAddresses, Map<String, String> additionalHeaders) Test an SMTP Server configuration Tests your organization's custom SMTP Server with the given IDupdateEmailServer
(String emailServerId, EmailServerRequest emailServerRequest) Update an SMTP Server configuration Updates one or more fields of your organization's custom SMTP Server configurationupdateEmailServer
(String emailServerId, EmailServerRequest emailServerRequest, Map<String, String> additionalHeaders) Update an SMTP Server configuration Updates one or more fields of your organization's 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 organization- 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 organization- 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 your organization's custom SMTP server with the given ID- 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 your organization's custom SMTP server with the given ID- Parameters:
emailServerId
- (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getEmailServer
Retrieve an SMTP Server configuration Retrieves a configuration of your organization's custom SMTP server with the given ID- 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 a configuration of your organization's custom SMTP server with the given ID- 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 email SMTP servers- 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 email SMTP servers- 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 your organization's custom SMTP Server with the given ID- 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 your organization's custom SMTP Server with the given ID- 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 one or more fields of your organization's 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 one or more fields of your organization's 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()
-