<p>
A map of entity tags attached to the affected entity.
</p>

@param tags
A map of entity tags attached to the affected entity.
@return Returns a reference to this object so that method calls can be chained together.
189368
public AffectedEntity withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
540222
public ListTagsForStreamResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
166499
public CreateSimulationJobResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
404528
public void setTags(java.util.Map<String, String> tags) {
        this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags);
    }
1336578
public GetResourceDefinitionResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1234544
public R setTags(List<String> tags) {
        JsonArray jsonArray = new JsonArray();
        for (String s : tags) {
            jsonArray.add(s);
        }
        mBodyMap.put(BoxItem.FIELD_TAGS, jsonArray);
        return (R) this;
    }
866470
public DescribeBrokerResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
908213
public CreateApplicationRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
889904
public CreateResourceDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1282862
public CreateInputRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
362874
public CreateSubscriptionDefinitionRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
868980
public synchronized Map<String, String> getTags() {
        if (tags == null || tags.isEmpty()) {
            return Collections.emptyMap();
        }

        return Collections.unmodifiableMap(tags);
    }
1298785
@SuppressWarnings("unchecked")
    public T addTags(List<String> tags) {
        if (this.tags_ == null) {
            tags_ = new ArrayList<>();
        }
        this.tags_.addAll(tags);
        return (T) this;
    }
580591
public App withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1250789
@SuppressWarnings("unchecked")
    public final FluentModelImplT withTags(Map<String, String> tags) {
        this.inner().withTags(new HashMap<>(tags));
        return (FluentModelImplT) this;
    }
306625
public PurchaseOfferingRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
544391
public SegmentResponse withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }