o
    rMf                     @   sT   G d d de ZG dd de ZG dd de ZG dd de ZG dd	 d	e Zd
S )c                   @   2   e Zd ZdZdddZdd Zdd Zd	d
 ZdS )ConnectionSettingAttributezE
    Represents the ConnectionSetting segment of ELB Attributes.
    Nc                 C   
   d | _ d S Nidle_timeoutself
connection r
   Y/var/www/html/analyze/labelStudio/lib/python3.10/site-packages/boto/ec2/elb/attributes.py__init__      
z#ConnectionSettingAttribute.__init__c                 C   
   d| j  S )NzConnectionSettingAttribute(%s)r   r   r
   r
   r   __repr__      z#ConnectionSettingAttribute.__repr__c                 C      d S r   r
   r   nameattrsr	   r
   r
   r   startElement!      z'ConnectionSettingAttribute.startElementc                 C   s   |dkrt || _d S d S )NIdleTimeout)intr   r   r   valuer	   r
   r
   r   
endElement$   s   z%ConnectionSettingAttribute.endElementr   __name__
__module____qualname____doc__r   r   r   r   r
   r
   r
   r   r          
r   c                   @   r   )CrossZoneLoadBalancingAttributezK
    Represents the CrossZoneLoadBalancing segement of ELB Attributes.
    Nc                 C   r   r   enabledr   r
   r
   r   r   ,   r   z(CrossZoneLoadBalancingAttribute.__init__c                 C   r   )Nz#CrossZoneLoadBalancingAttribute(%s)r$   r   r
   r
   r   r   /   r   z(CrossZoneLoadBalancingAttribute.__repr__c                 C   r   r   r
   r   r
   r
   r   r   3   r   z,CrossZoneLoadBalancingAttribute.startElementc                 C   s,   |dkr|  dkrd| _d S d| _d S d S )NEnabledtrueTF)lowerr%   r   r
   r
   r   r   6   s
   

z*CrossZoneLoadBalancingAttribute.endElementr   r   r
   r
   r
   r   r#   (   r"   r#   c                   @   r   )AccessLogAttributez=
    Represents the AccessLog segment of ELB attributes.
    Nc                 C   s   d | _ d | _d | _d | _d S r   r%   s3_bucket_names3_bucket_prefixemit_intervalr   r
   r
   r   r   B   s   
zAccessLogAttribute.__init__c                 C   s   d| j | j| j| jf S )NzAccessLog(%s, %s, %s, %s)r*   r   r
   r
   r   r   H   s   zAccessLogAttribute.__repr__c                 C   r   r   r
   r   r
   r
   r   r   P   r   zAccessLogAttribute.startElementc                 C   sf   |dkr|  dkrd| _d S d| _d S |dkr|| _d S |dkr&|| _d S |dkr1t|| _d S d S )Nr&   r'   TFS3BucketNameS3BucketPrefixEmitInterval)r(   r%   r+   r,   r   r-   r   r
   r
   r   r   S   s   



zAccessLogAttribute.endElementr   r   r
   r
   r
   r   r)   >   s    
r)   c                   @   r   )ConnectionDrainingAttributezF
    Represents the ConnectionDraining segment of ELB attributes.
    Nc                 C   s   d | _ d | _d S r   r%   timeoutr   r
   r
   r   r   e   s   
z$ConnectionDrainingAttribute.__init__c                 C   s   d| j | jf S )NzConnectionDraining(%s, %s)r2   r   r
   r
   r   r   i   s   z$ConnectionDrainingAttribute.__repr__c                 C   r   r   r
   r   r
   r
   r   r   o   r   z(ConnectionDrainingAttribute.startElementc                 C   sB   |dkr|  dkrd| _d S d| _d S |dkrt|| _d S d S )Nr&   r'   TFTimeout)r(   r%   r   r3   r   r
   r
   r   r   r   s   

z&ConnectionDrainingAttribute.endElementr   r   r
   r
   r
   r   r1   a   s    
r1   c                   @   r   )LbAttributesz@
    Represents the Attributes of an Elastic Load Balancer.
    Nc                 C   s:   || _ t| j | _t| j | _t| j | _t| j | _d S r   )	r	   r#   cross_zone_load_balancingr)   
access_logr1   connection_drainingr   connecting_settingsr   r
   r
   r   r      s   zLbAttributes.__init__c                 C   s(   dt | jt | jt | jt | jf S )NzLbAttributes(%s, %s, %s, %s))reprr6   r7   r8   r9   r   r
   r
   r   r      s   zLbAttributes.__repr__c                 C   s<   |dkr| j S |dkr| jS |dkr| jS |dkr| jS d S )NCrossZoneLoadBalancing	AccessLogConnectionDrainingConnectionSettings)r6   r7   r8   r9   r   r
   r
   r   r      s   zLbAttributes.startElementc                 C   r   r   r
   r   r
   r
   r   r      r   zLbAttributes.endElementr   r   r
   r
   r
   r   r5   |   s    

r5   N)objectr   r#   r)   r1   r5   r
   r
   r
   r   <module>   s
   #