@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class AutonomousDatabase extends Object
An Oracle Autonomous Database.
Note: Objects should always be created or deserialized using the AutonomousDatabase.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 AutonomousDatabase.Builder
, which maintain a set of all explicitly set fields called __explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take __explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AutonomousDatabase.Builder |
static class |
AutonomousDatabase.DataSafeStatus
Status of the Data Safe registration for this Autonomous Database.
|
static class |
AutonomousDatabase.DbWorkload
The Autonomous Database workload type.
|
static class |
AutonomousDatabase.LicenseModel
The Oracle license model that applies to the Oracle Autonomous Database.
|
static class |
AutonomousDatabase.LifecycleState
The current state of the Autonomous Database.
|
Constructor and Description |
---|
AutonomousDatabase(String id,
String compartmentId,
AutonomousDatabase.LifecycleState lifecycleState,
String lifecycleDetails,
String dbName,
Boolean isFreeTier,
Map<String,Map<String,Object>> systemTags,
Date timeReclamationOfFreeAutonomousDatabase,
Date timeDeletionOfFreeAutonomousDatabase,
Integer cpuCoreCount,
Integer dataStorageSizeInTBs,
Boolean isDedicated,
String autonomousContainerDatabaseId,
Date timeCreated,
String displayName,
String serviceConsoleUrl,
AutonomousDatabaseConnectionStrings connectionStrings,
AutonomousDatabaseConnectionUrls connectionUrls,
AutonomousDatabase.LicenseModel licenseModel,
Integer usedDataStorageSizeInTBs,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
String subnetId,
List<String> nsgIds,
String privateEndpoint,
String privateEndpointLabel,
String privateEndpointIp,
String dbVersion,
Boolean isPreview,
AutonomousDatabase.DbWorkload dbWorkload,
List<String> whitelistedIps,
Boolean isAutoScalingEnabled,
AutonomousDatabase.DataSafeStatus dataSafeStatus,
Date timeMaintenanceBegin,
Date timeMaintenanceEnd,
List<String> availableUpgradeVersions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AutonomousDatabase.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
String |
getAutonomousContainerDatabaseId()
The Autonomous Container Database OCID.
|
List<String> |
getAvailableUpgradeVersions()
List of Oracle Database versions available for a database upgrade.
|
String |
getCompartmentId()
The OCID of the compartment.
|
AutonomousDatabaseConnectionStrings |
getConnectionStrings()
The connection string used to connect to the Autonomous Database.
|
AutonomousDatabaseConnectionUrls |
getConnectionUrls() |
Integer |
getCpuCoreCount()
The number of OCPU cores to be made available to the database.
|
AutonomousDatabase.DataSafeStatus |
getDataSafeStatus()
Status of the Data Safe registration for this Autonomous Database.
|
Integer |
getDataStorageSizeInTBs()
The quantity of data in the database, in terabytes.
|
String |
getDbName()
The database name.
|
String |
getDbVersion()
A valid Oracle Database version for Autonomous Database.
|
AutonomousDatabase.DbWorkload |
getDbWorkload()
The Autonomous Database workload type.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDisplayName()
The user-friendly name for the Autonomous Database.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the Autonomous Database.
|
Boolean |
getIsAutoScalingEnabled()
Indicates if auto scaling is enabled for the Autonomous Database CPU core count.
|
Boolean |
getIsDedicated()
True if the database uses dedicated Exadata infrastructure.
|
Boolean |
getIsFreeTier()
Indicates if this is an Always Free resource.
|
Boolean |
getIsPreview()
Indicates if the Autonomous Database version is a preview version.
|
AutonomousDatabase.LicenseModel |
getLicenseModel()
The Oracle license model that applies to the Oracle Autonomous Database.
|
String |
getLifecycleDetails()
Information about the current lifecycle state.
|
AutonomousDatabase.LifecycleState |
getLifecycleState()
The current state of the Autonomous Database.
|
List<String> |
getNsgIds()
A list of the OCIDs of the network security groups (NSGs) that this resource belongs to.
|
String |
getPrivateEndpoint()
The private endpoint for the resource.
|
String |
getPrivateEndpointIp()
The private endpoint Ip address for the resource.
|
String |
getPrivateEndpointLabel()
The private endpoint label for the resource.
|
String |
getServiceConsoleUrl()
The URL of the Service Console for the Autonomous Database.
|
String |
getSubnetId()
The OCID of the subnet the resource is associated with.
|
Map<String,Map<String,Object>> |
getSystemTags()
System tags for this resource.
|
Date |
getTimeCreated()
The date and time the Autonomous Database was created.
|
Date |
getTimeDeletionOfFreeAutonomousDatabase()
The date and time the Always Free database will be automatically deleted because of inactivity.
|
Date |
getTimeMaintenanceBegin()
The date and time when maintenance will begin.
|
Date |
getTimeMaintenanceEnd()
The date and time when maintenance will end.
|
Date |
getTimeReclamationOfFreeAutonomousDatabase()
The date and time the Always Free database will be stopped because of inactivity.
|
Integer |
getUsedDataStorageSizeInTBs()
The amount of storage that has been used, in terabytes.
|
List<String> |
getWhitelistedIps()
The client IP access control list (ACL).
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"id","compartmentId","lifecycleState","lifecycleDetails","dbName","isFreeTier","systemTags","timeReclamationOfFreeAutonomousDatabase","timeDeletionOfFreeAutonomousDatabase","cpuCoreCount","dataStorageSizeInTBs","isDedicated","autonomousContainerDatabaseId","timeCreated","displayName","serviceConsoleUrl","connectionStrings","connectionUrls","licenseModel","usedDataStorageSizeInTBs","freeformTags","definedTags","subnetId","nsgIds","privateEndpoint","privateEndpointLabel","privateEndpointIp","dbVersion","isPreview","dbWorkload","whitelistedIps","isAutoScalingEnabled","dataSafeStatus","timeMaintenanceBegin","timeMaintenanceEnd","availableUpgradeVersions"}) @Deprecated public AutonomousDatabase(String id, String compartmentId, AutonomousDatabase.LifecycleState lifecycleState, String lifecycleDetails, String dbName, Boolean isFreeTier, Map<String,Map<String,Object>> systemTags, Date timeReclamationOfFreeAutonomousDatabase, Date timeDeletionOfFreeAutonomousDatabase, Integer cpuCoreCount, Integer dataStorageSizeInTBs, Boolean isDedicated, String autonomousContainerDatabaseId, Date timeCreated, String displayName, String serviceConsoleUrl, AutonomousDatabaseConnectionStrings connectionStrings, AutonomousDatabaseConnectionUrls connectionUrls, AutonomousDatabase.LicenseModel licenseModel, Integer usedDataStorageSizeInTBs, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String subnetId, List<String> nsgIds, String privateEndpoint, String privateEndpointLabel, String privateEndpointIp, String dbVersion, Boolean isPreview, AutonomousDatabase.DbWorkload dbWorkload, List<String> whitelistedIps, Boolean isAutoScalingEnabled, AutonomousDatabase.DataSafeStatus dataSafeStatus, Date timeMaintenanceBegin, Date timeMaintenanceEnd, List<String> availableUpgradeVersions)
public static AutonomousDatabase.Builder builder()
Create a new builder.
public AutonomousDatabase.LifecycleState getLifecycleState()
The current state of the Autonomous Database.
public String getLifecycleDetails()
Information about the current lifecycle state.
public String getDbName()
The database name.
public Boolean getIsFreeTier()
Indicates if this is an Always Free resource. The default value is false. Note that Always Free Autonomous Databases have 1 CPU and 20GB of memory. For Always Free databases, memory and CPU cannot be scaled.
public Map<String,Map<String,Object>> getSystemTags()
System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
public Date getTimeReclamationOfFreeAutonomousDatabase()
The date and time the Always Free database will be stopped because of inactivity. If this time is reached without any database activity, the database will automatically be put into the STOPPED state.
public Date getTimeDeletionOfFreeAutonomousDatabase()
The date and time the Always Free database will be automatically deleted because of inactivity. If the database is in the STOPPED state and without activity until this time, it will be deleted.
public Integer getCpuCoreCount()
The number of OCPU cores to be made available to the database.
public Integer getDataStorageSizeInTBs()
The quantity of data in the database, in terabytes.
public Boolean getIsDedicated()
True if the database uses dedicated Exadata infrastructure.
public String getAutonomousContainerDatabaseId()
The Autonomous Container Database OCID.
public Date getTimeCreated()
The date and time the Autonomous Database was created.
public String getDisplayName()
The user-friendly name for the Autonomous Database. The name does not have to be unique.
public String getServiceConsoleUrl()
The URL of the Service Console for the Autonomous Database.
public AutonomousDatabaseConnectionStrings getConnectionStrings()
The connection string used to connect to the Autonomous Database. The username for the Service Console is ADMIN. Use the password you entered when creating the Autonomous Database for the password value.
public AutonomousDatabaseConnectionUrls getConnectionUrls()
public AutonomousDatabase.LicenseModel getLicenseModel()
The Oracle license model that applies to the Oracle Autonomous Database. Note that when provisioning an Autonomous Database on dedicated Exadata infrastructure, this attribute must be null because the attribute is already set at the Autonomous Exadata Infrastructure level. When using shared Exadata infrastructure, if a value is not specified, the system will supply the value of BRING_YOUR_OWN_LICENSE
.
public Integer getUsedDataStorageSizeInTBs()
The amount of storage that has been used, in terabytes.
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {\"Department\": \"Finance\"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
public String getSubnetId()
The OCID of the subnet the resource is associated with.
Subnet Restrictions:* - For bare metal DB systems and for single node virtual machine DB systems, do not use a subnet that overlaps with 192.168.16.16/28. - For Exadata and virtual machine 2-node RAC DB systems, do not use a subnet that overlaps with 192.168.128.0/20. - For Autonomous Database, setting this will disable public secure access to the database.
These subnets are used by the Oracle Clusterware private interconnect on the database instance. Specifying an overlapping subnet will cause the private interconnect to malfunction. This restriction applies to both the client subnet and the backup subnet.
public List<String> getNsgIds()
A list of the OCIDs of the network security groups (NSGs) that this resource belongs to. Setting this to an empty array after the list is created removes the resource from all NSGs. For more information about NSGs, see Security Rules. NsgIds restrictions: - Autonomous Databases with private access require at least 1 Network Security Group (NSG). The nsgIds array cannot be empty.
public String getPrivateEndpoint()
The private endpoint for the resource.
public String getPrivateEndpointLabel()
The private endpoint label for the resource.
public String getPrivateEndpointIp()
The private endpoint Ip address for the resource.
public String getDbVersion()
A valid Oracle Database version for Autonomous Database.
public Boolean getIsPreview()
Indicates if the Autonomous Database version is a preview version.
public AutonomousDatabase.DbWorkload getDbWorkload()
The Autonomous Database workload type. The following values are valid:
- OLTP - indicates an Autonomous Transaction Processing database - DW - indicates an Autonomous Data Warehouse database
public List<String> getWhitelistedIps()
The client IP access control list (ACL). This feature is available for databases on shared Exadata infrastructure only. Only clients connecting from an IP address included in the ACL may access the Autonomous Database instance. This is an array of CIDR (Classless Inter-Domain Routing) notations for a subnet or VCN OCID.
To add the whitelist VCN specific subnet or IP, use a semicoln ‘;’ as a deliminator to add the VCN specific subnets or IPs. Example: [\"1.1.1.1\",\"1.1.1.0/24\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.1.1\",\"ocid1.vcn.oc1.sea.aaaaaaaard2hfx2nn3e5xeo6j6o62jga44xjizkw;1.1.0.0/16\"]
public Boolean getIsAutoScalingEnabled()
Indicates if auto scaling is enabled for the Autonomous Database CPU core count. Note that auto scaling is available for databases on shared Exadata infrastructure only.
public AutonomousDatabase.DataSafeStatus getDataSafeStatus()
Status of the Data Safe registration for this Autonomous Database.
public Date getTimeMaintenanceBegin()
The date and time when maintenance will begin.
public Date getTimeMaintenanceEnd()
The date and time when maintenance will end.
public List<String> getAvailableUpgradeVersions()
List of Oracle Database versions available for a database upgrade. If there are no version upgrades available, this list is empty.
Copyright © 2016–2020. All rights reserved.