All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.gpdb20160503.models.DescribeBackupPolicyResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.gpdb20160503.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeBackupPolicyResponseBody} extends {@link TeaModel}
 *
 * 

DescribeBackupPolicyResponseBody

*/ public class DescribeBackupPolicyResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("BackupRetentionPeriod") private Integer backupRetentionPeriod; @com.aliyun.core.annotation.NameInMap("EnableRecoveryPoint") private Boolean enableRecoveryPoint; @com.aliyun.core.annotation.NameInMap("PreferredBackupPeriod") private String preferredBackupPeriod; @com.aliyun.core.annotation.NameInMap("PreferredBackupTime") private String preferredBackupTime; @com.aliyun.core.annotation.NameInMap("RecoveryPointPeriod") private String recoveryPointPeriod; @com.aliyun.core.annotation.NameInMap("RequestId") private String requestId; private DescribeBackupPolicyResponseBody(Builder builder) { this.backupRetentionPeriod = builder.backupRetentionPeriod; this.enableRecoveryPoint = builder.enableRecoveryPoint; this.preferredBackupPeriod = builder.preferredBackupPeriod; this.preferredBackupTime = builder.preferredBackupTime; this.recoveryPointPeriod = builder.recoveryPointPeriod; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static DescribeBackupPolicyResponseBody create() { return builder().build(); } /** * @return backupRetentionPeriod */ public Integer getBackupRetentionPeriod() { return this.backupRetentionPeriod; } /** * @return enableRecoveryPoint */ public Boolean getEnableRecoveryPoint() { return this.enableRecoveryPoint; } /** * @return preferredBackupPeriod */ public String getPreferredBackupPeriod() { return this.preferredBackupPeriod; } /** * @return preferredBackupTime */ public String getPreferredBackupTime() { return this.preferredBackupTime; } /** * @return recoveryPointPeriod */ public String getRecoveryPointPeriod() { return this.recoveryPointPeriod; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Integer backupRetentionPeriod; private Boolean enableRecoveryPoint; private String preferredBackupPeriod; private String preferredBackupTime; private String recoveryPointPeriod; private String requestId; /** * The number of days for which data backup files are retained. */ public Builder backupRetentionPeriod(Integer backupRetentionPeriod) { this.backupRetentionPeriod = backupRetentionPeriod; return this; } /** * Indicates whether automatic point-in-time backup is enabled. Valid values: *

* * * **true**: Automatic point-in-time backup is enabled. * * **false**: Automatic point-in-time backup is disabled. */ public Builder enableRecoveryPoint(Boolean enableRecoveryPoint) { this.enableRecoveryPoint = enableRecoveryPoint; return this; } /** * The cycle based on which backups are performed. If more than one day of the week is specified, the days of the week are separated by commas (,). Valid values: *

* * * **Monday** * * **Tuesday** * * **Wednesday** * * **Thursday** * * **Friday** * * **Saturday** * * **Sunday** */ public Builder preferredBackupPeriod(String preferredBackupPeriod) { this.preferredBackupPeriod = preferredBackupPeriod; return this; } /** * The backup time. The time is in the HH:mmZ-HH:mmZ format. The time is displayed in UTC. */ public Builder preferredBackupTime(String preferredBackupTime) { this.preferredBackupTime = preferredBackupTime; return this; } /** * The frequency of the point-in-time backup. Valid values: *

* * * **1**: per hour * * **2**: per 2 hours * * **4**: per 4 hours * * **8**: per 8 hours */ public Builder recoveryPointPeriod(String recoveryPointPeriod) { this.recoveryPointPeriod = recoveryPointPeriod; return this; } /** * The ID of the request. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public DescribeBackupPolicyResponseBody build() { return new DescribeBackupPolicyResponseBody(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy