/*
 * peridot/proto/v1/batch.proto
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * API version: version not set
 */

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

package peridotopenapi

import (
	"encoding/json"
)

// ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage struct for ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage
type ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage struct {
	PackageName *string `json:"packageName,omitempty"`
	PackageId *string `json:"packageId,omitempty"`
	Vre *V1VersionRelease `json:"vre,omitempty"`
	SetInactive *bool `json:"setInactive,omitempty"`
}

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

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

// GetPackageName returns the PackageName field value if set, zero value otherwise.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) GetPackageName() string {
	if o == nil || o.PackageName == nil {
		var ret string
		return ret
	}
	return *o.PackageName
}

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

// HasPackageName returns a boolean if a field has been set.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) HasPackageName() bool {
	if o != nil && o.PackageName != nil {
		return true
	}

	return false
}

// SetPackageName gets a reference to the given string and assigns it to the PackageName field.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) SetPackageName(v string) {
	o.PackageName = &v
}

// GetPackageId returns the PackageId field value if set, zero value otherwise.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) GetPackageId() string {
	if o == nil || o.PackageId == nil {
		var ret string
		return ret
	}
	return *o.PackageId
}

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

// HasPackageId returns a boolean if a field has been set.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) HasPackageId() bool {
	if o != nil && o.PackageId != nil {
		return true
	}

	return false
}

// SetPackageId gets a reference to the given string and assigns it to the PackageId field.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) SetPackageId(v string) {
	o.PackageId = &v
}

// GetVre returns the Vre field value if set, zero value otherwise.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) GetVre() V1VersionRelease {
	if o == nil || o.Vre == nil {
		var ret V1VersionRelease
		return ret
	}
	return *o.Vre
}

// GetVreOk returns a tuple with the Vre field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) GetVreOk() (*V1VersionRelease, bool) {
	if o == nil || o.Vre == nil {
		return nil, false
	}
	return o.Vre, true
}

// HasVre returns a boolean if a field has been set.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) HasVre() bool {
	if o != nil && o.Vre != nil {
		return true
	}

	return false
}

// SetVre gets a reference to the given V1VersionRelease and assigns it to the Vre field.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) SetVre(v V1VersionRelease) {
	o.Vre = &v
}

// GetSetInactive returns the SetInactive field value if set, zero value otherwise.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) GetSetInactive() bool {
	if o == nil || o.SetInactive == nil {
		var ret bool
		return ret
	}
	return *o.SetInactive
}

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

// HasSetInactive returns a boolean if a field has been set.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) HasSetInactive() bool {
	if o != nil && o.SetInactive != nil {
		return true
	}

	return false
}

// SetSetInactive gets a reference to the given bool and assigns it to the SetInactive field.
func (o *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) SetSetInactive(v bool) {
	o.SetInactive = &v
}

func (o ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.PackageName != nil {
		toSerialize["packageName"] = o.PackageName
	}
	if o.PackageId != nil {
		toSerialize["packageId"] = o.PackageId
	}
	if o.Vre != nil {
		toSerialize["vre"] = o.Vre
	}
	if o.SetInactive != nil {
		toSerialize["setInactive"] = o.SetInactive
	}
	return json.Marshal(toSerialize)
}

type NullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage struct {
	value *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage
	isSet bool
}

func (v NullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) Get() *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage {
	return v.value
}

func (v *NullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) Set(val *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage(val *ImportPackageRequestIsTheRequestMessageForImportServiceImportPackage) *NullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage {
	return &NullableImportPackageRequestIsTheRequestMessageForImportServiceImportPackage{value: val, isSet: true}
}

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

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


