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

com.pulumi.alicloud.clickhouse.outputs.GetBackupPoliciesPolicy Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.clickhouse.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetBackupPoliciesPolicy {
    /**
     * @return Data backup days. Valid values: `7` to `730`.
     * 
     */
    private Integer backupRetentionPeriod;
    /**
     * @return The db cluster id.
     * 
     */
    private String dbClusterId;
    /**
     * @return The ID of the Backup Policy.
     * 
     */
    private String id;
    /**
     * @return DBCluster Backup period.
     * 
     */
    private List preferredBackupPeriods;
    /**
     * @return Backup Time, UTC time.
     * 
     */
    private String preferredBackupTime;
    /**
     * @return The status of the resource.
     * 
     */
    private String status;

    private GetBackupPoliciesPolicy() {}
    /**
     * @return Data backup days. Valid values: `7` to `730`.
     * 
     */
    public Integer backupRetentionPeriod() {
        return this.backupRetentionPeriod;
    }
    /**
     * @return The db cluster id.
     * 
     */
    public String dbClusterId() {
        return this.dbClusterId;
    }
    /**
     * @return The ID of the Backup Policy.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return DBCluster Backup period.
     * 
     */
    public List preferredBackupPeriods() {
        return this.preferredBackupPeriods;
    }
    /**
     * @return Backup Time, UTC time.
     * 
     */
    public String preferredBackupTime() {
        return this.preferredBackupTime;
    }
    /**
     * @return The status of the resource.
     * 
     */
    public String status() {
        return this.status;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(GetBackupPoliciesPolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer backupRetentionPeriod;
        private String dbClusterId;
        private String id;
        private List preferredBackupPeriods;
        private String preferredBackupTime;
        private String status;
        public Builder() {}
        public Builder(GetBackupPoliciesPolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.backupRetentionPeriod = defaults.backupRetentionPeriod;
    	      this.dbClusterId = defaults.dbClusterId;
    	      this.id = defaults.id;
    	      this.preferredBackupPeriods = defaults.preferredBackupPeriods;
    	      this.preferredBackupTime = defaults.preferredBackupTime;
    	      this.status = defaults.status;
        }

        @CustomType.Setter
        public Builder backupRetentionPeriod(Integer backupRetentionPeriod) {
            if (backupRetentionPeriod == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "backupRetentionPeriod");
            }
            this.backupRetentionPeriod = backupRetentionPeriod;
            return this;
        }
        @CustomType.Setter
        public Builder dbClusterId(String dbClusterId) {
            if (dbClusterId == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "dbClusterId");
            }
            this.dbClusterId = dbClusterId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder preferredBackupPeriods(List preferredBackupPeriods) {
            if (preferredBackupPeriods == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "preferredBackupPeriods");
            }
            this.preferredBackupPeriods = preferredBackupPeriods;
            return this;
        }
        public Builder preferredBackupPeriods(String... preferredBackupPeriods) {
            return preferredBackupPeriods(List.of(preferredBackupPeriods));
        }
        @CustomType.Setter
        public Builder preferredBackupTime(String preferredBackupTime) {
            if (preferredBackupTime == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "preferredBackupTime");
            }
            this.preferredBackupTime = preferredBackupTime;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetBackupPoliciesPolicy", "status");
            }
            this.status = status;
            return this;
        }
        public GetBackupPoliciesPolicy build() {
            final var _resultValue = new GetBackupPoliciesPolicy();
            _resultValue.backupRetentionPeriod = backupRetentionPeriod;
            _resultValue.dbClusterId = dbClusterId;
            _resultValue.id = id;
            _resultValue.preferredBackupPeriods = preferredBackupPeriods;
            _resultValue.preferredBackupTime = preferredBackupTime;
            _resultValue.status = status;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy