@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T23:40:43.026Z[Etc/UTC]") public class TemplateApi extends Object
Constructor and Description |
---|
TemplateApi() |
TemplateApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
SmsTemplate |
createSmsTemplate(SmsTemplate smsTemplate)
Create an SMS Template
Creates a new custom SMS template
|
SmsTemplate |
createSmsTemplate(SmsTemplate smsTemplate,
Map<String,String> additionalHeaders)
Create an SMS Template
Creates a new custom SMS template
|
void |
deleteSmsTemplate(String templateId)
Delete an SMS Template
Deletes an SMS template
|
void |
deleteSmsTemplate(String templateId,
Map<String,String> additionalHeaders)
Delete an SMS Template
Deletes an SMS template
|
ApiClient |
getApiClient() |
protected static com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
SmsTemplate |
getSmsTemplate(String templateId)
Retrieve an SMS Template
Retrieves a specific template by `id`
|
SmsTemplate |
getSmsTemplate(String templateId,
Map<String,String> additionalHeaders)
Retrieve an SMS Template
Retrieves a specific template by `id`
|
List<SmsTemplate> |
listSmsTemplates(SmsTemplateType templateType)
List all SMS Templates
Lists all custom SMS templates.
|
List<SmsTemplate> |
listSmsTemplates(SmsTemplateType templateType,
Map<String,String> additionalHeaders)
List all SMS Templates
Lists all custom SMS templates.
|
SmsTemplate |
replaceSmsTemplate(String templateId,
SmsTemplate smsTemplate)
Replace an SMS Template
Replaces the SMS template
|
SmsTemplate |
replaceSmsTemplate(String templateId,
SmsTemplate smsTemplate,
Map<String,String> additionalHeaders)
Replace an SMS Template
Replaces the SMS template
|
void |
setApiClient(ApiClient apiClient) |
SmsTemplate |
updateSmsTemplate(String templateId,
SmsTemplate smsTemplate)
Update an SMS Template
Updates an SMS template
|
SmsTemplate |
updateSmsTemplate(String templateId,
SmsTemplate smsTemplate,
Map<String,String> additionalHeaders)
Update an SMS Template
Updates an SMS template
|
public TemplateApi()
public TemplateApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public SmsTemplate createSmsTemplate(SmsTemplate smsTemplate) throws ApiException
smsTemplate
- (required)ApiException
- if fails to make API callpublic SmsTemplate createSmsTemplate(SmsTemplate smsTemplate, Map<String,String> additionalHeaders) throws ApiException
smsTemplate
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic void deleteSmsTemplate(String templateId) throws ApiException
templateId
- `id` of the Template (required)ApiException
- if fails to make API callpublic void deleteSmsTemplate(String templateId, Map<String,String> additionalHeaders) throws ApiException
templateId
- `id` of the Template (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic SmsTemplate getSmsTemplate(String templateId) throws ApiException
templateId
- `id` of the Template (required)ApiException
- if fails to make API callpublic SmsTemplate getSmsTemplate(String templateId, Map<String,String> additionalHeaders) throws ApiException
templateId
- `id` of the Template (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic List<SmsTemplate> listSmsTemplates(SmsTemplateType templateType) throws ApiException
templateType
- (optional)ApiException
- if fails to make API callpublic List<SmsTemplate> listSmsTemplates(SmsTemplateType templateType, Map<String,String> additionalHeaders) throws ApiException
templateType
- (optional)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic SmsTemplate replaceSmsTemplate(String templateId, SmsTemplate smsTemplate) throws ApiException
templateId
- `id` of the Template (required)smsTemplate
- (required)ApiException
- if fails to make API callpublic SmsTemplate replaceSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String,String> additionalHeaders) throws ApiException
templateId
- `id` of the Template (required)smsTemplate
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callpublic SmsTemplate updateSmsTemplate(String templateId, SmsTemplate smsTemplate) throws ApiException
templateId
- `id` of the Template (required)smsTemplate
- (required)ApiException
- if fails to make API callpublic SmsTemplate updateSmsTemplate(String templateId, SmsTemplate smsTemplate, Map<String,String> additionalHeaders) throws ApiException
templateId
- `id` of the Template (required)smsTemplate
- (required)additionalHeaders
- additionalHeaders for this callApiException
- if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.