o
    ëÉ¶d¦  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s˜   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
dd„ Zdd„ Zdd„ ZdS )Ú	Conditionz…
    A rule that defines a specific autoscaling action to take (scale in or scale out) and the metric that triggers that action.
    c                 K   s<   dddddœ| _ dddddœ| _d	| _d	| _d	| _d	| _d	S )
aï  
        Initializes a new Condition object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param action:
            The value to assign to the action property of this Condition.
        :type action: oci.autoscaling.models.Action

        :param display_name:
            The value to assign to the display_name property of this Condition.
        :type display_name: str

        :param id:
            The value to assign to the id property of this Condition.
        :type id: str

        :param metric:
            The value to assign to the metric property of this Condition.
        :type metric: oci.autoscaling.models.Metric

        ZActionÚstrZMetric)ÚactionÚdisplay_nameÚidÚmetricr   ZdisplayNamer
   r   N)Zswagger_typesZattribute_mapÚ_actionÚ_display_nameÚ_idÚ_metric)ÚselfÚkwargs© r   úDusr/lib/python3.10/site-packages/oci/autoscaling/models/condition.pyÚ__init__   s   üü
zCondition.__init__c                 C   ó   | j S )z¡
        **[Required]** Gets the action of this Condition.

        :return: The action of this Condition.
        :rtype: oci.autoscaling.models.Action
        ©r   ©r   r   r   r   r   ;   ó   zCondition.actionc                 C   ó
   || _ dS )z—
        Sets the action of this Condition.

        :param action: The action of this Condition.
        :type: oci.autoscaling.models.Action
        Nr   )r   r   r   r   r   r   E   ó   
c                 C   r   )zý
        Gets the display_name of this Condition.
        A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.


        :return: The display_name of this Condition.
        :rtype: str
        ©r   r   r   r   r   r	   O   ó   
zCondition.display_namec                 C   r   )a  
        Sets the display_name of this Condition.
        A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.


        :param display_name: The display_name of this Condition.
        :type: str
        Nr   )r   r	   r   r   r   r	   [   ó   

c                 C   r   )z®
        Gets the id of this Condition.
        ID of the condition that is assigned after creation.


        :return: The id of this Condition.
        :rtype: str
        ©r   r   r   r   r   r
   g   r   zCondition.idc                 C   r   )z¯
        Sets the id of this Condition.
        ID of the condition that is assigned after creation.


        :param id: The id of this Condition.
        :type: str
        Nr   )r   r
   r   r   r   r
   s   r   c                 C   r   )z¡
        **[Required]** Gets the metric of this Condition.

        :return: The metric of this Condition.
        :rtype: oci.autoscaling.models.Metric
        ©r   r   r   r   r   r      r   zCondition.metricc                 C   r   )z—
        Sets the metric of this Condition.

        :param metric: The metric of this Condition.
        :type: oci.autoscaling.models.Metric
        Nr   )r   r   r   r   r   r   ‰   r   c                 C   s   t | ƒS ©N)r   r   r   r   r   Ú__repr__“   s   zCondition.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__–   s   zCondition.__eq__c                 C   s
   | |k S r    r   r#   r   r   r   Ú__ne__œ   s   
zCondition.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr	   r
   r   r!   r%   r&   r   r   r   r   r      s,    )
	
	




	
	r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   