Class UpdateProtectedDatabaseDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.recovery.model.UpdateProtectedDatabaseDetails.Builder
-
- Enclosing class:
- UpdateProtectedDatabaseDetails
public static class UpdateProtectedDatabaseDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateProtectedDatabaseDetails
build()
UpdateProtectedDatabaseDetails.Builder
copy(UpdateProtectedDatabaseDetails model)
UpdateProtectedDatabaseDetails.Builder
databaseSize(DatabaseSizes databaseSize)
The size of the database is allowed to be decreased.UpdateProtectedDatabaseDetails.Builder
databaseSizeInGBs(Integer databaseSizeInGBs)
The size of the database, in gigabytes.UpdateProtectedDatabaseDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UpdateProtectedDatabaseDetails.Builder
displayName(String displayName)
The protected database name.UpdateProtectedDatabaseDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.UpdateProtectedDatabaseDetails.Builder
isRedoLogsShipped(Boolean isRedoLogsShipped)
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.UpdateProtectedDatabaseDetails.Builder
password(String password)
Password credential which can be used to connect to Protected Database.UpdateProtectedDatabaseDetails.Builder
protectionPolicyId(String protectionPolicyId)
The OCID of the protection policy associated with the protected database.UpdateProtectedDatabaseDetails.Builder
recoveryServiceSubnets(List<RecoveryServiceSubnetInput> recoveryServiceSubnets)
List of recovery service subnet resources associated with the protected database.
-
-
-
Method Detail
-
displayName
public UpdateProtectedDatabaseDetails.Builder displayName(String displayName)
The protected database name.You can change the displayName. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
databaseSize
public UpdateProtectedDatabaseDetails.Builder databaseSize(DatabaseSizes databaseSize)
The size of the database is allowed to be decreased.XS - Less than 5GB, S - 5GB to 50GB, M - 50GB to 500GB, L - 500GB to 1TB, XL - 1TB to 5TB, XXL - Greater than 5TB.
- Parameters:
databaseSize
- the value to set- Returns:
- this builder
-
databaseSizeInGBs
public UpdateProtectedDatabaseDetails.Builder databaseSizeInGBs(Integer databaseSizeInGBs)
The size of the database, in gigabytes.- Parameters:
databaseSizeInGBs
- the value to set- Returns:
- this builder
-
password
public UpdateProtectedDatabaseDetails.Builder password(String password)
Password credential which can be used to connect to Protected Database.It must contain at least 2 uppercase, 2 lowercase, 2 numeric and 2 special characters. The special characters must be underscore (_), number sign (#) or hyphen (-). The password must not contain the username “admin”, regardless of casing. Password must not be same as current passsword.
- Parameters:
password
- the value to set- Returns:
- this builder
-
protectionPolicyId
public UpdateProtectedDatabaseDetails.Builder protectionPolicyId(String protectionPolicyId)
The OCID of the protection policy associated with the protected database.- Parameters:
protectionPolicyId
- the value to set- Returns:
- this builder
-
recoveryServiceSubnets
public UpdateProtectedDatabaseDetails.Builder recoveryServiceSubnets(List<RecoveryServiceSubnetInput> recoveryServiceSubnets)
List of recovery service subnet resources associated with the protected database.- Parameters:
recoveryServiceSubnets
- the value to set- Returns:
- this builder
-
isRedoLogsShipped
public UpdateProtectedDatabaseDetails.Builder isRedoLogsShipped(Boolean isRedoLogsShipped)
The value TRUE indicates that the protected database is configured to use Real-time data protection, and redo-data is sent from the protected database to Recovery Service.Real-time data protection substantially reduces the window of potential data loss that exists between successive archived redo log backups. For this to be effective, additional configuration is needed on client side.
- Parameters:
isRedoLogsShipped
- the value to set- Returns:
- this builder
-
freeformTags
public UpdateProtectedDatabaseDetails.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public UpdateProtectedDatabaseDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. For more information, see Resource Tags
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
build
public UpdateProtectedDatabaseDetails build()
-
copy
public UpdateProtectedDatabaseDetails.Builder copy(UpdateProtectedDatabaseDetails model)
-
-