public NodeDetails withIsMainNode(Boolean isMainNode) {
        setIsMainNode(isMainNode);
        return this;
    }
<p>
Specifies whether the current node is the main node for a multi-node parallel job.
</p>

@param isMainNode
       Specifies whether the current node is the main node for a multi-node parallel job.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-batch/src/main/java/com/amazonaws/services/batch/model/NodeDetails.java