/*
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"
)

// PaginatedVulnerabilityListAllOf struct for PaginatedVulnerabilityListAllOf
type PaginatedVulnerabilityListAllOf struct {
	// The listing of matching vulnerabilities for the query subject to pagination
	Vulnerabilities []StandaloneVulnerability `json:"vulnerabilities,omitempty"`
}

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

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

// GetVulnerabilities returns the Vulnerabilities field value if set, zero value otherwise.
func (o *PaginatedVulnerabilityListAllOf) GetVulnerabilities() []StandaloneVulnerability {
	if o == nil || o.Vulnerabilities == nil {
		var ret []StandaloneVulnerability
		return ret
	}
	return o.Vulnerabilities
}

// GetVulnerabilitiesOk returns a tuple with the Vulnerabilities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaginatedVulnerabilityListAllOf) GetVulnerabilitiesOk() ([]StandaloneVulnerability, bool) {
	if o == nil || o.Vulnerabilities == nil {
		return nil, false
	}
	return o.Vulnerabilities, true
}

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

	return false
}

// SetVulnerabilities gets a reference to the given []StandaloneVulnerability and assigns it to the Vulnerabilities field.
func (o *PaginatedVulnerabilityListAllOf) SetVulnerabilities(v []StandaloneVulnerability) {
	o.Vulnerabilities = v
}

func (o PaginatedVulnerabilityListAllOf) MarshalJSON() ([]byte, error) {
	toSerialize := map[string]interface{}{}
	if o.Vulnerabilities != nil {
		toSerialize["vulnerabilities"] = o.Vulnerabilities
	}
	return json.Marshal(toSerialize)
}

type NullablePaginatedVulnerabilityListAllOf struct {
	value *PaginatedVulnerabilityListAllOf
	isSet bool
}

func (v NullablePaginatedVulnerabilityListAllOf) Get() *PaginatedVulnerabilityListAllOf {
	return v.value
}

func (v *NullablePaginatedVulnerabilityListAllOf) Set(val *PaginatedVulnerabilityListAllOf) {
	v.value = val
	v.isSet = true
}

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

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

func NewNullablePaginatedVulnerabilityListAllOf(val *PaginatedVulnerabilityListAllOf) *NullablePaginatedVulnerabilityListAllOf {
	return &NullablePaginatedVulnerabilityListAllOf{value: val, isSet: true}
}

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

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


