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

package store

import (
	"net/http"

	"github.com/go-openapi/runtime"
)

// InventoryGetOKCode is the HTTP code returned for type InventoryGetOK
const InventoryGetOKCode int = 200

/*
InventoryGetOK successful operation

swagger:response inventoryGetOK
*/
type InventoryGetOK struct {

	/*
	  In: Body
	*/
	Payload map[string]int32 `json:"body,omitempty"`
}

// NewInventoryGetOK creates InventoryGetOK with default headers values
func NewInventoryGetOK() *InventoryGetOK {

	return &InventoryGetOK{}
}

// WithPayload adds the payload to the inventory get o k response
func (o *InventoryGetOK) WithPayload(payload map[string]int32) *InventoryGetOK {
	o.Payload = payload
	return o
}

// SetPayload sets the payload to the inventory get o k response
func (o *InventoryGetOK) SetPayload(payload map[string]int32) {
	o.Payload = payload
}

// WriteResponse to the client
func (o *InventoryGetOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) {

	rw.WriteHeader(200)
	payload := o.Payload
	if payload == nil {
		// return empty map
		payload = make(map[string]int32, 50)
	}

	if err := producer.Produce(rw, payload); err != nil {
		panic(err) // let the recovery middleware deal with this
	}
}
