public StackSummary withRootId(String rootId) {
        setRootId(rootId);
        return this;
    }
<p>
For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to which
the nested stack ultimately belongs.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">Working with
Nested Stacks</a> in the <i>CloudFormation User Guide</i>.
</p>

@param rootId
       For nested stacks--stacks created as resources for another stack--the stack ID of the top-level stack to
       which the nested stack ultimately belongs.</p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-nested-stacks.html">Working
       with Nested Stacks</a> in the <i>CloudFormation User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/StackSummary.java