Struct aws_sdk_sesv2::operation::test_render_email_template::builders::TestRenderEmailTemplateInputBuilder
source · #[non_exhaustive]pub struct TestRenderEmailTemplateInputBuilder { /* private fields */ }Expand description
A builder for TestRenderEmailTemplateInput.
Implementations§
source§impl TestRenderEmailTemplateInputBuilder
impl TestRenderEmailTemplateInputBuilder
sourcepub fn template_name(self, input: impl Into<String>) -> Self
pub fn template_name(self, input: impl Into<String>) -> Self
The name of the template.
This field is required.sourcepub fn set_template_name(self, input: Option<String>) -> Self
pub fn set_template_name(self, input: Option<String>) -> Self
The name of the template.
sourcepub fn get_template_name(&self) -> &Option<String>
pub fn get_template_name(&self) -> &Option<String>
The name of the template.
sourcepub fn template_data(self, input: impl Into<String>) -> Self
pub fn template_data(self, input: impl Into<String>) -> Self
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
This field is required.sourcepub fn set_template_data(self, input: Option<String>) -> Self
pub fn set_template_data(self, input: Option<String>) -> Self
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
sourcepub fn get_template_data(&self) -> &Option<String>
pub fn get_template_data(&self) -> &Option<String>
A list of replacement values to apply to the template. This parameter is a JSON object, typically consisting of key-value pairs in which the keys correspond to replacement tags in the email template.
sourcepub fn build(self) -> Result<TestRenderEmailTemplateInput, BuildError>
pub fn build(self) -> Result<TestRenderEmailTemplateInput, BuildError>
Consumes the builder and constructs a TestRenderEmailTemplateInput.
source§impl TestRenderEmailTemplateInputBuilder
impl TestRenderEmailTemplateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TestRenderEmailTemplateOutput, SdkError<TestRenderEmailTemplateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TestRenderEmailTemplateOutput, SdkError<TestRenderEmailTemplateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TestRenderEmailTemplateInputBuilder
impl Clone for TestRenderEmailTemplateInputBuilder
source§fn clone(&self) -> TestRenderEmailTemplateInputBuilder
fn clone(&self) -> TestRenderEmailTemplateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for TestRenderEmailTemplateInputBuilder
impl Default for TestRenderEmailTemplateInputBuilder
source§fn default() -> TestRenderEmailTemplateInputBuilder
fn default() -> TestRenderEmailTemplateInputBuilder
source§impl PartialEq for TestRenderEmailTemplateInputBuilder
impl PartialEq for TestRenderEmailTemplateInputBuilder
source§fn eq(&self, other: &TestRenderEmailTemplateInputBuilder) -> bool
fn eq(&self, other: &TestRenderEmailTemplateInputBuilder) -> bool
self and other values to be equal, and is used
by ==.