Class TemplateReplaceParams
-
- All Implemented Interfaces:
-
com.courier.core.Params
public final class TemplateReplaceParams implements Params
Creates or updates a notification template for a tenant.
If the template already exists for the tenant, it will be updated (200). Otherwise, a new template is created (201).
Optionally publishes the template immediately if the
publishedflag is set to true.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTemplateReplaceParams.BuilderA builder for TemplateReplaceParams.
-
Method Summary
Modifier and Type Method Description final StringtenantId()final Optional<String>templateId()final PutTenantTemplateRequestputTenantTemplateRequest()Request body for creating or updating a tenant notification template final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final TemplateReplaceParams.BuildertoBuilder()final PutTenantTemplateRequest_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static TemplateReplaceParams.Builderbuilder()Returns a mutable builder for constructing an instance of TemplateReplaceParams. -
-
Method Detail
-
templateId
final Optional<String> templateId()
-
putTenantTemplateRequest
final PutTenantTemplateRequest putTenantTemplateRequest()
Request body for creating or updating a tenant notification template
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final TemplateReplaceParams.Builder toBuilder()
-
_body
final PutTenantTemplateRequest _body()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static TemplateReplaceParams.Builder builder()
Returns a mutable builder for constructing an instance of TemplateReplaceParams.
The following fields are required:
.tenantId() .putTenantTemplateRequest()
-
-
-
-