public AgentVersion withMemoryConfiguration(MemoryConfiguration memoryConfiguration) {
        setMemoryConfiguration(memoryConfiguration);
        return this;
    }
<p>
Contains details of the memory configuration on the version of the agent.
</p>

@param memoryConfiguration
       Contains details of the memory configuration on the version of the agent.
@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/AgentVersion.java