Class AwrDbSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.AwrDbSummary.Builder
-
- Enclosing class:
- AwrDbSummary
public static class AwrDbSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwrDbSummary.Builder
awrDbId(String awrDbId)
The internal ID of the database.AwrDbSummary
build()
AwrDbSummary.Builder
containerId(Integer containerId)
ID of the database container.AwrDbSummary.Builder
copy(AwrDbSummary model)
AwrDbSummary.Builder
dbName(String dbName)
The name of the database.AwrDbSummary.Builder
dbUniqueName(String dbUniqueName)
The unique name of the database.AwrDbSummary.Builder
dbVersion(String dbVersion)
The version of the database.AwrDbSummary.Builder
firstSnapshotId(Integer firstSnapshotId)
The ID of the earliest snapshot.AwrDbSummary.Builder
instanceList(List<Integer> instanceList)
The database instance numbers.AwrDbSummary.Builder
latestSnapshotId(Integer latestSnapshotId)
The ID of the latest snapshot.AwrDbSummary.Builder
snapshotCount(Long snapshotCount)
The total number of snapshots.AwrDbSummary.Builder
snapshotIntervalInMin(Integer snapshotIntervalInMin)
The interval time between snapshots (in minutes).AwrDbSummary.Builder
snapshotTimezone(String snapshotTimezone)
The time zone of the snapshot.AwrDbSummary.Builder
srcDbId(String srcDbId)
The internal ID of the database where the AWR snapshot data was collected.AwrDbSummary.Builder
srcDbName(String srcDbName)
The name of the database where the AWR snapshot data was collected.AwrDbSummary.Builder
timeDbStartup(Date timeDbStartup)
The timestamp of the database startup.AwrDbSummary.Builder
timeFirstSnapshotBegin(Date timeFirstSnapshotBegin)
The start time of the earliest snapshot.AwrDbSummary.Builder
timeLatestSnapshotEnd(Date timeLatestSnapshotEnd)
The end time of the latest snapshot.
-
-
-
Method Detail
-
awrDbId
public AwrDbSummary.Builder awrDbId(String awrDbId)
The internal ID of the database.The internal ID of the database is not the OCID. It can be retrieved from the following endpoint: /managedDatabases/{managedDatabaseId}/awrDbs
- Parameters:
awrDbId
- the value to set- Returns:
- this builder
-
dbName
public AwrDbSummary.Builder dbName(String dbName)
The name of the database.- Parameters:
dbName
- the value to set- Returns:
- this builder
-
dbUniqueName
public AwrDbSummary.Builder dbUniqueName(String dbUniqueName)
The unique name of the database.- Parameters:
dbUniqueName
- the value to set- Returns:
- this builder
-
srcDbId
public AwrDbSummary.Builder srcDbId(String srcDbId)
The internal ID of the database where the AWR snapshot data was collected.- Parameters:
srcDbId
- the value to set- Returns:
- this builder
-
srcDbName
public AwrDbSummary.Builder srcDbName(String srcDbName)
The name of the database where the AWR snapshot data was collected.- Parameters:
srcDbName
- the value to set- Returns:
- this builder
-
instanceList
public AwrDbSummary.Builder instanceList(List<Integer> instanceList)
The database instance numbers.- Parameters:
instanceList
- the value to set- Returns:
- this builder
-
timeDbStartup
public AwrDbSummary.Builder timeDbStartup(Date timeDbStartup)
The timestamp of the database startup.- Parameters:
timeDbStartup
- the value to set- Returns:
- this builder
-
timeFirstSnapshotBegin
public AwrDbSummary.Builder timeFirstSnapshotBegin(Date timeFirstSnapshotBegin)
The start time of the earliest snapshot.- Parameters:
timeFirstSnapshotBegin
- the value to set- Returns:
- this builder
-
timeLatestSnapshotEnd
public AwrDbSummary.Builder timeLatestSnapshotEnd(Date timeLatestSnapshotEnd)
The end time of the latest snapshot.- Parameters:
timeLatestSnapshotEnd
- the value to set- Returns:
- this builder
-
firstSnapshotId
public AwrDbSummary.Builder firstSnapshotId(Integer firstSnapshotId)
The ID of the earliest snapshot.The snapshot ID is not the OCID. It can be retrieved from the following endpoint: /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSnapshots
- Parameters:
firstSnapshotId
- the value to set- Returns:
- this builder
-
latestSnapshotId
public AwrDbSummary.Builder latestSnapshotId(Integer latestSnapshotId)
The ID of the latest snapshot.The snapshot ID is not the OCID. It can be retrieved from the following endpoint: /managedDatabases/{managedDatabaseId}/awrDbs/{awrDbId}/awrDbSnapshots
- Parameters:
latestSnapshotId
- the value to set- Returns:
- this builder
-
snapshotCount
public AwrDbSummary.Builder snapshotCount(Long snapshotCount)
The total number of snapshots.- Parameters:
snapshotCount
- the value to set- Returns:
- this builder
-
snapshotIntervalInMin
public AwrDbSummary.Builder snapshotIntervalInMin(Integer snapshotIntervalInMin)
The interval time between snapshots (in minutes).- Parameters:
snapshotIntervalInMin
- the value to set- Returns:
- this builder
-
containerId
public AwrDbSummary.Builder containerId(Integer containerId)
ID of the database container.The database container ID is not the OCID. It can be retrieved from the following endpoint: /managedDatabases/{managedDatabaseId}/awrDbSnapshotRanges
- Parameters:
containerId
- the value to set- Returns:
- this builder
-
dbVersion
public AwrDbSummary.Builder dbVersion(String dbVersion)
The version of the database.- Parameters:
dbVersion
- the value to set- Returns:
- this builder
-
snapshotTimezone
public AwrDbSummary.Builder snapshotTimezone(String snapshotTimezone)
The time zone of the snapshot.- Parameters:
snapshotTimezone
- the value to set- Returns:
- this builder
-
build
public AwrDbSummary build()
-
copy
public AwrDbSummary.Builder copy(AwrDbSummary model)
-
-