public RestoreDBInstanceFromDBSnapshotRequest withCopyTagsToSnapshot(Boolean copyTagsToSnapshot) {
        setCopyTagsToSnapshot(copyTagsToSnapshot);
        return this;
    }
<p>
Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance.
</p>
<p>
In most cases, tags aren't copied by default. However, when you restore a DB instance from a DB snapshot, RDS
checks whether you specify new tags. If yes, the new tags are added to the restored DB instance. If there are no
new tags, RDS looks for the tags from the source DB instance for the DB snapshot, and then adds those tags to the
restored DB instance.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags"> Copying
tags to DB instance snapshots</a> in the <i>Amazon RDS User Guide</i>.
</p>

@param copyTagsToSnapshot
       Specifies whether to copy all tags from the restored DB instance to snapshots of the DB instance.</p>
       <p>
       In most cases, tags aren't copied by default. However, when you restore a DB instance from a DB snapshot,
       RDS checks whether you specify new tags. If yes, the new tags are added to the restored DB instance. If
       there are no new tags, RDS looks for the tags from the source DB instance for the DB snapshot, and then
       adds those tags to the restored DB instance.
       </p>
       <p>
       For more information, see <a
       href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html#USER_Tagging.CopyTags">
       Copying tags to DB instance snapshots</a> in the <i>Amazon RDS User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/model/RestoreDBInstanceFromDBSnapshotRequest.java