func NewEndpointWithTTL(dnsName, recordType string, ttl TTL, targets ...string) *Endpoint {
	cleanTargets := make([]string, len(targets))
	for idx, target := range targets {
		cleanTargets[idx] = strings.TrimSuffix(target, ".")
	}

	return &Endpoint{
		DNSName:    strings.TrimSuffix(dnsName, "."),
		Targets:    cleanTargets,
		RecordType: recordType,
		Labels:     NewLabels(),
		RecordTTL:  ttl,
	}
}
func NewEndpointWithTTL(dnsName, recordType string, ttl TTL, targets ...string) *Endpoint {
	cleanTargets := make([]string, len(targets))
	for idx, target := range targets {
		cleanTargets[idx] = strings.TrimSuffix(target, ".")
	}

	return &Endpoint{
		DNSName:    strings.TrimSuffix(dnsName, "."),
		Targets:    cleanTargets,
		RecordType: recordType,
		Labels:     NewLabels(),
		RecordTTL:  ttl,
	}
}
func NewEndpointWithTTL ( dnsName , recordType string , ttl TTL , targets ... string ) * Endpoint { cleanTargets := make ( [ ] string , len ( targets ) ) for idx , target := range targets { cleanTargets [ idx ] = strings . TrimSuffix ( target , " " ) } return & Endpoint { DNSName : strings . TrimSuffix ( dnsName , " " ) , Targets : cleanTargets , RecordType : recordType , Labels : NewLabels ( ) , RecordTTL : ttl , } }
// NewEndpointWithTTL initialization method to be used to create an endpoint with a TTL struct
NewEndpointWithTTL initialization method to be used to create an endpoint with a TTL struct