public CreatePromptRequest withDefaultVariant(String defaultVariant) {
        setDefaultVariant(defaultVariant);
        return this;
    }
<p>
The name of the default variant for the prompt. This value must match the <code>name</code> field in the relevant
<a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html">PromptVariant</a>
object.
</p>

@param defaultVariant
       The name of the default variant for the prompt. This value must match the <code>name</code> field in the
       relevant <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptVariant.html">
       PromptVariant</a> object.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-bedrockagent/src/main/java/com/amazonaws/services/bedrockagent/model/CreatePromptRequest.java