// 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 (
	"context"

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

// HashicorpCloudPacker20230101CriticalityCount hashicorp cloud packer 20230101 criticality count
//
// swagger:model hashicorp.cloud.packer_20230101.CriticalityCount
type HashicorpCloudPacker20230101CriticalityCount struct {

	// average age days for criticality
	AverageAgeDaysForCriticality float64 `json:"average_age_days_for_criticality,omitempty"`

	// criticality
	Criticality string `json:"criticality,omitempty"`

	// first seen at
	FirstSeenAt string `json:"first_seen_at,omitempty"`

	// vulnerability count
	VulnerabilityCount string `json:"vulnerability_count,omitempty"`
}

// Validate validates this hashicorp cloud packer 20230101 criticality count
func (m *HashicorpCloudPacker20230101CriticalityCount) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud packer 20230101 criticality count based on context it is used
func (m *HashicorpCloudPacker20230101CriticalityCount) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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