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 5 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 ChangeFleetCompartmentDetails(object): 12 """ 13 Attributes to change the compartment of a Fleet. 14 """ 15 16 def __init__(self, **kwargs): 17 """ 18 Initializes a new ChangeFleetCompartmentDetails object with values from keyword arguments. 19 The following keyword arguments are supported (corresponding to the getters/setters of this class): 20 21 :param compartment_id: 22 The value to assign to the compartment_id property of this ChangeFleetCompartmentDetails. 23 :type compartment_id: str 24 25 """ 26 self.swagger_types = { 27 'compartment_id': 'str' 28 } 29 30 self.attribute_map = { 31 'compartment_id': 'compartmentId' 32 } 33 34 self._compartment_id = None 35 36 @property 37 def compartment_id(self): 38 """ 39 **[Required]** Gets the compartment_id of this ChangeFleetCompartmentDetails. 40 The `OCID`__ of the compartment into which the Fleet should be moved. 41 42 __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm 43 44 45 :return: The compartment_id of this ChangeFleetCompartmentDetails. 46 :rtype: str 47 """ 48 return self._compartment_id 49 50 @compartment_id.setter 51 def compartment_id(self, compartment_id): 52 """ 53 Sets the compartment_id of this ChangeFleetCompartmentDetails. 54 The `OCID`__ of the compartment into which the Fleet should be moved. 55 56 __ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm 57 58 59 :param compartment_id: The compartment_id of this ChangeFleetCompartmentDetails. 60 :type: str 61 """ 62 self._compartment_id = compartment_id 63 64 def __repr__(self): 65 return formatted_flat_dict(self) 66 67 def __eq__(self, other): 68 if other is None: 69 return False 70 71 return self.__dict__ == other.__dict__ 72 73 def __ne__(self, other): 74 return not self == other 75