public void setTagSpecifications(java.util.Collection<TagSpecification> tagSpecifications) {
        if (tagSpecifications == null) {
            this.tagSpecifications = null;
            return;
        }

        this.tagSpecifications = new com.amazonaws.internal.SdkInternalList<TagSpecification>(tagSpecifications);
    }
<p>
The tags to apply to the AMI.
</p>
<p>
To tag the AMI, the value for <code>ResourceType</code> must be <code>image</code>. If you specify another value
for <code>ResourceType</code>, the request fails.
</p>
<p>
To tag an AMI after it has been registered, 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 AMI.</p>
       <p>
       To tag the AMI, the value for <code>ResourceType</code> must be <code>image</code>. If you specify another
       value for <code>ResourceType</code>, the request fails.
       </p>
       <p>
       To tag an AMI after it has been registered, see <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html">CreateTags</a>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/RegisterImageRequest.java