code: func (d *ResourceData) SetId(v string) {
  	d.once.Do(d.init)
  	d.newState.ID = v
  
  	// once we transition away from the legacy state types, "id" will no longer
  	// be a special field, and will become a normal attribute.
  	// set the attribute normally
  	d.setWriter.unsafeWriteField("id", v)
  
  	// Make sure the newState is also set, otherwise the old value
  	// may get precedence.
  	if d.newState.Attributes == nil {
  		d.newState.Attributes = map[string]string{}
  	}
  	d.newState.Attributes["id"] = v
  }
docs: // SetId sets the ID of the resource. If the value is blank, then the
  // resource is destroyed.