func (o *CloudEndpointData) GetBSON() (interface{}, error) {

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesCloudEndpointData{}

	s.VPCAttached = o.VPCAttached
	s.VPCAttachments = o.VPCAttachments
	s.AssociatedRouteTables = o.AssociatedRouteTables
	s.AttachedInterfaces = o.AttachedInterfaces
	s.ForwardingEnabled = o.ForwardingEnabled
	s.HasPublicIP = o.HasPublicIP
	s.ImageID = o.ImageID
	s.ProductInfo = o.ProductInfo
	s.ServiceName = o.ServiceName
	s.ServiceType = o.ServiceType
	s.Type = o.Type

	return s, nil
}
// GetBSON implements the bson marshaling interface.
// This is used to transparently convert ID to MongoDBID as ObectID.
GetBSON implements the bson marshaling interface.
This is used to transparently convert ID to MongoDBID as ObectID.
// GetBSON implements the bson marshaling interface . // This is used to transparently convert ID to MongoDBID as ObectID .
func (o *CloudEndpointData) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesCloudEndpointData{}
	s.VPCAttached = o.VPCAttached
	s.VPCAttachments = o.VPCAttachments
	s.AssociatedRouteTables = o.AssociatedRouteTables
	s.AttachedInterfaces = o.AttachedInterfaces
	s.ForwardingEnabled = o.ForwardingEnabled
	s.HasPublicIP = o.HasPublicIP
	s.ImageID = o.ImageID
	s.ProductInfo = o.ProductInfo
	s.ServiceName = o.ServiceName
	s.ServiceType = o.ServiceType
	s.Type = o.Type
	return s, nil
}
func ( o * CloudEndpointData ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesCloudEndpointData { } s . VPCAttached = o . VPCAttached s . VPCAttachments = o . VPCAttachments s . AssociatedRouteTables = o . AssociatedRouteTables s . AttachedInterfaces = o . AttachedInterfaces s . ForwardingEnabled = o . ForwardingEnabled s . HasPublicIP = o . HasPublicIP s . ImageID = o . ImageID s . ProductInfo = o . ProductInfo s . ServiceName = o . ServiceName s . ServiceType = o . ServiceType s . Type = o . Type return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .