// 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"
)

// BuildStatusMinutes build status minutes
//
// swagger:model buildStatusMinutes
type BuildStatusMinutes struct {

	// current
	Current int64 `json:"current,omitempty"`

	// current average sec
	CurrentAverageSec int64 `json:"current_average_sec,omitempty"`

	// included minutes
	IncludedMinutes string `json:"included_minutes,omitempty"`

	// included minutes with packs
	IncludedMinutesWithPacks string `json:"included_minutes_with_packs,omitempty"`

	// last updated at
	LastUpdatedAt string `json:"last_updated_at,omitempty"`

	// period end date
	PeriodEndDate string `json:"period_end_date,omitempty"`

	// period start date
	PeriodStartDate string `json:"period_start_date,omitempty"`

	// previous
	Previous int64 `json:"previous,omitempty"`
}

// Validate validates this build status minutes
func (m *BuildStatusMinutes) Validate(formats strfmt.Registry) error {
	return nil
}

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

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