Class CreateBackupPolicyDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.mysql.model.CreateBackupPolicyDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class CreateBackupPolicyDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Backup policy as optionally used for DB System Creation.
Note: Objects should always be created or deserialized using theCreateBackupPolicyDetails.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 theCreateBackupPolicyDetails.Builder
, which maintain a set of all explicitly set fields calledCreateBackupPolicyDetails.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
CreateBackupPolicyDetails.Builder
-
Constructor Summary
Constructors Constructor Description CreateBackupPolicyDetails(Boolean isEnabled, List<CopyPolicy> copyPolicies, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, PitrPolicy pitrPolicy)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateBackupPolicyDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
List<CopyPolicy>
getCopyPolicies()
List of policies of a DB system to schedule cross-region DB system backup copy.Map<String,Map<String,Object>>
getDefinedTags()
Usage of predefined tag keys.Map<String,String>
getFreeformTags()
Simple key-value pair applied without any predefined name, type or scope.Boolean
getIsEnabled()
Specifies if automatic backups are enabled.PitrPolicy
getPitrPolicy()
Integer
getRetentionInDays()
Number of days to retain an automatic backup.String
getWindowStartTime()
The start of a 30-minute window of time in which daily, automated backups occur.int
hashCode()
CreateBackupPolicyDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
CreateBackupPolicyDetails
@Deprecated @ConstructorProperties({"isEnabled","copyPolicies","windowStartTime","retentionInDays","freeformTags","definedTags","pitrPolicy"}) public CreateBackupPolicyDetails(Boolean isEnabled, List<CopyPolicy> copyPolicies, String windowStartTime, Integer retentionInDays, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, PitrPolicy pitrPolicy)
Deprecated.
-
-
Method Detail
-
builder
public static CreateBackupPolicyDetails.Builder builder()
Create a new builder.
-
toBuilder
public CreateBackupPolicyDetails.Builder toBuilder()
-
getIsEnabled
public Boolean getIsEnabled()
Specifies if automatic backups are enabled.- Returns:
- the value
-
getCopyPolicies
public List<CopyPolicy> getCopyPolicies()
List of policies of a DB system to schedule cross-region DB system backup copy.The policy includes the name of the destination region to which the DB system backup will be copied, and an optional parameter which specifies the retention period of the copied DB system backup in days.
*Note:** Currently, only one policy can be specified in the list.
- Returns:
- the value
-
getWindowStartTime
public String getWindowStartTime()
The start of a 30-minute window of time in which daily, automated backups occur.This should be in the format of the "Time" portion of an RFC3339-formatted timestamp. Any second or sub-second time data will be truncated to zero.
At some point in the window, the system may incur a brief service disruption as the backup is performed.
- Returns:
- the value
-
getRetentionInDays
public Integer getRetentionInDays()
Number of days to retain an automatic backup.- Returns:
- the value
-
getFreeformTags
public Map<String,String> getFreeformTags()
Simple key-value pair applied without any predefined name, type or scope.Exists for cross-compatibility only.
Tags defined here will be copied verbatim as tags on the Backup resource created by this BackupPolicy.
Example: {"bar-key": "value"}
- Returns:
- the value
-
getDefinedTags
public Map<String,Map<String,Object>> getDefinedTags()
Usage of predefined tag keys.These predefined keys are scoped to namespaces.
Tags defined here will be copied verbatim as tags on the Backup resource created by this BackupPolicy.
Example: {"foo-namespace": {"bar-key": "value"}}
- Returns:
- the value
-
getPitrPolicy
public PitrPolicy getPitrPolicy()
-
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
-
-