File: //lib/mysqlsh/lib/python3.8/site-packages/oci/golden_gate/models/maintenance_window.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20200407
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 MaintenanceWindow(object):
"""
Defines the maintenance window, when automatic actions can be performed.
"""
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "MONDAY"
DAY_MONDAY = "MONDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "TUESDAY"
DAY_TUESDAY = "TUESDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "WEDNESDAY"
DAY_WEDNESDAY = "WEDNESDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "THURSDAY"
DAY_THURSDAY = "THURSDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "FRIDAY"
DAY_FRIDAY = "FRIDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "SATURDAY"
DAY_SATURDAY = "SATURDAY"
#: A constant which can be used with the day property of a MaintenanceWindow.
#: This constant has a value of "SUNDAY"
DAY_SUNDAY = "SUNDAY"
def __init__(self, **kwargs):
"""
Initializes a new MaintenanceWindow object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param day:
The value to assign to the day property of this MaintenanceWindow.
Allowed values for this property are: "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:type day: str
:param start_hour:
The value to assign to the start_hour property of this MaintenanceWindow.
:type start_hour: int
"""
self.swagger_types = {
'day': 'str',
'start_hour': 'int'
}
self.attribute_map = {
'day': 'day',
'start_hour': 'startHour'
}
self._day = None
self._start_hour = None
@property
def day(self):
"""
**[Required]** Gets the day of this MaintenanceWindow.
Days of the week.
Allowed values for this property are: "MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY", 'UNKNOWN_ENUM_VALUE'.
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
:return: The day of this MaintenanceWindow.
:rtype: str
"""
return self._day
@day.setter
def day(self, day):
"""
Sets the day of this MaintenanceWindow.
Days of the week.
:param day: The day of this MaintenanceWindow.
:type: str
"""
allowed_values = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
if not value_allowed_none_or_none_sentinel(day, allowed_values):
day = 'UNKNOWN_ENUM_VALUE'
self._day = day
@property
def start_hour(self):
"""
**[Required]** Gets the start_hour of this MaintenanceWindow.
Start hour for maintenance period. Hour is in UTC.
:return: The start_hour of this MaintenanceWindow.
:rtype: int
"""
return self._start_hour
@start_hour.setter
def start_hour(self, start_hour):
"""
Sets the start_hour of this MaintenanceWindow.
Start hour for maintenance period. Hour is in UTC.
:param start_hour: The start_hour of this MaintenanceWindow.
:type: int
"""
self._start_hour = start_hour
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