public ParameterDetail withRequired(Boolean required) {
        setRequired(required);
        return this;
    }
<p>
Whether the parameter is required for the agent to complete the function for action group invocation.
</p>

@param required
       Whether the parameter is required for the agent to complete the function for action group invocation.
@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/ParameterDetail.java