<s> """<STR_LIT>""" <EOL> from boto . ec2 . ec2object import TaggedEC2Object <EOL> class Subnet ( TaggedEC2Object ) : <EOL> def __init__ ( self , connection = None ) : <EOL> super ( Subnet , self ) . __init__ ( connection ) <EOL> self . id = None <EOL> self . vpc_id = None <EOL> self . state = None <EOL> self . cidr_block = None <EOL> self . available_ip_address_count = <NUM_LIT:0> <EOL> self . availability_zone = None <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % self . id <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . id = value <EOL> elif name == '<STR_LIT>' : <EOL> self . vpc_id = value <EOL> elif name == '<STR_LIT:state>' : <EOL> self . state = value <EOL> elif name == '<STR_LIT>' : <EOL> self . cidr_block = value <EOL> elif name == '<STR_LIT>' : <EOL> self . available_ip_address_count = int ( value ) <EOL> elif name == '<STR_LIT>' : <EOL> self . availability_zone = value <EOL> else : <EOL> setattr ( self , name , value ) </s>
