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

// HashicorpCloudPackerBucketAncestryParentChannelIteration hashicorp cloud packer bucket ancestry parent channel iteration
//
// swagger:model hashicorp.cloud.packer.BucketAncestry.Parent.ChannelIteration
type HashicorpCloudPackerBucketAncestryParentChannelIteration struct {

	// The currently assigned iteration's build fingerprint.
	Fingerprint string `json:"fingerprint,omitempty"`

	// The currently assigned iteration's ULID.
	ID string `json:"id,omitempty"`

	// The currently assigned iteration's incremental version.
	IncrementalVersion int32 `json:"incremental_version,omitempty"`
}

// Validate validates this hashicorp cloud packer bucket ancestry parent channel iteration
func (m *HashicorpCloudPackerBucketAncestryParentChannelIteration) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this hashicorp cloud packer bucket ancestry parent channel iteration based on context it is used
func (m *HashicorpCloudPackerBucketAncestryParentChannelIteration) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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