U
    W¨+db
  ã                   @   s   G d d„ de ƒZdS )c                   @   s2   e Zd ZdZddd„Zdd„ Zdd„ Zd	d
„ ZdS )ÚInstanceStatez?
    Represents the state of an EC2 Load Balancer Instance
    Nc                 C   s"   || _ || _|| _|| _|| _dS )a8  
        :ivar boto.ec2.elb.loadbalancer.LoadBalancer load_balancer: The
            load balancer this instance is registered to.
        :ivar str description: A description of the instance.
        :ivar str instance_id: The EC2 instance ID.
        :ivar str reason_code: Provides information about the cause of
            an OutOfService instance. Specifically, it indicates whether the
            cause is Elastic Load Balancing or the instance behind the
            LoadBalancer.
        :ivar str state: Specifies the current state of the instance.
        N)Úload_balancerÚdescriptionÚstateÚinstance_idÚreason_code)Úselfr   r   r   r   r   © r   ú>/tmp/pip-unpacked-wheel-dlxw5sjy/boto/ec2/elb/instancestate.pyÚ__init__   s
    zInstanceState.__init__c                 C   s   d| j | jf S )NzInstanceState:(%s,%s))r   r   )r   r   r   r	   Ú__repr__/   s    zInstanceState.__repr__c                 C   s   d S )Nr   )r   ÚnameÚattrsÚ
connectionr   r   r	   ÚstartElement2   s    zInstanceState.startElementc                 C   sP   |dkr|| _ n<|dkr || _n,|dkr0|| _n|dkr@|| _nt| ||ƒ d S )NÚDescriptionÚStateZ
InstanceIdZ
ReasonCode)r   r   r   r   Úsetattr)r   r   Úvaluer   r   r   r	   Ú
endElement5   s    zInstanceState.endElement)NNNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r   r	   r      s         ÿ
r   N)Úobjectr   r   r   r   r	   Ú<module>   ó    