public ManagedAgent withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the managed agent. When the execute command feature is turned on, the managed agent name is
<code>ExecuteCommandAgent</code>.
</p>

@param name
       The name of the managed agent. When the execute command feature is turned on, the managed agent name is
       <code>ExecuteCommandAgent</code>.
@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/ManagedAgent.java