public java.util.List<Tag> getTags() {
        if (tags == null) {
            tags = new com.amazonaws.internal.SdkInternalList<Tag>();
        }
        return tags;
    }
<p>
A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be
able to associate tags with the alarm when you create the alarm, you must have the
<code>cloudwatch:TagResource</code> permission.
</p>
<p>
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by
granting a user permission to access or change only resources with certain tag values.
</p>
<p>
If you are using this operation to update an existing alarm, any tags you specify in this parameter are ignored.
To change the tags of an existing alarm, use <a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html">TagResource</a> or
<a
href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html">UntagResource</a>.
</p>

@return A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an
        alarm. To be able to associate tags with the alarm when you create the alarm, you must have the
        <code>cloudwatch:TagResource</code> permission.</p>
        <p>
        Tags can help you organize and categorize your resources. You can also use them to scope user permissions
        by granting a user permission to access or change only resources with certain tag values.
        </p>
        <p>
        If you are using this operation to update an existing alarm, any tags you specify in this parameter are
        ignored. To change the tags of an existing alarm, use <a
        href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html"
        >TagResource</a> or <a
        href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_UntagResource.html"
        >UntagResource</a>.
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/model/PutCompositeAlarmRequest.java