func (o *EnforcerReport) SetBSON(raw bson.Raw) error {

	if o == nil {
		return nil
	}

	s := &mongoAttributesEnforcerReport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}

	o.CPULoad = s.CPULoad
	o.ID = s.ID.Hex()
	o.EnforcerID = s.EnforcerID
	o.LicenseType = s.LicenseType
	o.Memory = s.Memory
	o.MigrationsLog = s.MigrationsLog
	o.Name = s.Name
	o.Namespace = s.Namespace
	o.Processes = s.Processes
	o.Timestamp = s.Timestamp
	o.ZHash = s.ZHash
	o.Zone = s.Zone

	return nil
}
// SetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
SetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// SetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *EnforcerReport) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesEnforcerReport{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.CPULoad = s.CPULoad
	o.ID = s.ID.Hex()
	o.EnforcerID = s.EnforcerID
	o.LicenseType = s.LicenseType
	o.Memory = s.Memory
	o.MigrationsLog = s.MigrationsLog
	o.Name = s.Name
	o.Namespace = s.Namespace
	o.Processes = s.Processes
	o.Timestamp = s.Timestamp
	o.ZHash = s.ZHash
	o.Zone = s.Zone
	return nil
}
func ( o * EnforcerReport ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesEnforcerReport { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . CPULoad = s . CPULoad o . ID = s . ID . Hex ( ) o . EnforcerID = s . EnforcerID o . LicenseType = s . LicenseType o . Memory = s . Memory o . MigrationsLog = s . MigrationsLog o . Name = s . Name o . Namespace = s . Namespace o . Processes = s . Processes o . Timestamp = s . Timestamp o . ZHash = s . ZHash o . Zone = s . Zone return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .