@Generated(value="OracleSDKGenerator", comments="API Version: 20200407") public final class MaintenanceConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Attributes for configuring automatic deployment maintenance.
Note: Objects should always be created or deserialized using the MaintenanceConfiguration.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 MaintenanceConfiguration.Builder
, which maintain a
set of all explicitly set fields called MaintenanceConfiguration.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 |
MaintenanceConfiguration.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
MaintenanceConfiguration(Boolean isInterimReleaseAutoUpgradeEnabled,
Integer interimReleaseUpgradePeriodInDays,
Integer bundleReleaseUpgradePeriodInDays,
Integer majorReleaseUpgradePeriodInDays,
Integer securityPatchUpgradePeriodInDays)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static MaintenanceConfiguration.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getBundleReleaseUpgradePeriodInDays()
Defines auto upgrade period for bundle releases.
|
Integer |
getInterimReleaseUpgradePeriodInDays()
Defines auto upgrade period for interim releases.
|
Boolean |
getIsInterimReleaseAutoUpgradeEnabled()
By default auto upgrade for interim releases are not enabled.
|
Integer |
getMajorReleaseUpgradePeriodInDays()
Defines auto upgrade period for major releases.
|
Integer |
getSecurityPatchUpgradePeriodInDays()
Defines auto upgrade period for releases with security fix.
|
int |
hashCode() |
MaintenanceConfiguration.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"isInterimReleaseAutoUpgradeEnabled","interimReleaseUpgradePeriodInDays","bundleReleaseUpgradePeriodInDays","majorReleaseUpgradePeriodInDays","securityPatchUpgradePeriodInDays"}) public MaintenanceConfiguration(Boolean isInterimReleaseAutoUpgradeEnabled, Integer interimReleaseUpgradePeriodInDays, Integer bundleReleaseUpgradePeriodInDays, Integer majorReleaseUpgradePeriodInDays, Integer securityPatchUpgradePeriodInDays)
public static MaintenanceConfiguration.Builder builder()
Create a new builder.
public MaintenanceConfiguration.Builder toBuilder()
public Boolean getIsInterimReleaseAutoUpgradeEnabled()
By default auto upgrade for interim releases are not enabled. If auto-upgrade is enabled for interim release, you have to specify interimReleaseUpgradePeriodInDays too.
public Integer getInterimReleaseUpgradePeriodInDays()
Defines auto upgrade period for interim releases. This period must be shorter or equal to bundle release upgrade period.
public Integer getBundleReleaseUpgradePeriodInDays()
Defines auto upgrade period for bundle releases. Manually configured period cannot be longer than service defined period for bundle releases. This period must be shorter or equal to major release upgrade period. Not passing this field during create will equate to using the service default.
public Integer getMajorReleaseUpgradePeriodInDays()
Defines auto upgrade period for major releases. Manually configured period cannot be longer than service defined period for major releases. Not passing this field during create will equate to using the service default.
public Integer getSecurityPatchUpgradePeriodInDays()
Defines auto upgrade period for releases with security fix. Manually configured period cannot be longer than service defined period for security releases. Not passing this field during create will equate to using the service default.
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.