public ManagedAgentStateChange withManagedAgentName(ManagedAgentName managedAgentName) {
        this.managedAgentName = managedAgentName.toString();
        return this;
    }
<p>
The name of the managed agent.
</p>

@param managedAgentName
       The name of the managed agent.
@return Returns a reference to this object so that method calls can be chained together.
@see ManagedAgentName
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/ManagedAgentStateChange.java