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

com.pulumi.alicloud.threatdetection.BackupPolicyArgs 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.threatdetection;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BackupPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackupPolicyArgs Empty = new BackupPolicyArgs();

    /**
     * Protection of the Name of the Policy.
     * 
     */
    @Import(name="backupPolicyName", required=true)
    private Output backupPolicyName;

    /**
     * @return Protection of the Name of the Policy.
     * 
     */
    public Output backupPolicyName() {
        return this.backupPolicyName;
    }

    /**
     * The Specified Protection Policies of the Specific Configuration. see [how to use it](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createbackuppolicy).
     * 
     */
    @Import(name="policy", required=true)
    private Output policy;

    /**
     * @return The Specified Protection Policies of the Specific Configuration. see [how to use it](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createbackuppolicy).
     * 
     */
    public Output policy() {
        return this.policy;
    }

    /**
     * The region ID of the non-Alibaba cloud server. You can call the [DescribeSupportRegion](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describesupportregion) interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.
     * 
     */
    @Import(name="policyRegionId")
    private @Nullable Output policyRegionId;

    /**
     * @return The region ID of the non-Alibaba cloud server. You can call the [DescribeSupportRegion](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describesupportregion) interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.
     * 
     */
    public Optional> policyRegionId() {
        return Optional.ofNullable(this.policyRegionId);
    }

    /**
     * Anti-Blackmail Policy Version. Valid values: `1.0.0`, `2.0.0`.
     * 
     */
    @Import(name="policyVersion", required=true)
    private Output policyVersion;

    /**
     * @return Anti-Blackmail Policy Version. Valid values: `1.0.0`, `2.0.0`.
     * 
     */
    public Output policyVersion() {
        return this.policyVersion;
    }

    /**
     * Specify the Protection of Server UUID List.
     * 
     */
    @Import(name="uuidLists", required=true)
    private Output> uuidLists;

    /**
     * @return Specify the Protection of Server UUID List.
     * 
     */
    public Output> uuidLists() {
        return this.uuidLists;
    }

    private BackupPolicyArgs() {}

    private BackupPolicyArgs(BackupPolicyArgs $) {
        this.backupPolicyName = $.backupPolicyName;
        this.policy = $.policy;
        this.policyRegionId = $.policyRegionId;
        this.policyVersion = $.policyVersion;
        this.uuidLists = $.uuidLists;
    }

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

    public static final class Builder {
        private BackupPolicyArgs $;

        public Builder() {
            $ = new BackupPolicyArgs();
        }

        public Builder(BackupPolicyArgs defaults) {
            $ = new BackupPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param backupPolicyName Protection of the Name of the Policy.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicyName(Output backupPolicyName) {
            $.backupPolicyName = backupPolicyName;
            return this;
        }

        /**
         * @param backupPolicyName Protection of the Name of the Policy.
         * 
         * @return builder
         * 
         */
        public Builder backupPolicyName(String backupPolicyName) {
            return backupPolicyName(Output.of(backupPolicyName));
        }

        /**
         * @param policy The Specified Protection Policies of the Specific Configuration. see [how to use it](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createbackuppolicy).
         * 
         * @return builder
         * 
         */
        public Builder policy(Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The Specified Protection Policies of the Specific Configuration. see [how to use it](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createbackuppolicy).
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param policyRegionId The region ID of the non-Alibaba cloud server. You can call the [DescribeSupportRegion](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describesupportregion) interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.
         * 
         * @return builder
         * 
         */
        public Builder policyRegionId(@Nullable Output policyRegionId) {
            $.policyRegionId = policyRegionId;
            return this;
        }

        /**
         * @param policyRegionId The region ID of the non-Alibaba cloud server. You can call the [DescribeSupportRegion](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-describesupportregion) interface to view the region supported by anti-ransomware, and then select the region supported by anti-ransomware according to the region where your non-Alibaba cloud server is located.
         * 
         * @return builder
         * 
         */
        public Builder policyRegionId(String policyRegionId) {
            return policyRegionId(Output.of(policyRegionId));
        }

        /**
         * @param policyVersion Anti-Blackmail Policy Version. Valid values: `1.0.0`, `2.0.0`.
         * 
         * @return builder
         * 
         */
        public Builder policyVersion(Output policyVersion) {
            $.policyVersion = policyVersion;
            return this;
        }

        /**
         * @param policyVersion Anti-Blackmail Policy Version. Valid values: `1.0.0`, `2.0.0`.
         * 
         * @return builder
         * 
         */
        public Builder policyVersion(String policyVersion) {
            return policyVersion(Output.of(policyVersion));
        }

        /**
         * @param uuidLists Specify the Protection of Server UUID List.
         * 
         * @return builder
         * 
         */
        public Builder uuidLists(Output> uuidLists) {
            $.uuidLists = uuidLists;
            return this;
        }

        /**
         * @param uuidLists Specify the Protection of Server UUID List.
         * 
         * @return builder
         * 
         */
        public Builder uuidLists(List uuidLists) {
            return uuidLists(Output.of(uuidLists));
        }

        /**
         * @param uuidLists Specify the Protection of Server UUID List.
         * 
         * @return builder
         * 
         */
        public Builder uuidLists(String... uuidLists) {
            return uuidLists(List.of(uuidLists));
        }

        public BackupPolicyArgs build() {
            if ($.backupPolicyName == null) {
                throw new MissingRequiredPropertyException("BackupPolicyArgs", "backupPolicyName");
            }
            if ($.policy == null) {
                throw new MissingRequiredPropertyException("BackupPolicyArgs", "policy");
            }
            if ($.policyVersion == null) {
                throw new MissingRequiredPropertyException("BackupPolicyArgs", "policyVersion");
            }
            if ($.uuidLists == null) {
                throw new MissingRequiredPropertyException("BackupPolicyArgs", "uuidLists");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy