ó
è?F[c           @   sˆ   d  e  f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d	 „  ƒ  YZ d
 e f d „  ƒ  YZ d S(   t   Detailsc           B   s    e  Z d  Z d „  Z d „  Z RS(   s–   
    A dict object that contains name/value pairs which provide
    more detailed information about the status of the system
    or the instance.
    c         C   s   d  S(   N(   t   None(   t   selft   namet   attrst
   connection(    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyt   startElement    s    c         C   sH   | d k r | |  _  n, | d k r4 | |  |  j  <n t |  | | ƒ d  S(   NR   t   status(   t   _namet   setattr(   R   R   t   valueR   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyt
   endElement#   s
    (   t   __name__t
   __module__t   __doc__R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR       s   	t   Eventc           B   s>   e  Z d  Z d d d d d „ Z d „  Z d „  Z d „  Z RS(   sN  
    A status event for an instance.

    :ivar code: A string indicating the event type.
    :ivar description: A string describing the reason for the event.
    :ivar not_before: A datestring describing the earliest time for
        the event.
    :ivar not_after: A datestring describing the latest time for
        the event.
    c         C   s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   t   codet   descriptiont
   not_beforet	   not_after(   R   R   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyt   __init__8   s    			c         C   s   d |  j  S(   Ns   Event:%s(   R   (   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyt   __repr__?   s    c         C   s   d  S(   N(   R   (   R   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   B   s    c         C   st   | d k r | |  _  nX | d k r0 | |  _ n@ | d k rH | |  _ n( | d k r` | |  _ n t |  | | ƒ d  S(   NR   R   t	   notBeforet   notAfter(   R   R   R   R   R	   (   R   R   R
   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   E   s    N(   R   R   R   R   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   ,   s   
		t   Statusc           B   s8   e  Z d  Z d d d „ Z d „  Z d „  Z d „  Z RS(   s÷   
    A generic Status object used for system status and instance status.

    :ivar status: A string indicating overall status.
    :ivar details: A dict containing name-value pairs which provide
        more details about the current status.
    c         C   s(   | |  _  | s t ƒ  } n  | |  _ d  S(   N(   R   R    t   details(   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   [   s    	c         C   s   d |  j  S(   Ns	   Status:%s(   R   (   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   a   s    c         C   s   | d k r |  j  Sd  S(   NR   (   R   R   (   R   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   d   s    c         C   s,   | d k r | |  _  n t |  | | ƒ d  S(   NR   (   R   R	   (   R   R   R
   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   i   s    N(   R   R   R   R   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   R   s
   		t   EventSetc           B   s   e  Z d  „  Z d „  Z RS(   c         C   s.   | d k r& t  ƒ  } |  j | ƒ | Sd  Sd  S(   Nt   item(   R   t   appendR   (   R   R   R   R   t   event(    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   r   s
    	c         C   s   t  |  | | ƒ d  S(   N(   R	   (   R   R   R
   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   z   s    (   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   p   s   	t   InstanceStatusc           B   sA   e  Z d  Z d d d d d d „ Z d „  Z d „  Z d „  Z RS(   s%  
    Represents an EC2 Instance status as reported by
    DescribeInstanceStatus request.

    :ivar id: The instance identifier.
    :ivar zone: The availability zone of the instance.
    :ivar events: A list of events relevant to the instance.
    :ivar state_code: An integer representing the current state
        of the instance.
    :ivar state_name: A string describing the current state
        of the instance.
    :ivar system_status: A Status object that reports impaired
        functionality that stems from issues related to the systems
        that support an instance, such as such as hardware failures
        and network connectivity problems.
    :ivar instance_status: A Status object that reports impaired
        functionality that arises from problems internal to the instance.
    c         C   sI   | |  _  | |  _ | |  _ | |  _ | |  _ t ƒ  |  _ t ƒ  |  _ d  S(   N(   t   idt   zonet   eventst
   state_codet
   state_nameR   t   system_statust   instance_status(   R   R   R    R!   R"   R#   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   ’   s    					c         C   s   d |  j  S(   Ns   InstanceStatus:%s(   R   (   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   œ   s    c         C   sM   | d k r t  ƒ  |  _ |  j S| d k r2 |  j S| d k rE |  j Sd  Sd  S(   Nt	   eventsSett   systemStatust   instanceStatus(   R   R!   R$   R%   R   (   R   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   Ÿ   s    c         C   sz   | d k r | |  _  n^ | d k r0 | |  _ nF | d k rN t | ƒ |  _ n( | d k rf | |  _ n t |  | | ƒ d  S(   Nt
   instanceIdt   availabilityZoneR   R   (   R   R    t   intR"   R#   R	   (   R   R   R
   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   ª   s    N(   R   R   R   R   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   ~   s   				t   InstanceStatusSetc           B   s,   e  Z d  Z d d „ Z d „  Z d „  Z RS(   sž  
    A list object that contains the results of a call to
    DescribeInstanceStatus request.  Each element of the
    list will be an InstanceStatus object.

    :ivar next_token: If the response was truncated by
        the EC2 service, the next_token attribute of the
        object will contain the string that needs to be
        passed in to the next request to retrieve the next
        set of results.
    c         C   s#   t  j |  ƒ | |  _ d  |  _ d  S(   N(   t   listR   R   R   t
   next_token(   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   Ä   s    	c         C   s.   | d k r& t  ƒ  } |  j | ƒ | Sd  Sd  S(   NR   (   R   R   R   (   R   R   R   R   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   É   s
    	c         C   s,   | d k r | |  _  n  t |  | | ƒ d  S(   Nt	   nextToken(   R.   R	   (   R   R   R
   R   (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR   Ñ   s    N(   R   R   R   R   R   R   R   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyR,   ·   s   	N(	   t   dictR    t   objectR   R   R-   R   R   R,   (    (    (    s6   lib/python2.7/site-packages/boto/ec2/instancestatus.pyt   <module>   s
   &9