public RunInstancesRequest withTagSpecifications(java.util.Collection<TagSpecification> tagSpecifications) {
        setTagSpecifications(tagSpecifications);
        return this;
    }
<p>
The tags to apply to the resources that are created during instance launch.
</p>
<p>
You can specify tags for the following resources only:
</p>
<ul>
<li>
<p>
Instances
</p>
</li>
<li>
<p>
Volumes
</p>
</li>
<li>
<p>
Spot Instance requests
</p>
</li>
<li>
<p>
Network interfaces
</p>
</li>
</ul>
<p>
To tag a resource after it has been created, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html">CreateTags</a>.
</p>

@param tagSpecifications
       The tags to apply to the resources that are created during instance launch.</p>
       <p>
       You can specify tags for the following resources only:
       </p>
       <ul>
       <li>
       <p>
       Instances
       </p>
       </li>
       <li>
       <p>
       Volumes
       </p>
       </li>
       <li>
       <p>
       Spot Instance requests
       </p>
       </li>
       <li>
       <p>
       Network interfaces
       </p>
       </li>
       </ul>
       <p>
       To tag a resource after it has been created, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html">CreateTags</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RunInstancesRequest.java