InstanceState¶
- class oci.cloud_migrations.models.InstanceState(**kwargs)¶
Bases:
objectDescribes the current state of an instance.
Methods:
__init__(**kwargs)Initializes a new InstanceState object with values from keyword arguments.
Attributes:
Gets the code of this InstanceState.
Gets the name of this InstanceState.
- __init__(**kwargs)¶
Initializes a new InstanceState object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
code (int) – The value to assign to the code property of this InstanceState.
name (str) – The value to assign to the name property of this InstanceState.
- property code¶
Gets the code of this InstanceState. The state of the instance as a 16-bit unsigned integer.
- Returns
The code of this InstanceState.
- Return type
int
- property name¶
Gets the name of this InstanceState. The current state of the instance.
- Returns
The name of this InstanceState.
- Return type
str