1# coding: utf-8
2# Copyright (c) 2016, 2021, Oracle and/or its affiliates.  All rights reserved.
3# 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.
4
5from .create_zone_base_details import CreateZoneBaseDetails
6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel  # noqa: F401
7from oci.decorators import init_model_state_from_kwargs
8
9
10@init_model_state_from_kwargs
11class CreateMigratedDynectZoneDetails(CreateZoneBaseDetails):
12    """
13    The body for migrating a zone from DynECT.
14
15    **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
16    """
17
18    def __init__(self, **kwargs):
19        """
20        Initializes a new CreateMigratedDynectZoneDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.dns.models.CreateMigratedDynectZoneDetails.migration_source` attribute
21        of this class is ``DYNECT`` and it should not be changed.
22        The following keyword arguments are supported (corresponding to the getters/setters of this class):
23
24        :param migration_source:
25            The value to assign to the migration_source property of this CreateMigratedDynectZoneDetails.
26            Allowed values for this property are: "NONE", "DYNECT"
27        :type migration_source: str
28
29        :param name:
30            The value to assign to the name property of this CreateMigratedDynectZoneDetails.
31        :type name: str
32
33        :param compartment_id:
34            The value to assign to the compartment_id property of this CreateMigratedDynectZoneDetails.
35        :type compartment_id: str
36
37        :param freeform_tags:
38            The value to assign to the freeform_tags property of this CreateMigratedDynectZoneDetails.
39        :type freeform_tags: dict(str, str)
40
41        :param defined_tags:
42            The value to assign to the defined_tags property of this CreateMigratedDynectZoneDetails.
43        :type defined_tags: dict(str, dict(str, object))
44
45        :param dynect_migration_details:
46            The value to assign to the dynect_migration_details property of this CreateMigratedDynectZoneDetails.
47        :type dynect_migration_details: oci.dns.models.DynectMigrationDetails
48
49        """
50        self.swagger_types = {
51            'migration_source': 'str',
52            'name': 'str',
53            'compartment_id': 'str',
54            'freeform_tags': 'dict(str, str)',
55            'defined_tags': 'dict(str, dict(str, object))',
56            'dynect_migration_details': 'DynectMigrationDetails'
57        }
58
59        self.attribute_map = {
60            'migration_source': 'migrationSource',
61            'name': 'name',
62            'compartment_id': 'compartmentId',
63            'freeform_tags': 'freeformTags',
64            'defined_tags': 'definedTags',
65            'dynect_migration_details': 'dynectMigrationDetails'
66        }
67
68        self._migration_source = None
69        self._name = None
70        self._compartment_id = None
71        self._freeform_tags = None
72        self._defined_tags = None
73        self._dynect_migration_details = None
74        self._migration_source = 'DYNECT'
75
76    @property
77    def dynect_migration_details(self):
78        """
79        Gets the dynect_migration_details of this CreateMigratedDynectZoneDetails.
80
81        :return: The dynect_migration_details of this CreateMigratedDynectZoneDetails.
82        :rtype: oci.dns.models.DynectMigrationDetails
83        """
84        return self._dynect_migration_details
85
86    @dynect_migration_details.setter
87    def dynect_migration_details(self, dynect_migration_details):
88        """
89        Sets the dynect_migration_details of this CreateMigratedDynectZoneDetails.
90
91        :param dynect_migration_details: The dynect_migration_details of this CreateMigratedDynectZoneDetails.
92        :type: oci.dns.models.DynectMigrationDetails
93        """
94        self._dynect_migration_details = dynect_migration_details
95
96    def __repr__(self):
97        return formatted_flat_dict(self)
98
99    def __eq__(self, other):
100        if other is None:
101            return False
102
103        return self.__dict__ == other.__dict__
104
105    def __ne__(self, other):
106        return not self == other
107