<p>
The single tag that identifies targeted resources for this policy.
</p>

@param targetTags
The single tag that identifies targeted resources for this policy.
503152
public void setTargetTags(java.util.Collection<Tag> targetTags) {
        if (targetTags == null) {
            this.targetTags = null;
            return;
        }

        this.targetTags = new java.util.ArrayList<Tag>(targetTags);
    }
1129972
public void setAssessmentTargets(java.util.Collection<AssessmentTarget> assessmentTargets) {
        if (assessmentTargets == null) {
            this.assessmentTargets = null;
            return;
        }

        this.assessmentTargets = new java.util.ArrayList<AssessmentTarget>(assessmentTargets);
    }
74892
public CreateInputSecurityGroupRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
793127
public void removeTag(Tag tag) {
    Iterable<Tag> tags = getTags();
    removeAll(tags, singletonList(tag));
    set(PackageMetadata.TAGS, tag);
  }
670398
public ResourceTags withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
973441
public ListDevEndpointsRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1033244
public ListTagsLogGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
530659
public void setTagValues(java.util.Collection<String> tagValues) {
        if (tagValues == null) {
            this.tagValues = null;
            return;
        }

        this.tagValues = new java.util.ArrayList<String>(tagValues);
    }
807748
func (s *PolicyDetails) SetTargetTags(v []*Tag) *PolicyDetails {
	s.TargetTags = v
	return s
}
394149
public void setClickTags(com.google.api.ads.admanager.axis.v201805.ClickTag[] clickTags) {
        this.clickTags = clickTags;
    }
1354413
public void setTagKeys(java.util.Collection<String> tagKeys) {
        if (tagKeys == null) {
            this.tagKeys = null;
            return;
        }

        this.tagKeys = new com.ibm.cloud.objectstorage.internal.SdkInternalList<String>(tagKeys);
    }
247609
public void setTags(Map<String, String> tags) {
    	TSDBEntity.validateTags(tags);
    	
        _tags.clear();
        if (tags != null) {
            _tags.putAll(tags);
        }
    }
661873
public void setTags(java.util.Collection<String> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new java.util.ArrayList<String>(tags);
    }
783582
@Override
    public void setTargetType(String targetType) {

        if (TraceComponent.isAnyTracingEnabled() && TRACE.isDebugEnabled()) {
            SibTr.debug(this, TRACE, "setTargetType", targetType);
        }
        _targetType = targetType;

    }
443125
public Rule setTags(String[] tags) {
    this.tags = tags == null ? null : StringUtils.join(tags, ',');
    return this;
  }
1122128
public ListTriggersRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
189368
public AffectedEntity withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }