Package com.oracle.bmc.database.model
Class AutonomousDatabaseStandbySummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.database.model.AutonomousDatabaseStandbySummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class AutonomousDatabaseStandbySummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Autonomous Data Guard standby database details.
Note: Objects should always be created or deserialized using theAutonomousDatabaseStandbySummary.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 theAutonomousDatabaseStandbySummary.Builder
, which maintain a set of all explicitly set fields calledAutonomousDatabaseStandbySummary.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutonomousDatabaseStandbySummary.Builder
static class
AutonomousDatabaseStandbySummary.LifecycleState
The current state of the Autonomous Database.
-
Constructor Summary
Constructors Constructor Description AutonomousDatabaseStandbySummary(Integer lagTimeInSeconds, AutonomousDatabaseStandbySummary.LifecycleState lifecycleState, String lifecycleDetails, Date timeDataGuardRoleChanged, Date timeDisasterRecoveryRoleChanged, Date timeMaintenanceBegin, Date timeMaintenanceEnd, String maintenanceTargetComponent, String availabilityDomain)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutonomousDatabaseStandbySummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getAvailabilityDomain()
The availability domain of a local Autonomous Data Guard standby database of an Autonomous Database Serverless instance.Integer
getLagTimeInSeconds()
The amount of time, in seconds, that the data of the standby database lags the data of the primary database.String
getLifecycleDetails()
Additional information about the current lifecycle state.AutonomousDatabaseStandbySummary.LifecycleState
getLifecycleState()
The current state of the Autonomous Database.String
getMaintenanceTargetComponent()
The component chosen for maintenance.Date
getTimeDataGuardRoleChanged()
The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.Date
getTimeDisasterRecoveryRoleChanged()
The date and time the Disaster Recovery role was switched for the standby Autonomous Database.Date
getTimeMaintenanceBegin()
The date and time when maintenance will begin.Date
getTimeMaintenanceEnd()
The date and time when maintenance will end.int
hashCode()
AutonomousDatabaseStandbySummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
AutonomousDatabaseStandbySummary
@Deprecated @ConstructorProperties({"lagTimeInSeconds","lifecycleState","lifecycleDetails","timeDataGuardRoleChanged","timeDisasterRecoveryRoleChanged","timeMaintenanceBegin","timeMaintenanceEnd","maintenanceTargetComponent","availabilityDomain"}) public AutonomousDatabaseStandbySummary(Integer lagTimeInSeconds, AutonomousDatabaseStandbySummary.LifecycleState lifecycleState, String lifecycleDetails, Date timeDataGuardRoleChanged, Date timeDisasterRecoveryRoleChanged, Date timeMaintenanceBegin, Date timeMaintenanceEnd, String maintenanceTargetComponent, String availabilityDomain)
Deprecated.
-
-
Method Detail
-
builder
public static AutonomousDatabaseStandbySummary.Builder builder()
Create a new builder.
-
toBuilder
public AutonomousDatabaseStandbySummary.Builder toBuilder()
-
getLagTimeInSeconds
public Integer getLagTimeInSeconds()
The amount of time, in seconds, that the data of the standby database lags the data of the primary database.Can be used to determine the potential data loss in the event of a failover.
- Returns:
- the value
-
getLifecycleState
public AutonomousDatabaseStandbySummary.LifecycleState getLifecycleState()
The current state of the Autonomous Database.- Returns:
- the value
-
getLifecycleDetails
public String getLifecycleDetails()
Additional information about the current lifecycle state.- Returns:
- the value
-
getTimeDataGuardRoleChanged
public Date getTimeDataGuardRoleChanged()
The date and time the Autonomous Data Guard role was switched for the standby Autonomous Database.- Returns:
- the value
-
getTimeDisasterRecoveryRoleChanged
public Date getTimeDisasterRecoveryRoleChanged()
The date and time the Disaster Recovery role was switched for the standby Autonomous Database.- Returns:
- the value
-
getTimeMaintenanceBegin
public Date getTimeMaintenanceBegin()
The date and time when maintenance will begin.- Returns:
- the value
-
getTimeMaintenanceEnd
public Date getTimeMaintenanceEnd()
The date and time when maintenance will end.- Returns:
- the value
-
getMaintenanceTargetComponent
public String getMaintenanceTargetComponent()
The component chosen for maintenance.- Returns:
- the value
-
getAvailabilityDomain
public String getAvailabilityDomain()
The availability domain of a local Autonomous Data Guard standby database of an Autonomous Database Serverless instance.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-