Class SourceConfiguration
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SourceConfiguration.Builder,SourceConfiguration>
The configuration details for the source used to create an Autonomous Database. This is a union, so only one of the following members can be specified.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceConfiguration.Builderbuilder()The configuration for creating the Autonomous Database as a refreshable clone.The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.The configuration for creating the Autonomous Database as a clone of an existing database.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static SourceConfigurationfromCloneToRefreshable(Consumer<CloneToRefreshableConfiguration.Builder> cloneToRefreshable) Create an instance of this class withcloneToRefreshable()initialized to the given value.static SourceConfigurationfromCloneToRefreshable(CloneToRefreshableConfiguration cloneToRefreshable) Create an instance of this class withcloneToRefreshable()initialized to the given value.static SourceConfigurationfromCrossRegionDataGuard(Consumer<CrossRegionDataGuardConfiguration.Builder> crossRegionDataGuard) Create an instance of this class withcrossRegionDataGuard()initialized to the given value.static SourceConfigurationfromCrossRegionDataGuard(CrossRegionDataGuardConfiguration crossRegionDataGuard) Create an instance of this class withcrossRegionDataGuard()initialized to the given value.static SourceConfigurationfromCrossRegionDisasterRecovery(Consumer<CrossRegionDisasterRecoveryConfiguration.Builder> crossRegionDisasterRecovery) Create an instance of this class withcrossRegionDisasterRecovery()initialized to the given value.static SourceConfigurationfromCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryConfiguration crossRegionDisasterRecovery) Create an instance of this class withcrossRegionDisasterRecovery()initialized to the given value.static SourceConfigurationfromDatabaseClone(Consumer<DatabaseCloneConfiguration.Builder> databaseClone) Create an instance of this class withdatabaseClone()initialized to the given value.static SourceConfigurationfromDatabaseClone(DatabaseCloneConfiguration databaseClone) Create an instance of this class withdatabaseClone()initialized to the given value.static SourceConfigurationfromPointInTimeRestore(Consumer<PointInTimeRestoreConfiguration.Builder> pointInTimeRestore) Create an instance of this class withpointInTimeRestore()initialized to the given value.static SourceConfigurationfromPointInTimeRestore(PointInTimeRestoreConfiguration pointInTimeRestore) Create an instance of this class withpointInTimeRestore()initialized to the given value.static SourceConfigurationfromRestoreFromBackup(Consumer<RestoreFromBackupConfiguration.Builder> restoreFromBackup) Create an instance of this class withrestoreFromBackup()initialized to the given value.static SourceConfigurationfromRestoreFromBackup(RestoreFromBackupConfiguration restoreFromBackup) Create an instance of this class withrestoreFromBackup()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()The configuration for creating the Autonomous Database by restoring to a point in time.The configuration for creating the Autonomous Database by restoring from a backup.static Class<? extends SourceConfiguration.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
databaseClone
The configuration for creating the Autonomous Database as a clone of an existing database.
- Returns:
- The configuration for creating the Autonomous Database as a clone of an existing database.
-
restoreFromBackup
The configuration for creating the Autonomous Database by restoring from a backup.
- Returns:
- The configuration for creating the Autonomous Database by restoring from a backup.
-
pointInTimeRestore
The configuration for creating the Autonomous Database by restoring to a point in time.
- Returns:
- The configuration for creating the Autonomous Database by restoring to a point in time.
-
crossRegionDataGuard
The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
- Returns:
- The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
-
crossRegionDisasterRecovery
The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
- Returns:
- The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
-
cloneToRefreshable
The configuration for creating the Autonomous Database as a refreshable clone.
- Returns:
- The configuration for creating the Autonomous Database as a refreshable clone.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SourceConfiguration.Builder,SourceConfiguration> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromDatabaseClone
Create an instance of this class withdatabaseClone()initialized to the given value.The configuration for creating the Autonomous Database as a clone of an existing database.
- Parameters:
databaseClone- The configuration for creating the Autonomous Database as a clone of an existing database.
-
fromDatabaseClone
public static SourceConfiguration fromDatabaseClone(Consumer<DatabaseCloneConfiguration.Builder> databaseClone) Create an instance of this class withdatabaseClone()initialized to the given value.The configuration for creating the Autonomous Database as a clone of an existing database.
- Parameters:
databaseClone- The configuration for creating the Autonomous Database as a clone of an existing database.
-
fromRestoreFromBackup
public static SourceConfiguration fromRestoreFromBackup(RestoreFromBackupConfiguration restoreFromBackup) Create an instance of this class withrestoreFromBackup()initialized to the given value.The configuration for creating the Autonomous Database by restoring from a backup.
- Parameters:
restoreFromBackup- The configuration for creating the Autonomous Database by restoring from a backup.
-
fromRestoreFromBackup
public static SourceConfiguration fromRestoreFromBackup(Consumer<RestoreFromBackupConfiguration.Builder> restoreFromBackup) Create an instance of this class withrestoreFromBackup()initialized to the given value.The configuration for creating the Autonomous Database by restoring from a backup.
- Parameters:
restoreFromBackup- The configuration for creating the Autonomous Database by restoring from a backup.
-
fromPointInTimeRestore
public static SourceConfiguration fromPointInTimeRestore(PointInTimeRestoreConfiguration pointInTimeRestore) Create an instance of this class withpointInTimeRestore()initialized to the given value.The configuration for creating the Autonomous Database by restoring to a point in time.
- Parameters:
pointInTimeRestore- The configuration for creating the Autonomous Database by restoring to a point in time.
-
fromPointInTimeRestore
public static SourceConfiguration fromPointInTimeRestore(Consumer<PointInTimeRestoreConfiguration.Builder> pointInTimeRestore) Create an instance of this class withpointInTimeRestore()initialized to the given value.The configuration for creating the Autonomous Database by restoring to a point in time.
- Parameters:
pointInTimeRestore- The configuration for creating the Autonomous Database by restoring to a point in time.
-
fromCrossRegionDataGuard
public static SourceConfiguration fromCrossRegionDataGuard(CrossRegionDataGuardConfiguration crossRegionDataGuard) Create an instance of this class withcrossRegionDataGuard()initialized to the given value.The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
- Parameters:
crossRegionDataGuard- The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
-
fromCrossRegionDataGuard
public static SourceConfiguration fromCrossRegionDataGuard(Consumer<CrossRegionDataGuardConfiguration.Builder> crossRegionDataGuard) Create an instance of this class withcrossRegionDataGuard()initialized to the given value.The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
- Parameters:
crossRegionDataGuard- The configuration for creating the Autonomous Database as a cross-Region Oracle Data Guard peer.
-
fromCrossRegionDisasterRecovery
public static SourceConfiguration fromCrossRegionDisasterRecovery(CrossRegionDisasterRecoveryConfiguration crossRegionDisasterRecovery) Create an instance of this class withcrossRegionDisasterRecovery()initialized to the given value.The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
- Parameters:
crossRegionDisasterRecovery- The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
-
fromCrossRegionDisasterRecovery
public static SourceConfiguration fromCrossRegionDisasterRecovery(Consumer<CrossRegionDisasterRecoveryConfiguration.Builder> crossRegionDisasterRecovery) Create an instance of this class withcrossRegionDisasterRecovery()initialized to the given value.The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
- Parameters:
crossRegionDisasterRecovery- The configuration for creating the Autonomous Database as a cross-Region disaster recovery peer.
-
fromCloneToRefreshable
public static SourceConfiguration fromCloneToRefreshable(CloneToRefreshableConfiguration cloneToRefreshable) Create an instance of this class withcloneToRefreshable()initialized to the given value.The configuration for creating the Autonomous Database as a refreshable clone.
- Parameters:
cloneToRefreshable- The configuration for creating the Autonomous Database as a refreshable clone.
-
fromCloneToRefreshable
public static SourceConfiguration fromCloneToRefreshable(Consumer<CloneToRefreshableConfiguration.Builder> cloneToRefreshable) Create an instance of this class withcloneToRefreshable()initialized to the given value.The configuration for creating the Autonomous Database as a refreshable clone.
- Parameters:
cloneToRefreshable- The configuration for creating the Autonomous Database as a refreshable clone.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beSourceConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beSourceConfiguration.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-