Interface CustomTemplate.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CustomTemplate.Builder,,CustomTemplate> SdkBuilder<CustomTemplate.Builder,,CustomTemplate> SdkPojo
- Enclosing class:
CustomTemplate
@Mutable
@NotThreadSafe
public static interface CustomTemplate.Builder
extends SdkPojo, CopyableBuilder<CustomTemplate.Builder,CustomTemplate>
-
Method Summary
Modifier and TypeMethodDescriptiontemplateInstructions(Collection<TemplateSectionInstruction> templateInstructions) Custom instructions for each section of the templatetemplateInstructions(Consumer<TemplateSectionInstruction.Builder>... templateInstructions) Custom instructions for each section of the templatetemplateInstructions(TemplateSectionInstruction... templateInstructions) Custom instructions for each section of the templatetemplateType(String templateType) The base template type to customizetemplateType(CustomTemplateBase templateType) The base template type to customizeMethods 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, sdkFields
-
Method Details
-
templateType
The base template type to customize
- Parameters:
templateType- The base template type to customize- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateType
The base template type to customize
- Parameters:
templateType- The base template type to customize- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
templateInstructions
CustomTemplate.Builder templateInstructions(Collection<TemplateSectionInstruction> templateInstructions) Custom instructions for each section of the template
- Parameters:
templateInstructions- Custom instructions for each section of the template- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateInstructions
Custom instructions for each section of the template
- Parameters:
templateInstructions- Custom instructions for each section of the template- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateInstructions
CustomTemplate.Builder templateInstructions(Consumer<TemplateSectionInstruction.Builder>... templateInstructions) Custom instructions for each section of the template
This is a convenience method that creates an instance of theTemplateSectionInstruction.Builderavoiding the need to create one manually viaTemplateSectionInstruction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateInstructions(List<TemplateSectionInstruction>).- Parameters:
templateInstructions- a consumer that will call methods onTemplateSectionInstruction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-