public void setTags(java.util.Collection<Tag> tags) {
        if (tags == null) {
            this.tags = null;
            return;
        }

        this.tags = new com.amazonaws.internal.SdkInternalList<Tag>(tags);
    }
<p>
The tag key-value pairs to add to the on-premises instances.
</p>
<p>
Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
</p>

@param tags
       The tag key-value pairs to add to the on-premises instances.</p>
       <p>
       Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed.
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/model/AddTagsToOnPremisesInstancesRequest.java