/*
Data Streaming - OpenAPI

The Data Streaming API allows you to manage your existing data streamings and templates. Data Streaming allows you to feed your stream processing, SIEM, and big data platforms with the event logs from your applications on Azion in real time. 

API version: 1.0.0
*/

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

package data_streaming

import (
	"encoding/json"
)

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

// DataStreamingsDomainResponseLinks struct for DataStreamingsDomainResponseLinks
type DataStreamingsDomainResponseLinks struct {
	Previous NullableString `json:"previous,omitempty"`
	Next NullableString `json:"next,omitempty"`
}

// NewDataStreamingsDomainResponseLinks instantiates a new DataStreamingsDomainResponseLinks 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 NewDataStreamingsDomainResponseLinks() *DataStreamingsDomainResponseLinks {
	this := DataStreamingsDomainResponseLinks{}
	return &this
}

// NewDataStreamingsDomainResponseLinksWithDefaults instantiates a new DataStreamingsDomainResponseLinks 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 NewDataStreamingsDomainResponseLinksWithDefaults() *DataStreamingsDomainResponseLinks {
	this := DataStreamingsDomainResponseLinks{}
	return &this
}

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

// GetPreviousOk returns a tuple with the Previous 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 *DataStreamingsDomainResponseLinks) GetPreviousOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return o.Previous.Get(), o.Previous.IsSet()
}

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

	return false
}

// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field.
func (o *DataStreamingsDomainResponseLinks) SetPrevious(v string) {
	o.Previous.Set(&v)
}
// SetPreviousNil sets the value for Previous to be an explicit nil
func (o *DataStreamingsDomainResponseLinks) SetPreviousNil() {
	o.Previous.Set(nil)
}

// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil
func (o *DataStreamingsDomainResponseLinks) UnsetPrevious() {
	o.Previous.Unset()
}

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

// GetNextOk returns a tuple with the Next 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 *DataStreamingsDomainResponseLinks) GetNextOk() (*string, bool) {
	if o == nil {
		return nil, false
	}
	return o.Next.Get(), o.Next.IsSet()
}

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

	return false
}

// SetNext gets a reference to the given NullableString and assigns it to the Next field.
func (o *DataStreamingsDomainResponseLinks) SetNext(v string) {
	o.Next.Set(&v)
}
// SetNextNil sets the value for Next to be an explicit nil
func (o *DataStreamingsDomainResponseLinks) SetNextNil() {
	o.Next.Set(nil)
}

// UnsetNext ensures that no value is present for Next, not even an explicit nil
func (o *DataStreamingsDomainResponseLinks) UnsetNext() {
	o.Next.Unset()
}

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

func (o DataStreamingsDomainResponseLinks) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if o.Previous.IsSet() {
		toSerialize["previous"] = o.Previous.Get()
	}
	if o.Next.IsSet() {
		toSerialize["next"] = o.Next.Get()
	}
	return toSerialize, nil
}

type NullableDataStreamingsDomainResponseLinks struct {
	value *DataStreamingsDomainResponseLinks
	isSet bool
}

func (v NullableDataStreamingsDomainResponseLinks) Get() *DataStreamingsDomainResponseLinks {
	return v.value
}

func (v *NullableDataStreamingsDomainResponseLinks) Set(val *DataStreamingsDomainResponseLinks) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableDataStreamingsDomainResponseLinks(val *DataStreamingsDomainResponseLinks) *NullableDataStreamingsDomainResponseLinks {
	return &NullableDataStreamingsDomainResponseLinks{value: val, isSet: true}
}

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

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


