Class EmailDomainApi

java.lang.Object
com.okta.sdk.resource.api.EmailDomainApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-09-23T16:19:57.008753975Z[Etc/UTC]", comments="Generator version: 7.8.0") public class EmailDomainApi extends Object
  • Constructor Details

    • EmailDomainApi

      public EmailDomainApi()
    • EmailDomainApi

      public EmailDomainApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • createEmailDomain

      public EmailDomainResponse createEmailDomain(EmailDomain emailDomain, List<String> expand) throws ApiException
      Create an Email Domain Creates an Email Domain in your org
      Parameters:
      emailDomain - (required)
      expand - Specifies additional metadata to be included in the response (optional
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • createEmailDomain

      public EmailDomainResponse createEmailDomain(EmailDomain emailDomain, List<String> expand, Map<String,String> additionalHeaders) throws ApiException
      Create an Email Domain Creates an Email Domain in your org
      Parameters:
      emailDomain - (required)
      expand - Specifies additional metadata to be included in the response (optional
      additionalHeaders - additionalHeaders for this call
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • deleteEmailDomain

      public void deleteEmailDomain(String emailDomainId, List<String> expand) throws ApiException
      Delete an Email Domain Deletes an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      expand - Specifies additional metadata to be included in the response (optional
      Throws:
      ApiException - if fails to make API call
    • deleteEmailDomain

      public void deleteEmailDomain(String emailDomainId, List<String> expand, Map<String,String> additionalHeaders) throws ApiException
      Delete an Email Domain Deletes an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      expand - Specifies additional metadata to be included in the response (optional
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getEmailDomain

      public EmailDomainResponseWithEmbedded getEmailDomain(String emailDomainId, List<String> expand) throws ApiException
      Retrieve an Email Domain Retrieves an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      expand - Specifies additional metadata to be included in the response (optional
      Returns:
      EmailDomainResponseWithEmbedded
      Throws:
      ApiException - if fails to make API call
    • getEmailDomain

      public EmailDomainResponseWithEmbedded getEmailDomain(String emailDomainId, List<String> expand, Map<String,String> additionalHeaders) throws ApiException
      Retrieve an Email Domain Retrieves an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      expand - Specifies additional metadata to be included in the response (optional
      additionalHeaders - additionalHeaders for this call
      Returns:
      EmailDomainResponseWithEmbedded
      Throws:
      ApiException - if fails to make API call
    • listEmailDomains

      public List<EmailDomainResponseWithEmbedded> listEmailDomains(List<String> expand) throws ApiException
      List all Email Domains Lists all the Email Domains in your org
      Parameters:
      expand - Specifies additional metadata to be included in the response (optional
      Returns:
      List<EmailDomainResponseWithEmbedded>
      Throws:
      ApiException - if fails to make API call
    • listEmailDomains

      public List<EmailDomainResponseWithEmbedded> listEmailDomains(List<String> expand, Map<String,String> additionalHeaders) throws ApiException
      List all Email Domains Lists all the Email Domains in your org
      Parameters:
      expand - Specifies additional metadata to be included in the response (optional
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<EmailDomainResponseWithEmbedded>
      Throws:
      ApiException - if fails to make API call
    • replaceEmailDomain

      public EmailDomainResponse replaceEmailDomain(String emailDomainId, UpdateEmailDomain updateEmailDomain, List<String> expand) throws ApiException
      Replace an Email Domain Replaces associated username and sender display name by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      updateEmailDomain - (required)
      expand - Specifies additional metadata to be included in the response (optional
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • replaceEmailDomain

      public EmailDomainResponse replaceEmailDomain(String emailDomainId, UpdateEmailDomain updateEmailDomain, List<String> expand, Map<String,String> additionalHeaders) throws ApiException
      Replace an Email Domain Replaces associated username and sender display name by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      updateEmailDomain - (required)
      expand - Specifies additional metadata to be included in the response (optional
      additionalHeaders - additionalHeaders for this call
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • verifyEmailDomain

      public EmailDomainResponse verifyEmailDomain(String emailDomainId) throws ApiException
      Verify an Email Domain Verifies an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • verifyEmailDomain

      public EmailDomainResponse verifyEmailDomain(String emailDomainId, Map<String,String> additionalHeaders) throws ApiException
      Verify an Email Domain Verifies an Email Domain by `emailDomainId`
      Parameters:
      emailDomainId - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      EmailDomainResponse
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()