@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public final class MaintenanceWindow extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Maintenance Window object. It contains all the information of the Maintenance window. Used in the
Create and Get operations.
Note: Objects should always be created or deserialized using the MaintenanceWindow.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the MaintenanceWindow.Builder
, which maintain a
set of all explicitly set fields called MaintenanceWindow.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
MaintenanceWindow.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
MaintenanceWindow(String id,
String name,
String description,
String compartmentId,
List<CreateMaintenanceWindowResourceDetails> resources,
List<MonitoredResourceDetails> resourcesDetails,
MaintenanceWindowLifecycleState lifecycleState,
MaintenanceWindowLifecycleDetails lifecycleDetails,
MaintenanceWindowSchedule schedule,
Date timeCreated,
Date timeUpdated)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MaintenanceWindow.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCompartmentId()
Compartment Identifier
OCID.
|
String |
getDescription()
Maintenance Window description.
|
String |
getId()
The OCID of
maintenance window.
|
MaintenanceWindowLifecycleDetails |
getLifecycleDetails()
Lifecycle Details of the Maintenance Window.
|
MaintenanceWindowLifecycleState |
getLifecycleState()
Lifecycle state of the monitored resource.
|
String |
getName()
Maintenance Window name.
|
List<CreateMaintenanceWindowResourceDetails> |
getResources()
List of resource Ids which are part of the Maintenance Window
|
List<MonitoredResourceDetails> |
getResourcesDetails()
List of resource details that are part of the Maintenance Window.
|
MaintenanceWindowSchedule |
getSchedule() |
Date |
getTimeCreated()
The time the the maintenance window was created.
|
Date |
getTimeUpdated()
The time the the mainteance window was updated.
|
int |
hashCode() |
MaintenanceWindow.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","name","description","compartmentId","resources","resourcesDetails","lifecycleState","lifecycleDetails","schedule","timeCreated","timeUpdated"}) public MaintenanceWindow(String id, String name, String description, String compartmentId, List<CreateMaintenanceWindowResourceDetails> resources, List<MonitoredResourceDetails> resourcesDetails, MaintenanceWindowLifecycleState lifecycleState, MaintenanceWindowLifecycleDetails lifecycleDetails, MaintenanceWindowSchedule schedule, Date timeCreated, Date timeUpdated)
public static MaintenanceWindow.Builder builder()
Create a new builder.
public MaintenanceWindow.Builder toBuilder()
public String getName()
Maintenance Window name.
public String getDescription()
Maintenance Window description.
public List<CreateMaintenanceWindowResourceDetails> getResources()
List of resource Ids which are part of the Maintenance Window
public List<MonitoredResourceDetails> getResourcesDetails()
List of resource details that are part of the Maintenance Window.
public MaintenanceWindowLifecycleState getLifecycleState()
Lifecycle state of the monitored resource.
public MaintenanceWindowLifecycleDetails getLifecycleDetails()
Lifecycle Details of the Maintenance Window.
public MaintenanceWindowSchedule getSchedule()
public Date getTimeCreated()
The time the the maintenance window was created. An RFC3339 formatted datetime string
public Date getTimeUpdated()
The time the the mainteance window was updated. An RFC3339 formatted datetime string
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.