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

	if o == nil {
		return nil, nil
	}

	s := &mongoAttributesCloudAddress{}

	s.IPVersion = o.IPVersion
	s.Primary = o.Primary
	s.PrivateDNSName = o.PrivateDNSName
	s.PrivateIP = o.PrivateIP
	s.PrivateNetwork = o.PrivateNetwork
	s.PublicDNSName = o.PublicDNSName
	s.PublicIP = o.PublicIP
	s.PublicNetwork = o.PublicNetwork

	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 *CloudAddress) GetBSON() (interface{}, error) {
	if o == nil {
		return nil, nil
	}
	s := &mongoAttributesCloudAddress{}
	s.IPVersion = o.IPVersion
	s.Primary = o.Primary
	s.PrivateDNSName = o.PrivateDNSName
	s.PrivateIP = o.PrivateIP
	s.PrivateNetwork = o.PrivateNetwork
	s.PublicDNSName = o.PublicDNSName
	s.PublicIP = o.PublicIP
	s.PublicNetwork = o.PublicNetwork
	return s, nil
}
func ( o * CloudAddress ) GetBSON ( ) ( interface { } , error ) { if o == nil { return nil , nil } s := & mongoAttributesCloudAddress { } s . IPVersion = o . IPVersion s . Primary = o . Primary s . PrivateDNSName = o . PrivateDNSName s . PrivateIP = o . PrivateIP s . PrivateNetwork = o . PrivateNetwork s . PublicDNSName = o . PublicDNSName s . PublicIP = o . PublicIP s . PublicNetwork = o . PublicNetwork return s , nil }
GetBSON implements the bson marshaling interface.
GetBSON implements the bson marshaling interface .