def METHOD_NAME(self):
    params = {
        'ip_addr_part': '',
        'port': self.port,
        'type': self.hc_type,
        'resource_path': self.resource_path,
        'fqdn_part': "",
        'string_match_part': "",
        'request_interval': (self.XMLRequestIntervalPart %
                             {'request_interval': self.request_interval}),
        'failure_threshold': self.failure_threshold,
    }
    if self.fqdn is not None:
        params['fqdn_part'] = self.XMLFQDNPart % {'fqdn': self.fqdn}
    if self.ip_addr:
        params['ip_addr_part'] = self.XMLIpAddrPart % {'ip_addr': self.ip_addr}
    if self.string_match is not None:
        params['string_match_part'] = self.XMLStringMatchPart % {'string_match': self.string_match}
    return self.POSTXMLBody % params