/*
Anchore Engine API Server

This is the Anchore Engine API. Provides the primary external API for users of the service.

API version: 0.1.20
Contact: nurmi@anchore.com
*/

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

package anchore

import (
	"encoding/json"
)

// MalwareScanFindingsInner struct for MalwareScanFindingsInner
type MalwareScanFindingsInner struct {
	// A path for a file in the image's rootfs
	Path *string `json:"path,omitempty"`
	// The malware signature found at the path
	Signature *string `json:"signature,omitempty"`
}

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

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

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

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

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

	return false
}

// SetPath gets a reference to the given string and assigns it to the Path field.
func (o *MalwareScanFindingsInner) SetPath(v string) {
	o.Path = &v
}

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

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

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

	return false
}

// SetSignature gets a reference to the given string and assigns it to the Signature field.
func (o *MalwareScanFindingsInner) SetSignature(v string) {
	o.Signature = &v
}

func (o MalwareScanFindingsInner) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.Path != nil {
		toSerialize["path"] = o.Path
	}
	if o.Signature != nil {
		toSerialize["signature"] = o.Signature
	}
	return json.Marshal(toSerialize)
}

type NullableMalwareScanFindingsInner struct {
	value *MalwareScanFindingsInner
	isSet bool
}

func (v NullableMalwareScanFindingsInner) Get() *MalwareScanFindingsInner {
	return v.value
}

func (v *NullableMalwareScanFindingsInner) Set(val *MalwareScanFindingsInner) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullableMalwareScanFindingsInner(val *MalwareScanFindingsInner) *NullableMalwareScanFindingsInner {
	return &NullableMalwareScanFindingsInner{value: val, isSet: true}
}

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

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


