# coding: utf-8

"""
Copyright 2016 SmartBear Software

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

    Ref: https://github.com/swagger-api/swagger-codegen
"""

from datetime import datetime
from datetime import date
from pprint import pformat
from six import iteritems
import re
import json

from ..utils import sanitize_for_serialization

# type hinting support
from typing import TYPE_CHECKING
from typing import List
from typing import Dict

if TYPE_CHECKING:
    from . import ContactSort
    from . import DomainEntityRef
    from . import DynamicContactQueueingSettings
    from . import PhoneColumn
    from . import RestErrorDetail

class Campaign(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """
    def __init__(self) -> None:
        """
        Campaign - a model defined in Swagger

        :param dict swaggerTypes: The key is attribute name
                                  and the value is attribute type.
        :param dict attributeMap: The key is attribute name
                                  and the value is json key in definition.
        """
        self.swagger_types = {
            'id': 'str',
            'name': 'str',
            'date_created': 'datetime',
            'date_modified': 'datetime',
            'version': 'int',
            'contact_list': 'DomainEntityRef',
            'queue': 'DomainEntityRef',
            'dialing_mode': 'str',
            'script': 'DomainEntityRef',
            'edge_group': 'DomainEntityRef',
            'site': 'DomainEntityRef',
            'campaign_status': 'str',
            'phone_columns': 'list[PhoneColumn]',
            'abandon_rate': 'float',
            'dnc_lists': 'list[DomainEntityRef]',
            'callable_time_set': 'DomainEntityRef',
            'call_analysis_response_set': 'DomainEntityRef',
            'errors': 'list[RestErrorDetail]',
            'caller_name': 'str',
            'caller_address': 'str',
            'outbound_line_count': 'int',
            'rule_sets': 'list[DomainEntityRef]',
            'skip_preview_disabled': 'bool',
            'preview_time_out_seconds': 'int',
            'always_running': 'bool',
            'contact_sort': 'ContactSort',
            'contact_sorts': 'list[ContactSort]',
            'no_answer_timeout': 'int',
            'call_analysis_language': 'str',
            'priority': 'int',
            'contact_list_filters': 'list[DomainEntityRef]',
            'division': 'DomainEntityRef',
            'dynamic_contact_queueing_settings': 'DynamicContactQueueingSettings',
            'self_uri': 'str'
        }

        self.attribute_map = {
            'id': 'id',
            'name': 'name',
            'date_created': 'dateCreated',
            'date_modified': 'dateModified',
            'version': 'version',
            'contact_list': 'contactList',
            'queue': 'queue',
            'dialing_mode': 'dialingMode',
            'script': 'script',
            'edge_group': 'edgeGroup',
            'site': 'site',
            'campaign_status': 'campaignStatus',
            'phone_columns': 'phoneColumns',
            'abandon_rate': 'abandonRate',
            'dnc_lists': 'dncLists',
            'callable_time_set': 'callableTimeSet',
            'call_analysis_response_set': 'callAnalysisResponseSet',
            'errors': 'errors',
            'caller_name': 'callerName',
            'caller_address': 'callerAddress',
            'outbound_line_count': 'outboundLineCount',
            'rule_sets': 'ruleSets',
            'skip_preview_disabled': 'skipPreviewDisabled',
            'preview_time_out_seconds': 'previewTimeOutSeconds',
            'always_running': 'alwaysRunning',
            'contact_sort': 'contactSort',
            'contact_sorts': 'contactSorts',
            'no_answer_timeout': 'noAnswerTimeout',
            'call_analysis_language': 'callAnalysisLanguage',
            'priority': 'priority',
            'contact_list_filters': 'contactListFilters',
            'division': 'division',
            'dynamic_contact_queueing_settings': 'dynamicContactQueueingSettings',
            'self_uri': 'selfUri'
        }

        self._id = None
        self._name = None
        self._date_created = None
        self._date_modified = None
        self._version = None
        self._contact_list = None
        self._queue = None
        self._dialing_mode = None
        self._script = None
        self._edge_group = None
        self._site = None
        self._campaign_status = None
        self._phone_columns = None
        self._abandon_rate = None
        self._dnc_lists = None
        self._callable_time_set = None
        self._call_analysis_response_set = None
        self._errors = None
        self._caller_name = None
        self._caller_address = None
        self._outbound_line_count = None
        self._rule_sets = None
        self._skip_preview_disabled = None
        self._preview_time_out_seconds = None
        self._always_running = None
        self._contact_sort = None
        self._contact_sorts = None
        self._no_answer_timeout = None
        self._call_analysis_language = None
        self._priority = None
        self._contact_list_filters = None
        self._division = None
        self._dynamic_contact_queueing_settings = None
        self._self_uri = None

    @property
    def id(self) -> str:
        """
        Gets the id of this Campaign.
        The globally unique identifier for the object.

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

    @id.setter
    def id(self, id: str) -> None:
        """
        Sets the id of this Campaign.
        The globally unique identifier for the object.

        :param id: The id of this Campaign.
        :type: str
        """
        

        self._id = id

    @property
    def name(self) -> str:
        """
        Gets the name of this Campaign.
        The name of the Campaign.

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

    @name.setter
    def name(self, name: str) -> None:
        """
        Sets the name of this Campaign.
        The name of the Campaign.

        :param name: The name of this Campaign.
        :type: str
        """
        

        self._name = name

    @property
    def date_created(self) -> datetime:
        """
        Gets the date_created of this Campaign.
        Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z

        :return: The date_created of this Campaign.
        :rtype: datetime
        """
        return self._date_created

    @date_created.setter
    def date_created(self, date_created: datetime) -> None:
        """
        Sets the date_created of this Campaign.
        Creation time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z

        :param date_created: The date_created of this Campaign.
        :type: datetime
        """
        

        self._date_created = date_created

    @property
    def date_modified(self) -> datetime:
        """
        Gets the date_modified of this Campaign.
        Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z

        :return: The date_modified of this Campaign.
        :rtype: datetime
        """
        return self._date_modified

    @date_modified.setter
    def date_modified(self, date_modified: datetime) -> None:
        """
        Sets the date_modified of this Campaign.
        Last modified time of the entity. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z

        :param date_modified: The date_modified of this Campaign.
        :type: datetime
        """
        

        self._date_modified = date_modified

    @property
    def version(self) -> int:
        """
        Gets the version of this Campaign.
        Required for updates, must match the version number of the most recent update

        :return: The version of this Campaign.
        :rtype: int
        """
        return self._version

    @version.setter
    def version(self, version: int) -> None:
        """
        Sets the version of this Campaign.
        Required for updates, must match the version number of the most recent update

        :param version: The version of this Campaign.
        :type: int
        """
        

        self._version = version

    @property
    def contact_list(self) -> 'DomainEntityRef':
        """
        Gets the contact_list of this Campaign.
        The ContactList for this Campaign to dial.

        :return: The contact_list of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._contact_list

    @contact_list.setter
    def contact_list(self, contact_list: 'DomainEntityRef') -> None:
        """
        Sets the contact_list of this Campaign.
        The ContactList for this Campaign to dial.

        :param contact_list: The contact_list of this Campaign.
        :type: DomainEntityRef
        """
        

        self._contact_list = contact_list

    @property
    def queue(self) -> 'DomainEntityRef':
        """
        Gets the queue of this Campaign.
        The Queue for this Campaign to route calls to. Required for all dialing modes except agentless.

        :return: The queue of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._queue

    @queue.setter
    def queue(self, queue: 'DomainEntityRef') -> None:
        """
        Sets the queue of this Campaign.
        The Queue for this Campaign to route calls to. Required for all dialing modes except agentless.

        :param queue: The queue of this Campaign.
        :type: DomainEntityRef
        """
        

        self._queue = queue

    @property
    def dialing_mode(self) -> str:
        """
        Gets the dialing_mode of this Campaign.
        The strategy this Campaign will use for dialing.

        :return: The dialing_mode of this Campaign.
        :rtype: str
        """
        return self._dialing_mode

    @dialing_mode.setter
    def dialing_mode(self, dialing_mode: str) -> None:
        """
        Sets the dialing_mode of this Campaign.
        The strategy this Campaign will use for dialing.

        :param dialing_mode: The dialing_mode of this Campaign.
        :type: str
        """
        allowed_values = ["agentless", "preview", "power", "predictive", "progressive", "external"]
        if dialing_mode.lower() not in map(str.lower, allowed_values):
            # print("Invalid value for dialing_mode -> " + dialing_mode)
            self._dialing_mode = "outdated_sdk_version"
        else:
            self._dialing_mode = dialing_mode

    @property
    def script(self) -> 'DomainEntityRef':
        """
        Gets the script of this Campaign.
        The Script to be displayed to agents that are handling outbound calls. Required for all dialing modes except agentless.

        :return: The script of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._script

    @script.setter
    def script(self, script: 'DomainEntityRef') -> None:
        """
        Sets the script of this Campaign.
        The Script to be displayed to agents that are handling outbound calls. Required for all dialing modes except agentless.

        :param script: The script of this Campaign.
        :type: DomainEntityRef
        """
        

        self._script = script

    @property
    def edge_group(self) -> 'DomainEntityRef':
        """
        Gets the edge_group of this Campaign.
        The EdgeGroup that will place the calls. Required for all dialing modes except preview.

        :return: The edge_group of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._edge_group

    @edge_group.setter
    def edge_group(self, edge_group: 'DomainEntityRef') -> None:
        """
        Sets the edge_group of this Campaign.
        The EdgeGroup that will place the calls. Required for all dialing modes except preview.

        :param edge_group: The edge_group of this Campaign.
        :type: DomainEntityRef
        """
        

        self._edge_group = edge_group

    @property
    def site(self) -> 'DomainEntityRef':
        """
        Gets the site of this Campaign.
        The identifier of the site to be used for dialing; can be set in place of an edge group.

        :return: The site of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._site

    @site.setter
    def site(self, site: 'DomainEntityRef') -> None:
        """
        Sets the site of this Campaign.
        The identifier of the site to be used for dialing; can be set in place of an edge group.

        :param site: The site of this Campaign.
        :type: DomainEntityRef
        """
        

        self._site = site

    @property
    def campaign_status(self) -> str:
        """
        Gets the campaign_status of this Campaign.
        The current status of the Campaign. A Campaign may be turned 'on' or 'off'. Required for updates.

        :return: The campaign_status of this Campaign.
        :rtype: str
        """
        return self._campaign_status

    @campaign_status.setter
    def campaign_status(self, campaign_status: str) -> None:
        """
        Sets the campaign_status of this Campaign.
        The current status of the Campaign. A Campaign may be turned 'on' or 'off'. Required for updates.

        :param campaign_status: The campaign_status of this Campaign.
        :type: str
        """
        allowed_values = ["on", "stopping", "off", "complete", "invalid", "forced_off", "forced_stopping"]
        if campaign_status.lower() not in map(str.lower, allowed_values):
            # print("Invalid value for campaign_status -> " + campaign_status)
            self._campaign_status = "outdated_sdk_version"
        else:
            self._campaign_status = campaign_status

    @property
    def phone_columns(self) -> List['PhoneColumn']:
        """
        Gets the phone_columns of this Campaign.
        The ContactPhoneNumberColumns on the ContactList that this Campaign should dial.

        :return: The phone_columns of this Campaign.
        :rtype: list[PhoneColumn]
        """
        return self._phone_columns

    @phone_columns.setter
    def phone_columns(self, phone_columns: List['PhoneColumn']) -> None:
        """
        Sets the phone_columns of this Campaign.
        The ContactPhoneNumberColumns on the ContactList that this Campaign should dial.

        :param phone_columns: The phone_columns of this Campaign.
        :type: list[PhoneColumn]
        """
        

        self._phone_columns = phone_columns

    @property
    def abandon_rate(self) -> float:
        """
        Gets the abandon_rate of this Campaign.
        The targeted abandon rate percentage. Required for progressive, power, and predictive campaigns.

        :return: The abandon_rate of this Campaign.
        :rtype: float
        """
        return self._abandon_rate

    @abandon_rate.setter
    def abandon_rate(self, abandon_rate: float) -> None:
        """
        Sets the abandon_rate of this Campaign.
        The targeted abandon rate percentage. Required for progressive, power, and predictive campaigns.

        :param abandon_rate: The abandon_rate of this Campaign.
        :type: float
        """
        

        self._abandon_rate = abandon_rate

    @property
    def dnc_lists(self) -> List['DomainEntityRef']:
        """
        Gets the dnc_lists of this Campaign.
        DncLists for this Campaign to check before placing a call.

        :return: The dnc_lists of this Campaign.
        :rtype: list[DomainEntityRef]
        """
        return self._dnc_lists

    @dnc_lists.setter
    def dnc_lists(self, dnc_lists: List['DomainEntityRef']) -> None:
        """
        Sets the dnc_lists of this Campaign.
        DncLists for this Campaign to check before placing a call.

        :param dnc_lists: The dnc_lists of this Campaign.
        :type: list[DomainEntityRef]
        """
        

        self._dnc_lists = dnc_lists

    @property
    def callable_time_set(self) -> 'DomainEntityRef':
        """
        Gets the callable_time_set of this Campaign.
        The callable time set for this campaign to check before placing a call.

        :return: The callable_time_set of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._callable_time_set

    @callable_time_set.setter
    def callable_time_set(self, callable_time_set: 'DomainEntityRef') -> None:
        """
        Sets the callable_time_set of this Campaign.
        The callable time set for this campaign to check before placing a call.

        :param callable_time_set: The callable_time_set of this Campaign.
        :type: DomainEntityRef
        """
        

        self._callable_time_set = callable_time_set

    @property
    def call_analysis_response_set(self) -> 'DomainEntityRef':
        """
        Gets the call_analysis_response_set of this Campaign.
        The call analysis response set to handle call analysis results from the edge. Required for all dialing modes except preview.

        :return: The call_analysis_response_set of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._call_analysis_response_set

    @call_analysis_response_set.setter
    def call_analysis_response_set(self, call_analysis_response_set: 'DomainEntityRef') -> None:
        """
        Sets the call_analysis_response_set of this Campaign.
        The call analysis response set to handle call analysis results from the edge. Required for all dialing modes except preview.

        :param call_analysis_response_set: The call_analysis_response_set of this Campaign.
        :type: DomainEntityRef
        """
        

        self._call_analysis_response_set = call_analysis_response_set

    @property
    def errors(self) -> List['RestErrorDetail']:
        """
        Gets the errors of this Campaign.
        A list of current error conditions associated with the campaign.

        :return: The errors of this Campaign.
        :rtype: list[RestErrorDetail]
        """
        return self._errors

    @errors.setter
    def errors(self, errors: List['RestErrorDetail']) -> None:
        """
        Sets the errors of this Campaign.
        A list of current error conditions associated with the campaign.

        :param errors: The errors of this Campaign.
        :type: list[RestErrorDetail]
        """
        

        self._errors = errors

    @property
    def caller_name(self) -> str:
        """
        Gets the caller_name of this Campaign.
        The caller id name to be displayed on the outbound call.

        :return: The caller_name of this Campaign.
        :rtype: str
        """
        return self._caller_name

    @caller_name.setter
    def caller_name(self, caller_name: str) -> None:
        """
        Sets the caller_name of this Campaign.
        The caller id name to be displayed on the outbound call.

        :param caller_name: The caller_name of this Campaign.
        :type: str
        """
        

        self._caller_name = caller_name

    @property
    def caller_address(self) -> str:
        """
        Gets the caller_address of this Campaign.
        The caller id phone number to be displayed on the outbound call.

        :return: The caller_address of this Campaign.
        :rtype: str
        """
        return self._caller_address

    @caller_address.setter
    def caller_address(self, caller_address: str) -> None:
        """
        Sets the caller_address of this Campaign.
        The caller id phone number to be displayed on the outbound call.

        :param caller_address: The caller_address of this Campaign.
        :type: str
        """
        

        self._caller_address = caller_address

    @property
    def outbound_line_count(self) -> int:
        """
        Gets the outbound_line_count of this Campaign.
        The number of outbound lines to be concurrently dialed. Only applicable to non-preview campaigns; only required for agentless.

        :return: The outbound_line_count of this Campaign.
        :rtype: int
        """
        return self._outbound_line_count

    @outbound_line_count.setter
    def outbound_line_count(self, outbound_line_count: int) -> None:
        """
        Sets the outbound_line_count of this Campaign.
        The number of outbound lines to be concurrently dialed. Only applicable to non-preview campaigns; only required for agentless.

        :param outbound_line_count: The outbound_line_count of this Campaign.
        :type: int
        """
        

        self._outbound_line_count = outbound_line_count

    @property
    def rule_sets(self) -> List['DomainEntityRef']:
        """
        Gets the rule_sets of this Campaign.
        Rule sets to be applied while this campaign is dialing.

        :return: The rule_sets of this Campaign.
        :rtype: list[DomainEntityRef]
        """
        return self._rule_sets

    @rule_sets.setter
    def rule_sets(self, rule_sets: List['DomainEntityRef']) -> None:
        """
        Sets the rule_sets of this Campaign.
        Rule sets to be applied while this campaign is dialing.

        :param rule_sets: The rule_sets of this Campaign.
        :type: list[DomainEntityRef]
        """
        

        self._rule_sets = rule_sets

    @property
    def skip_preview_disabled(self) -> bool:
        """
        Gets the skip_preview_disabled of this Campaign.
        Whether or not agents can skip previews without placing a call. Only applicable for preview campaigns.

        :return: The skip_preview_disabled of this Campaign.
        :rtype: bool
        """
        return self._skip_preview_disabled

    @skip_preview_disabled.setter
    def skip_preview_disabled(self, skip_preview_disabled: bool) -> None:
        """
        Sets the skip_preview_disabled of this Campaign.
        Whether or not agents can skip previews without placing a call. Only applicable for preview campaigns.

        :param skip_preview_disabled: The skip_preview_disabled of this Campaign.
        :type: bool
        """
        

        self._skip_preview_disabled = skip_preview_disabled

    @property
    def preview_time_out_seconds(self) -> int:
        """
        Gets the preview_time_out_seconds of this Campaign.
        The number of seconds before a call will be automatically placed on a preview. A value of 0 indicates no automatic placement of calls. Only applicable to preview campaigns.

        :return: The preview_time_out_seconds of this Campaign.
        :rtype: int
        """
        return self._preview_time_out_seconds

    @preview_time_out_seconds.setter
    def preview_time_out_seconds(self, preview_time_out_seconds: int) -> None:
        """
        Sets the preview_time_out_seconds of this Campaign.
        The number of seconds before a call will be automatically placed on a preview. A value of 0 indicates no automatic placement of calls. Only applicable to preview campaigns.

        :param preview_time_out_seconds: The preview_time_out_seconds of this Campaign.
        :type: int
        """
        

        self._preview_time_out_seconds = preview_time_out_seconds

    @property
    def always_running(self) -> bool:
        """
        Gets the always_running of this Campaign.
        Indicates (when true) that the campaign will remain on after contacts are depleted, allowing additional contacts to be appended/added to the contact list and processed by the still-running campaign. The campaign can still be turned off manually.

        :return: The always_running of this Campaign.
        :rtype: bool
        """
        return self._always_running

    @always_running.setter
    def always_running(self, always_running: bool) -> None:
        """
        Sets the always_running of this Campaign.
        Indicates (when true) that the campaign will remain on after contacts are depleted, allowing additional contacts to be appended/added to the contact list and processed by the still-running campaign. The campaign can still be turned off manually.

        :param always_running: The always_running of this Campaign.
        :type: bool
        """
        

        self._always_running = always_running

    @property
    def contact_sort(self) -> 'ContactSort':
        """
        Gets the contact_sort of this Campaign.
        The order in which to sort contacts for dialing, based on a column.

        :return: The contact_sort of this Campaign.
        :rtype: ContactSort
        """
        return self._contact_sort

    @contact_sort.setter
    def contact_sort(self, contact_sort: 'ContactSort') -> None:
        """
        Sets the contact_sort of this Campaign.
        The order in which to sort contacts for dialing, based on a column.

        :param contact_sort: The contact_sort of this Campaign.
        :type: ContactSort
        """
        

        self._contact_sort = contact_sort

    @property
    def contact_sorts(self) -> List['ContactSort']:
        """
        Gets the contact_sorts of this Campaign.
        The order in which to sort contacts for dialing, based on up to four columns.

        :return: The contact_sorts of this Campaign.
        :rtype: list[ContactSort]
        """
        return self._contact_sorts

    @contact_sorts.setter
    def contact_sorts(self, contact_sorts: List['ContactSort']) -> None:
        """
        Sets the contact_sorts of this Campaign.
        The order in which to sort contacts for dialing, based on up to four columns.

        :param contact_sorts: The contact_sorts of this Campaign.
        :type: list[ContactSort]
        """
        

        self._contact_sorts = contact_sorts

    @property
    def no_answer_timeout(self) -> int:
        """
        Gets the no_answer_timeout of this Campaign.
        How long to wait before dispositioning a call as 'no-answer'. Default 30 seconds. Only applicable to non-preview campaigns.

        :return: The no_answer_timeout of this Campaign.
        :rtype: int
        """
        return self._no_answer_timeout

    @no_answer_timeout.setter
    def no_answer_timeout(self, no_answer_timeout: int) -> None:
        """
        Sets the no_answer_timeout of this Campaign.
        How long to wait before dispositioning a call as 'no-answer'. Default 30 seconds. Only applicable to non-preview campaigns.

        :param no_answer_timeout: The no_answer_timeout of this Campaign.
        :type: int
        """
        

        self._no_answer_timeout = no_answer_timeout

    @property
    def call_analysis_language(self) -> str:
        """
        Gets the call_analysis_language of this Campaign.
        The language the edge will use to analyze the call.

        :return: The call_analysis_language of this Campaign.
        :rtype: str
        """
        return self._call_analysis_language

    @call_analysis_language.setter
    def call_analysis_language(self, call_analysis_language: str) -> None:
        """
        Sets the call_analysis_language of this Campaign.
        The language the edge will use to analyze the call.

        :param call_analysis_language: The call_analysis_language of this Campaign.
        :type: str
        """
        

        self._call_analysis_language = call_analysis_language

    @property
    def priority(self) -> int:
        """
        Gets the priority of this Campaign.
        The priority of this campaign relative to other campaigns that are running on the same queue. 5 is the highest priority, 1 the lowest.

        :return: The priority of this Campaign.
        :rtype: int
        """
        return self._priority

    @priority.setter
    def priority(self, priority: int) -> None:
        """
        Sets the priority of this Campaign.
        The priority of this campaign relative to other campaigns that are running on the same queue. 5 is the highest priority, 1 the lowest.

        :param priority: The priority of this Campaign.
        :type: int
        """
        

        self._priority = priority

    @property
    def contact_list_filters(self) -> List['DomainEntityRef']:
        """
        Gets the contact_list_filters of this Campaign.
        Filter to apply to the contact list before dialing. Currently a campaign can only have one filter applied.

        :return: The contact_list_filters of this Campaign.
        :rtype: list[DomainEntityRef]
        """
        return self._contact_list_filters

    @contact_list_filters.setter
    def contact_list_filters(self, contact_list_filters: List['DomainEntityRef']) -> None:
        """
        Sets the contact_list_filters of this Campaign.
        Filter to apply to the contact list before dialing. Currently a campaign can only have one filter applied.

        :param contact_list_filters: The contact_list_filters of this Campaign.
        :type: list[DomainEntityRef]
        """
        

        self._contact_list_filters = contact_list_filters

    @property
    def division(self) -> 'DomainEntityRef':
        """
        Gets the division of this Campaign.
        The division this campaign belongs to.

        :return: The division of this Campaign.
        :rtype: DomainEntityRef
        """
        return self._division

    @division.setter
    def division(self, division: 'DomainEntityRef') -> None:
        """
        Sets the division of this Campaign.
        The division this campaign belongs to.

        :param division: The division of this Campaign.
        :type: DomainEntityRef
        """
        

        self._division = division

    @property
    def dynamic_contact_queueing_settings(self) -> 'DynamicContactQueueingSettings':
        """
        Gets the dynamic_contact_queueing_settings of this Campaign.
        Settings for dynamic queueing of contacts.

        :return: The dynamic_contact_queueing_settings of this Campaign.
        :rtype: DynamicContactQueueingSettings
        """
        return self._dynamic_contact_queueing_settings

    @dynamic_contact_queueing_settings.setter
    def dynamic_contact_queueing_settings(self, dynamic_contact_queueing_settings: 'DynamicContactQueueingSettings') -> None:
        """
        Sets the dynamic_contact_queueing_settings of this Campaign.
        Settings for dynamic queueing of contacts.

        :param dynamic_contact_queueing_settings: The dynamic_contact_queueing_settings of this Campaign.
        :type: DynamicContactQueueingSettings
        """
        

        self._dynamic_contact_queueing_settings = dynamic_contact_queueing_settings

    @property
    def self_uri(self) -> str:
        """
        Gets the self_uri of this Campaign.
        The URI for this object

        :return: The self_uri of this Campaign.
        :rtype: str
        """
        return self._self_uri

    @self_uri.setter
    def self_uri(self, self_uri: str) -> None:
        """
        Sets the self_uri of this Campaign.
        The URI for this object

        :param self_uri: The self_uri of this Campaign.
        :type: str
        """
        

        self._self_uri = self_uri

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_json(self):
        """
        Returns the model as raw JSON
        """
        return json.dumps(sanitize_for_serialization(self.to_dict()))

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return pformat(self.to_dict())

    def __repr__(self):
        """
        For `print` and `pprint`
        """
        return self.to_str()

    def __eq__(self, other):
        """
        Returns true if both objects are equal
        """
        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other

