Class DbaasBackupConfig


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class DbaasBackupConfig
    extends Object
    DBaaS plan backup config
    • Constructor Detail

      • DbaasBackupConfig

        public DbaasBackupConfig()
      • DbaasBackupConfig

        public DbaasBackupConfig​(Long maxCount,
                                 Long interval,
                                 String recoveryMode,
                                 Long frequentIntervalMinutes,
                                 Long frequentOldestAgeMinutes,
                                 Long infrequentIntervalMinutes,
                                 Long infrequentOldestAgeMinutes)
    • Method Detail

      • getMaxCount

        @Nullable
        public Long getMaxCount()
        Maximum number of backups to keep. Zero when no backups are created. minimum: 0
        Returns:
        maxCount
      • getInterval

        @Nullable
        public Long getInterval()
        The interval, in hours, at which backups are generated. For some services, like PostgreSQL, this is the interval at which full snapshots are taken and continuous incremental backup stream is maintained in addition to that. minimum: 0
        Returns:
        interval
      • getRecoveryMode

        @Nullable
        public String getRecoveryMode()
        Mechanism how backups can be restored. 'regular' means a backup is restored as is so that the system is restored to the state it was when the backup was generated. 'pitr' means point-in-time-recovery, which allows restoring the system to any state since the first available full snapshot.
        Returns:
        recoveryMode
      • getFrequentIntervalMinutes

        @Nullable
        public Long getFrequentIntervalMinutes()
        Interval of taking a frequent backup in service types supporting different backup schedules minimum: 0
        Returns:
        frequentIntervalMinutes
      • getFrequentOldestAgeMinutes

        @Nullable
        public Long getFrequentOldestAgeMinutes()
        Maximum age of the oldest frequent backup in service types supporting different backup schedules minimum: 0
        Returns:
        frequentOldestAgeMinutes
      • getInfrequentIntervalMinutes

        @Nullable
        public Long getInfrequentIntervalMinutes()
        Interval of taking a frequent backup in service types supporting different backup schedules minimum: 0
        Returns:
        infrequentIntervalMinutes
      • getInfrequentOldestAgeMinutes

        @Nullable
        public Long getInfrequentOldestAgeMinutes()
        Maximum age of the oldest infrequent backup in service types supporting different backup schedules minimum: 0
        Returns:
        infrequentOldestAgeMinutes
      • equals

        public boolean equals​(Object o)
        Return true if this dbaas-backup-config object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toUrlQueryString

        public String toUrlQueryString()
        Convert the instance into URL query string.
        Returns:
        URL query string
      • toUrlQueryString

        public String toUrlQueryString​(String prefix)
        Convert the instance into URL query string.
        Parameters:
        prefix - prefix of the query string
        Returns:
        URL query string