# Path: boto/ec2/instance.py
# class Group:
# 
#     def __init__(self, parent=None):
#         self.id = None
#         self.name = None
# 
#     def startElement(self, name, attrs, connection):
#         return None
# 
#     def endElement(self, name, value, connection):
#         if name == 'groupId':
#             self.id = value
#         elif name == 'groupName':
#             self.name = value
#         else:
#             setattr(self, name, value)


from boto.ec2.ec2object import TaggedEC2Object
from boto.resultset import ResultSet
from boto.ec2.instance import Group
            if value.lower() == 'true':
                self.delete_on_termination = True
            else:
                self.delete_on_termination = False
        else:
            setattr(self, name, value)

class NetworkInterface(TaggedEC2Object):
    
    def __init__(self, connection=None):
        TaggedEC2Object.__init__(self, connection)
        self.id = None
        self.subnet_id = None
        self.vpc_id = None
        self.availability_zone = None
        self.description = None
        self.owner_id = None
        self.requester_managed = False
        self.status = None
        self.mac_address = None
        self.private_ip_address = None
        self.source_dest_check = None
        self.groups = []
        self.attachment = None

    def __repr__(self):
        return 'NetworkInterface:%s' % self.id

    def startElement(self, name, attrs, connection):
        if name == 'groupSet':

# Path: boto/ec2/instance.py
# class Group:
# 
#     def __init__(self, parent=None):
#         self.id = None
#         self.name = None
# 
#     def startElement(self, name, attrs, connection):
#         return None
# 
#     def endElement(self, name, value, connection):
#         if name == 'groupId':
#             self.id = value
#         elif name == 'groupName':
#             self.name = value
#         else:
#             setattr(self, name, value)


# Path: boto/ec2/networkinterface.py
from boto.ec2.ec2object import TaggedEC2Object
from boto.resultset import ResultSet
from boto.ec2.instance import Group

            if value.lower() == 'true':
                self.delete_on_termination = True
            else:
                self.delete_on_termination = False
        else:
            setattr(self, name, value)

class NetworkInterface(TaggedEC2Object):
    
    def __init__(self, connection=None):
        TaggedEC2Object.__init__(self, connection)
        self.id = None
        self.subnet_id = None
        self.vpc_id = None
        self.availability_zone = None
        self.description = None
        self.owner_id = None
        self.requester_managed = False
        self.status = None
        self.mac_address = None
        self.private_ip_address = None
        self.source_dest_check = None
        self.groups = []
        self.attachment = None

    def __repr__(self):
        return 'NetworkInterface:%s' % self.id

    def startElement(self, name, attrs, connection):
        if name == 'groupSet':

            self.groups = ResultSet([('item', Group)])