/*
FinFeedAPI Stock REST API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

API version: v1
Contact: support@apibricks.io
*/

// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

package openapi

import (
	"encoding/json"
	"time"
)

// checks if the Level3DeleteOrderModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Level3DeleteOrderModel{}

// Level3DeleteOrderModel Represents the response DTO for order delete information
type Level3DeleteOrderModel struct {
	// The stock symbol
	Symbol NullableString `json:"symbol,omitempty"`
	// Original timestamp in nanoseconds since epoch
	TimestampNanos *int64 `json:"timestamp_nanos,omitempty"`
	// Time when the order was deleted as DateTime
	Timestamp *time.Time `json:"timestamp,omitempty"`
	// Order identifier reference
	OrderIdReference *int64 `json:"order_id_reference,omitempty"`
}

// NewLevel3DeleteOrderModel instantiates a new Level3DeleteOrderModel object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewLevel3DeleteOrderModel() *Level3DeleteOrderModel {
	this := Level3DeleteOrderModel{}
	return &this
}

// NewLevel3DeleteOrderModelWithDefaults instantiates a new Level3DeleteOrderModel object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewLevel3DeleteOrderModelWithDefaults() *Level3DeleteOrderModel {
	this := Level3DeleteOrderModel{}
	return &this
}

// GetSymbol returns the Symbol field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Level3DeleteOrderModel) GetSymbol() string {
	if o == nil || IsNil(o.Symbol.Get()) {
		var ret string
		return ret
	}
	return *o.Symbol.Get()
}

// GetSymbolOk returns a tuple with the Symbol field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Level3DeleteOrderModel) GetSymbolOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return o.Symbol.Get(), o.Symbol.IsSet()
}

// HasSymbol returns a boolean if a field has been set.
func (o *Level3DeleteOrderModel) HasSymbol() bool {
	if o != nil && o.Symbol.IsSet() {
		return true
	}

	return false
}

// SetSymbol gets a reference to the given NullableString and assigns it to the Symbol field.
func (o *Level3DeleteOrderModel) SetSymbol(v string) {
	o.Symbol.Set(&v)
}
// SetSymbolNil sets the value for Symbol to be an explicit nil
func (o *Level3DeleteOrderModel) SetSymbolNil() {
	o.Symbol.Set(nil)
}

// UnsetSymbol ensures that no value is present for Symbol, not even an explicit nil
func (o *Level3DeleteOrderModel) UnsetSymbol() {
	o.Symbol.Unset()
}

// GetTimestampNanos returns the TimestampNanos field value if set, zero value otherwise.
func (o *Level3DeleteOrderModel) GetTimestampNanos() int64 {
	if o == nil || IsNil(o.TimestampNanos) {
		var ret int64
		return ret
	}
	return *o.TimestampNanos
}

// GetTimestampNanosOk returns a tuple with the TimestampNanos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Level3DeleteOrderModel) GetTimestampNanosOk() (*int64, bool) {
	if o == nil || IsNil(o.TimestampNanos) {
		return nil, false
	}
	return o.TimestampNanos, true
}

// HasTimestampNanos returns a boolean if a field has been set.
func (o *Level3DeleteOrderModel) HasTimestampNanos() bool {
	if o != nil && !IsNil(o.TimestampNanos) {
		return true
	}

	return false
}

// SetTimestampNanos gets a reference to the given int64 and assigns it to the TimestampNanos field.
func (o *Level3DeleteOrderModel) SetTimestampNanos(v int64) {
	o.TimestampNanos = &v
}

// GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (o *Level3DeleteOrderModel) GetTimestamp() time.Time {
	if o == nil || IsNil(o.Timestamp) {
		var ret time.Time
		return ret
	}
	return *o.Timestamp
}

// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Level3DeleteOrderModel) GetTimestampOk() (*time.Time, bool) {
	if o == nil || IsNil(o.Timestamp) {
		return nil, false
	}
	return o.Timestamp, true
}

// HasTimestamp returns a boolean if a field has been set.
func (o *Level3DeleteOrderModel) HasTimestamp() bool {
	if o != nil && !IsNil(o.Timestamp) {
		return true
	}

	return false
}

// SetTimestamp gets a reference to the given time.Time and assigns it to the Timestamp field.
func (o *Level3DeleteOrderModel) SetTimestamp(v time.Time) {
	o.Timestamp = &v
}

// GetOrderIdReference returns the OrderIdReference field value if set, zero value otherwise.
func (o *Level3DeleteOrderModel) GetOrderIdReference() int64 {
	if o == nil || IsNil(o.OrderIdReference) {
		var ret int64
		return ret
	}
	return *o.OrderIdReference
}

// GetOrderIdReferenceOk returns a tuple with the OrderIdReference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Level3DeleteOrderModel) GetOrderIdReferenceOk() (*int64, bool) {
	if o == nil || IsNil(o.OrderIdReference) {
		return nil, false
	}
	return o.OrderIdReference, true
}

// HasOrderIdReference returns a boolean if a field has been set.
func (o *Level3DeleteOrderModel) HasOrderIdReference() bool {
	if o != nil && !IsNil(o.OrderIdReference) {
		return true
	}

	return false
}

// SetOrderIdReference gets a reference to the given int64 and assigns it to the OrderIdReference field.
func (o *Level3DeleteOrderModel) SetOrderIdReference(v int64) {
	o.OrderIdReference = &v
}

func (o Level3DeleteOrderModel) MarshalJSON() ([]byte, error) {
	toSerialize,err := o.ToMap()
	if err != nil {
		return []byte{}, err
	}
	return json.Marshal(toSerialize)
}

func (o Level3DeleteOrderModel) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if o.Symbol.IsSet() {
		toSerialize["symbol"] = o.Symbol.Get()
	}
	if !IsNil(o.TimestampNanos) {
		toSerialize["timestamp_nanos"] = o.TimestampNanos
	}
	if !IsNil(o.Timestamp) {
		toSerialize["timestamp"] = o.Timestamp
	}
	if !IsNil(o.OrderIdReference) {
		toSerialize["order_id_reference"] = o.OrderIdReference
	}
	return toSerialize, nil
}

type NullableLevel3DeleteOrderModel struct {
	value *Level3DeleteOrderModel
	isSet bool
}

func (v NullableLevel3DeleteOrderModel) Get() *Level3DeleteOrderModel {
	return v.value
}

func (v *NullableLevel3DeleteOrderModel) Set(val *Level3DeleteOrderModel) {
	v.value = val
	v.isSet = true
}

func (v NullableLevel3DeleteOrderModel) IsSet() bool {
	return v.isSet
}

func (v *NullableLevel3DeleteOrderModel) Unset() {
	v.value = nil
	v.isSet = false
}

func NewNullableLevel3DeleteOrderModel(val *Level3DeleteOrderModel) *NullableLevel3DeleteOrderModel {
	return &NullableLevel3DeleteOrderModel{value: val, isSet: true}
}

func (v NullableLevel3DeleteOrderModel) MarshalJSON() ([]byte, error) {
	return json.Marshal(v.value)
}

func (v *NullableLevel3DeleteOrderModel) UnmarshalJSON(src []byte) error {
	v.isSet = true
	return json.Unmarshal(src, &v.value)
}


