Interface GetEmailTemplateResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetEmailTemplateResponse.Builder,,GetEmailTemplateResponse> SdkBuilder<GetEmailTemplateResponse.Builder,,GetEmailTemplateResponse> SdkPojo,SdkResponse.Builder,SesV2Response.Builder
- Enclosing class:
GetEmailTemplateResponse
public static interface GetEmailTemplateResponse.Builder
extends SesV2Response.Builder, SdkPojo, CopyableBuilder<GetEmailTemplateResponse.Builder,GetEmailTemplateResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetEmailTemplateResponse.BuildertemplateContent(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.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.sesv2.model.SesV2Response.Builder
build, responseMetadata, responseMetadata
-
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 GetEmailTemplateResponse.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:
-