// Code generated by go-swagger; DO NOT EDIT.

package models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// DNSRecordCreate dns record create
//
// swagger:model dnsRecordCreate
type DNSRecordCreate struct {

	// flag
	Flag int64 `json:"flag,omitempty"`

	// hostname
	Hostname string `json:"hostname,omitempty"`

	// port
	Port int64 `json:"port,omitempty"`

	// priority
	Priority int64 `json:"priority,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`

	// ttl
	TTL int64 `json:"ttl,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// value
	Value string `json:"value,omitempty"`

	// weight
	Weight int64 `json:"weight,omitempty"`
}

// Validate validates this dns record create
func (m *DNSRecordCreate) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *DNSRecordCreate) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *DNSRecordCreate) UnmarshalBinary(b []byte) error {
	var res DNSRecordCreate
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
