/*
1Backend

AI-native microservices platform.

API version: 0.8.2
Contact: sales@singulatron.com
*/

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

package openapi

import (
	"encoding/json"
)

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

// ContainerSvcListLogsRequest struct for ContainerSvcListLogsRequest
type ContainerSvcListLogsRequest struct {
	ContainerId *string `json:"containerId,omitempty"`
	Limit *int32 `json:"limit,omitempty"`
	NodeId *string `json:"nodeId,omitempty"`
}

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

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

// GetContainerId returns the ContainerId field value if set, zero value otherwise.
func (o *ContainerSvcListLogsRequest) GetContainerId() string {
	if o == nil || IsNil(o.ContainerId) {
		var ret string
		return ret
	}
	return *o.ContainerId
}

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

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

	return false
}

// SetContainerId gets a reference to the given string and assigns it to the ContainerId field.
func (o *ContainerSvcListLogsRequest) SetContainerId(v string) {
	o.ContainerId = &v
}

// GetLimit returns the Limit field value if set, zero value otherwise.
func (o *ContainerSvcListLogsRequest) GetLimit() int32 {
	if o == nil || IsNil(o.Limit) {
		var ret int32
		return ret
	}
	return *o.Limit
}

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

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

	return false
}

// SetLimit gets a reference to the given int32 and assigns it to the Limit field.
func (o *ContainerSvcListLogsRequest) SetLimit(v int32) {
	o.Limit = &v
}

// GetNodeId returns the NodeId field value if set, zero value otherwise.
func (o *ContainerSvcListLogsRequest) GetNodeId() string {
	if o == nil || IsNil(o.NodeId) {
		var ret string
		return ret
	}
	return *o.NodeId
}

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

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

	return false
}

// SetNodeId gets a reference to the given string and assigns it to the NodeId field.
func (o *ContainerSvcListLogsRequest) SetNodeId(v string) {
	o.NodeId = &v
}

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

func (o ContainerSvcListLogsRequest) ToMap() (map[string]interface{}, error) {
	toSerialize := map[string]interface{}{}
	if !IsNil(o.ContainerId) {
		toSerialize["containerId"] = o.ContainerId
	}
	if !IsNil(o.Limit) {
		toSerialize["limit"] = o.Limit
	}
	if !IsNil(o.NodeId) {
		toSerialize["nodeId"] = o.NodeId
	}
	return toSerialize, nil
}

type NullableContainerSvcListLogsRequest struct {
	value *ContainerSvcListLogsRequest
	isSet bool
}

func (v NullableContainerSvcListLogsRequest) Get() *ContainerSvcListLogsRequest {
	return v.value
}

func (v *NullableContainerSvcListLogsRequest) Set(val *ContainerSvcListLogsRequest) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableContainerSvcListLogsRequest(val *ContainerSvcListLogsRequest) *NullableContainerSvcListLogsRequest {
	return &NullableContainerSvcListLogsRequest{value: val, isSet: true}
}

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

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


