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

	if o == nil {
		return nil
	}

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

	o.AllSubjectTags = s.AllSubjectTags
	o.IncomingRules = s.IncomingRules
	o.OutgoingRules = s.OutgoingRules
	o.Subject = s.Subject
	o.Type = s.Type

	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 *CloudNetworkRuleSetData) SetBSON(raw bson.Raw) error {
	if o == nil {
		return nil
	}
	s := &mongoAttributesCloudNetworkRuleSetData{}
	if err := raw.Unmarshal(s); err != nil {
		return err
	}
	o.AllSubjectTags = s.AllSubjectTags
	o.IncomingRules = s.IncomingRules
	o.OutgoingRules = s.OutgoingRules
	o.Subject = s.Subject
	o.Type = s.Type
	return nil
}
func ( o * CloudNetworkRuleSetData ) SetBSON ( raw bson . Raw ) error { if o == nil { return nil } s := & mongoAttributesCloudNetworkRuleSetData { } if err := raw . Unmarshal ( s ) ; err != nil { return err } o . AllSubjectTags = s . AllSubjectTags o . IncomingRules = s . IncomingRules o . OutgoingRules = s . OutgoingRules o . Subject = s . Subject o . Type = s . Type return nil }
SetBSON implements the bson marshaling interface.
SetBSON implements the bson marshaling interface .