# coding: utf-8
# Copyright (c) 2016, 2026, Oracle and/or its affiliates.  All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.

# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220919


from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
from oci.decorators import init_model_state_from_kwargs


@init_model_state_from_kwargs
class OlvmAgent(object):
    """
    Type representing a fence agent.
    """

    def __init__(self, **kwargs):
        """
        Initializes a new OlvmAgent object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param address:
            The value to assign to the address property of this OlvmAgent.
        :type address: str

        :param comment:
            The value to assign to the comment property of this OlvmAgent.
        :type comment: str

        :param is_concurrent:
            The value to assign to the is_concurrent property of this OlvmAgent.
        :type is_concurrent: bool

        :param description:
            The value to assign to the description property of this OlvmAgent.
        :type description: str

        :param is_encrypt_options:
            The value to assign to the is_encrypt_options property of this OlvmAgent.
        :type is_encrypt_options: bool

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

        :param name:
            The value to assign to the name property of this OlvmAgent.
        :type name: str

        :param order:
            The value to assign to the order property of this OlvmAgent.
        :type order: int

        :param port:
            The value to assign to the port property of this OlvmAgent.
        :type port: int

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

        :param username:
            The value to assign to the username property of this OlvmAgent.
        :type username: str

        """
        self.swagger_types = {
            'address': 'str',
            'comment': 'str',
            'is_concurrent': 'bool',
            'description': 'str',
            'is_encrypt_options': 'bool',
            'id': 'str',
            'name': 'str',
            'order': 'int',
            'port': 'int',
            'type': 'str',
            'username': 'str'
        }
        self.attribute_map = {
            'address': 'address',
            'comment': 'comment',
            'is_concurrent': 'isConcurrent',
            'description': 'description',
            'is_encrypt_options': 'isEncryptOptions',
            'id': 'id',
            'name': 'name',
            'order': 'order',
            'port': 'port',
            'type': 'type',
            'username': 'username'
        }
        self._address = None
        self._comment = None
        self._is_concurrent = None
        self._description = None
        self._is_encrypt_options = None
        self._id = None
        self._name = None
        self._order = None
        self._port = None
        self._type = None
        self._username = None

    @property
    def address(self):
        """
        Gets the address of this OlvmAgent.
        Fence agent address


        :return: The address of this OlvmAgent.
        :rtype: str
        """
        return self._address

    @address.setter
    def address(self, address):
        """
        Sets the address of this OlvmAgent.
        Fence agent address


        :param address: The address of this OlvmAgent.
        :type: str
        """
        self._address = address

    @property
    def comment(self):
        """
        Gets the comment of this OlvmAgent.
        Free text containing comments about this object.


        :return: The comment of this OlvmAgent.
        :rtype: str
        """
        return self._comment

    @comment.setter
    def comment(self, comment):
        """
        Sets the comment of this OlvmAgent.
        Free text containing comments about this object.


        :param comment: The comment of this OlvmAgent.
        :type: str
        """
        self._comment = comment

    @property
    def is_concurrent(self):
        """
        Gets the is_concurrent of this OlvmAgent.
        Specified whether the agent should be used concurrently or sequentially


        :return: The is_concurrent of this OlvmAgent.
        :rtype: bool
        """
        return self._is_concurrent

    @is_concurrent.setter
    def is_concurrent(self, is_concurrent):
        """
        Sets the is_concurrent of this OlvmAgent.
        Specified whether the agent should be used concurrently or sequentially


        :param is_concurrent: The is_concurrent of this OlvmAgent.
        :type: bool
        """
        self._is_concurrent = is_concurrent

    @property
    def description(self):
        """
        Gets the description of this OlvmAgent.
        Free text containing comments about this object.


        :return: The description of this OlvmAgent.
        :rtype: str
        """
        return self._description

    @description.setter
    def description(self, description):
        """
        Sets the description of this OlvmAgent.
        Free text containing comments about this object.


        :param description: The description of this OlvmAgent.
        :type: str
        """
        self._description = description

    @property
    def is_encrypt_options(self):
        """
        Gets the is_encrypt_options of this OlvmAgent.
        Specifies whether the options should be encrypted.


        :return: The is_encrypt_options of this OlvmAgent.
        :rtype: bool
        """
        return self._is_encrypt_options

    @is_encrypt_options.setter
    def is_encrypt_options(self, is_encrypt_options):
        """
        Sets the is_encrypt_options of this OlvmAgent.
        Specifies whether the options should be encrypted.


        :param is_encrypt_options: The is_encrypt_options of this OlvmAgent.
        :type: bool
        """
        self._is_encrypt_options = is_encrypt_options

    @property
    def id(self):
        """
        Gets the id of this OlvmAgent.
        A unique identifier.


        :return: The id of this OlvmAgent.
        :rtype: str
        """
        return self._id

    @id.setter
    def id(self, id):
        """
        Sets the id of this OlvmAgent.
        A unique identifier.


        :param id: The id of this OlvmAgent.
        :type: str
        """
        self._id = id

    @property
    def name(self):
        """
        Gets the name of this OlvmAgent.
        A human-readable name in plain text


        :return: The name of this OlvmAgent.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this OlvmAgent.
        A human-readable name in plain text


        :param name: The name of this OlvmAgent.
        :type: str
        """
        self._name = name

    @property
    def order(self):
        """
        Gets the order of this OlvmAgent.
        The order of this agent if used with other agents.


        :return: The order of this OlvmAgent.
        :rtype: int
        """
        return self._order

    @order.setter
    def order(self, order):
        """
        Sets the order of this OlvmAgent.
        The order of this agent if used with other agents.


        :param order: The order of this OlvmAgent.
        :type: int
        """
        self._order = order

    @property
    def port(self):
        """
        Gets the port of this OlvmAgent.
        Fence agent port.


        :return: The port of this OlvmAgent.
        :rtype: int
        """
        return self._port

    @port.setter
    def port(self, port):
        """
        Sets the port of this OlvmAgent.
        Fence agent port.


        :param port: The port of this OlvmAgent.
        :type: int
        """
        self._port = port

    @property
    def type(self):
        """
        Gets the type of this OlvmAgent.
        Fence agent type.


        :return: The type of this OlvmAgent.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this OlvmAgent.
        Fence agent type.


        :param type: The type of this OlvmAgent.
        :type: str
        """
        self._type = type

    @property
    def username(self):
        """
        Gets the username of this OlvmAgent.
        Fence agent user name.


        :return: The username of this OlvmAgent.
        :rtype: str
        """
        return self._username

    @username.setter
    def username(self, username):
        """
        Sets the username of this OlvmAgent.
        Fence agent user name.


        :param username: The username of this OlvmAgent.
        :type: str
        """
        self._username = username

    def __repr__(self):
        return formatted_flat_dict(self)

    def __eq__(self, other):
        if other is None:
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        return not self == other
