Interface ProfileTemplate.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ProfileTemplate.Builder,,ProfileTemplate> SdkBuilder<ProfileTemplate.Builder,,ProfileTemplate> SdkPojo
- Enclosing class:
ProfileTemplate
@Mutable
@NotThreadSafe
public static interface ProfileTemplate.Builder
extends SdkPojo, CopyableBuilder<ProfileTemplate.Builder,ProfileTemplate>
-
Method Summary
Modifier and TypeMethodDescriptionSets the value of the CreatedAt property for this object.templateName(String templateName) The name of the profile template.templateQuestions(Collection<ProfileTemplateQuestion> templateQuestions) Profile template questions.templateQuestions(Consumer<ProfileTemplateQuestion.Builder>... templateQuestions) Profile template questions.templateQuestions(ProfileTemplateQuestion... templateQuestions) Profile template questions.Sets the value of the UpdatedAt property for this object.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, sdkFieldNameToField, sdkFields
-
Method Details
-
templateName
The name of the profile template.
- Parameters:
templateName- The name of the profile template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateQuestions
Profile template questions.
- Parameters:
templateQuestions- Profile template questions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateQuestions
Profile template questions.
- Parameters:
templateQuestions- Profile template questions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateQuestions
ProfileTemplate.Builder templateQuestions(Consumer<ProfileTemplateQuestion.Builder>... templateQuestions) Profile template questions.
This is a convenience method that creates an instance of theProfileTemplateQuestion.Builderavoiding the need to create one manually viaProfileTemplateQuestion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateQuestions(List<ProfileTemplateQuestion>).- Parameters:
templateQuestions- a consumer that will call methods onProfileTemplateQuestion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
Sets the value of the CreatedAt property for this object.- Parameters:
createdAt- The new value for the CreatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Sets the value of the UpdatedAt property for this object.- Parameters:
updatedAt- The new value for the UpdatedAt property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-