public StackSummary withLayersCount(Integer layersCount) {
        setLayersCount(layersCount);
        return this;
    }
<p>
The number of layers.
</p>

@param layersCount
       The number of layers.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/StackSummary.java