File: //lib/python3.9/site-packages/oci/load_balancer/models/__pycache__/backend.cpython-39.pyc
a
���f?( � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed
d� �Z e jdd� �Z ed
d� �Z
e
jdd� �Z
edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Z
e
jdd� �Z
edd� �Zejdd� �Zdd� Zdd� Zd d!� Zd"S )#�Backendz�
The configuration of a backend server that is a member of a load balancer backend set.
For more information, see `Managing Backend Servers`__.
__ https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm
c K sd ddddddddd�| _ ddddd d
ddd�| _d
| _d
| _d
| _d
| _d
| _d
| _d
| _d
| _ d
S )a�
Initializes a new Backend object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param name:
The value to assign to the name property of this Backend.
:type name: str
:param ip_address:
The value to assign to the ip_address property of this Backend.
:type ip_address: str
:param port:
The value to assign to the port property of this Backend.
:type port: int
:param weight:
The value to assign to the weight property of this Backend.
:type weight: int
:param max_connections:
The value to assign to the max_connections property of this Backend.
:type max_connections: int
:param drain:
The value to assign to the drain property of this Backend.
:type drain: bool
:param backup:
The value to assign to the backup property of this Backend.
:type backup: bool
:param offline:
The value to assign to the offline property of this Backend.
:type offline: bool
�str�int�bool)�name�
ip_address�port�weight�max_connections�drain�backup�offliner
Z ipAddressr r
ZmaxConnectionsr r r N)
Z
swagger_typesZ
attribute_map�_name�_ip_address�_port�_weight�_max_connections�_drain�_backup�_offline)�self�kwargs� r �D/usr/lib/python3.9/site-packages/oci/load_balancer/models/backend.py�__init__ s4 '��zBackend.__init__c C s | j S )a
**[Required]** Gets the name of this Backend.
A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
Example: `10.0.0.3:8080`
:return: The name of this Backend.
:rtype: str
�r �r r r r r
Z s zBackend.namec C s
|| _ dS )a
Sets the name of this Backend.
A read-only field showing the IP address and port that uniquely identify this backend server in the backend set.
Example: `10.0.0.3:8080`
:param name: The name of this Backend.
:type: str
Nr )r r
r r r r
h s c C s | j S )z�
**[Required]** Gets the ip_address of this Backend.
The IP address of the backend server.
Example: `10.0.0.3`
:return: The ip_address of this Backend.
:rtype: str
�r r r r r r v s zBackend.ip_addressc C s
|| _ dS )z�
Sets the ip_address of this Backend.
The IP address of the backend server.
Example: `10.0.0.3`
:param ip_address: The ip_address of this Backend.
:type: str
Nr! )r r r r r r � s c C s | j S )z�
**[Required]** Gets the port of this Backend.
The communication port for the backend server.
Example: `8080`
:return: The port of this Backend.
:rtype: int
�r r r r r r � s zBackend.portc C s
|| _ dS )z�
Sets the port of this Backend.
The communication port for the backend server.
Example: `8080`
:param port: The port of this Backend.
:type: int
Nr"