Interface GuardrailTopicPolicyAssessment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GuardrailTopicPolicyAssessment.Builder,,GuardrailTopicPolicyAssessment> SdkBuilder<GuardrailTopicPolicyAssessment.Builder,,GuardrailTopicPolicyAssessment> SdkPojo
- Enclosing class:
GuardrailTopicPolicyAssessment
@Mutable
@NotThreadSafe
public static interface GuardrailTopicPolicyAssessment.Builder
extends SdkPojo, CopyableBuilder<GuardrailTopicPolicyAssessment.Builder,GuardrailTopicPolicyAssessment>
-
Method Summary
Modifier and TypeMethodDescriptiontopics(Collection<GuardrailTopic> topics) The topics in the assessment.topics(Consumer<GuardrailTopic.Builder>... topics) The topics in the assessment.topics(GuardrailTopic... topics) The topics in the assessment.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
-
topics
The topics in the assessment.
- Parameters:
topics- The topics in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
The topics in the assessment.
- Parameters:
topics- The topics in the assessment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
topics
The topics in the assessment.
This is a convenience method that creates an instance of theGuardrailTopic.Builderavoiding the need to create one manually viaGuardrailTopic.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totopics(List<GuardrailTopic>).- Parameters:
topics- a consumer that will call methods onGuardrailTopic.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-