<s> from boto . resultset import ResultSet <EOL> class AppCookieStickinessPolicy ( object ) : <EOL> def __init__ ( self , connection = None ) : <EOL> self . cookie_name = None <EOL> self . policy_name = None <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . policy_name , <EOL> self . cookie_name ) <EOL> def startElement ( self , name , attrs , connection ) : <EOL> pass <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . cookie_name = value <EOL> elif name == '<STR_LIT>' : <EOL> self . policy_name = value <EOL> class LBCookieStickinessPolicy ( object ) : <EOL> def __init__ ( self , connection = None ) : <EOL> self . policy_name = None <EOL> self . cookie_expiration_period = None <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . policy_name , <EOL> self . cookie_expiration_period ) <EOL> def startElement ( self , name , attrs , connection ) : <EOL> pass <EOL> def endElement ( self , name , value , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> self . cookie_expiration_period = value <EOL> elif name == '<STR_LIT>' : <EOL> self . policy_name = value <EOL> class OtherPolicy ( object ) : <EOL> def __init__ ( self , connection = None ) : <EOL> self . policy_name = None <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' % ( self . policy_name ) <EOL> def startElement ( self , name , attrs , connection ) : <EOL> pass <EOL> def endElement ( self , name , value , connection ) : <EOL> self . policy_name = value <EOL> class Policies ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , connection = None ) : <EOL> self . connection = connection <EOL> self . app_cookie_stickiness_policies = None <EOL> self . lb_cookie_stickiness_policies = None <EOL> self . other_policies = None <EOL> def __repr__ ( self ) : <EOL> app = '<STR_LIT>' % self . app_cookie_stickiness_policies <EOL> lb = '<STR_LIT>' % self . lb_cookie_stickiness_policies <EOL> other = '<STR_LIT>' % self . other_policies <EOL> return '<STR_LIT>' % ( app , lb , other ) <EOL> def startElement ( self , name , attrs , connection ) : <EOL> if name == '<STR_LIT>' : <EOL> rs = ResultSet ( [ ( '<STR_LIT>' , AppCookieStickinessPolicy ) ] ) <EOL> self . app_cookie_stickiness_policies = rs <EOL> return rs <EOL> elif name == '<STR_LIT>' : <EOL> rs = ResultSet ( [ ( '<STR_LIT>' , LBCookieStickinessPolicy ) ] ) <EOL> self . lb_cookie_stickiness_policies = rs <EOL> return rs <EOL> elif name == '<STR_LIT>' : <EOL> rs = ResultSet ( [ ( '<STR_LIT>' , OtherPolicy ) ] ) <EOL> self . other_policies = rs <EOL> return rs <EOL> def endElement ( self , name , value , connection ) : <EOL> return </s>
