Interface CreateEmailTemplateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateEmailTemplateRequest.Builder,,CreateEmailTemplateRequest> SdkBuilder<CreateEmailTemplateRequest.Builder,,CreateEmailTemplateRequest> SdkPojo,SdkRequest.Builder,SesV2Request.Builder
- Enclosing class:
CreateEmailTemplateRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.tags(Collection<Tag> tags) An array of objects that define the tags (keys and values) to associate with the email template.tags(Consumer<Tag.Builder>... tags) An array of objects that define the tags (keys and values) to associate with the email template.An array of objects that define the tags (keys and values) to associate with the email template.templateContent(Consumer<EmailTemplateContent.Builder> templateContent) The content of the email template, composed of a subject line, an HTML part, and a text-only part.templateContent(EmailTemplateContent templateContent) The content of the email template, composed of a subject line, an HTML part, and a text-only part.templateName(String templateName) The name of the template.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.sesv2.model.SesV2Request.Builder
build
-
Method Details
-
templateName
The name of the template.
- Parameters:
templateName- The name of the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateContent
The content of the email template, composed of a subject line, an HTML part, and a text-only part.
- Parameters:
templateContent- The content of the email template, composed of a subject line, an HTML part, and a text-only part.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateContent
default CreateEmailTemplateRequest.Builder templateContent(Consumer<EmailTemplateContent.Builder> templateContent) The content of the email template, composed of a subject line, an HTML part, and a text-only part.
This is a convenience method that creates an instance of theEmailTemplateContent.Builderavoiding the need to create one manually viaEmailTemplateContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateContent(EmailTemplateContent).- Parameters:
templateContent- a consumer that will call methods onEmailTemplateContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An array of objects that define the tags (keys and values) to associate with the email template.
- Parameters:
tags- An array of objects that define the tags (keys and values) to associate with the email template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of objects that define the tags (keys and values) to associate with the email template.
- Parameters:
tags- An array of objects that define the tags (keys and values) to associate with the email template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An array of objects that define the tags (keys and values) to associate with the email template.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateEmailTemplateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEmailTemplateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-