public java.util.List<PromptVariant> getVariants() {
        return variants;
    }
<p>
A list of objects, each containing details about a variant of the prompt.
</p>

@return A list of objects, each containing details about a variant of the prompt.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/CreatePromptRequest.java