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

com.pulumi.azurenative.dbformysql.inputs.BackupArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.dbformysql.inputs;

import com.pulumi.azurenative.dbformysql.enums.EnableStatusEnum;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Storage Profile properties of a server
 * 
 */
public final class BackupArgs extends com.pulumi.resources.ResourceArgs {

    public static final BackupArgs Empty = new BackupArgs();

    /**
     * Backup retention days for the server.
     * 
     */
    @Import(name="backupRetentionDays")
    private @Nullable Output backupRetentionDays;

    /**
     * @return Backup retention days for the server.
     * 
     */
    public Optional> backupRetentionDays() {
        return Optional.ofNullable(this.backupRetentionDays);
    }

    /**
     * Whether or not geo redundant backup is enabled.
     * 
     */
    @Import(name="geoRedundantBackup")
    private @Nullable Output> geoRedundantBackup;

    /**
     * @return Whether or not geo redundant backup is enabled.
     * 
     */
    public Optional>> geoRedundantBackup() {
        return Optional.ofNullable(this.geoRedundantBackup);
    }

    private BackupArgs() {}

    private BackupArgs(BackupArgs $) {
        this.backupRetentionDays = $.backupRetentionDays;
        this.geoRedundantBackup = $.geoRedundantBackup;
    }

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

    public static final class Builder {
        private BackupArgs $;

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

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

        /**
         * @param backupRetentionDays Backup retention days for the server.
         * 
         * @return builder
         * 
         */
        public Builder backupRetentionDays(@Nullable Output backupRetentionDays) {
            $.backupRetentionDays = backupRetentionDays;
            return this;
        }

        /**
         * @param backupRetentionDays Backup retention days for the server.
         * 
         * @return builder
         * 
         */
        public Builder backupRetentionDays(Integer backupRetentionDays) {
            return backupRetentionDays(Output.of(backupRetentionDays));
        }

        /**
         * @param geoRedundantBackup Whether or not geo redundant backup is enabled.
         * 
         * @return builder
         * 
         */
        public Builder geoRedundantBackup(@Nullable Output> geoRedundantBackup) {
            $.geoRedundantBackup = geoRedundantBackup;
            return this;
        }

        /**
         * @param geoRedundantBackup Whether or not geo redundant backup is enabled.
         * 
         * @return builder
         * 
         */
        public Builder geoRedundantBackup(Either geoRedundantBackup) {
            return geoRedundantBackup(Output.of(geoRedundantBackup));
        }

        /**
         * @param geoRedundantBackup Whether or not geo redundant backup is enabled.
         * 
         * @return builder
         * 
         */
        public Builder geoRedundantBackup(String geoRedundantBackup) {
            return geoRedundantBackup(Either.ofLeft(geoRedundantBackup));
        }

        /**
         * @param geoRedundantBackup Whether or not geo redundant backup is enabled.
         * 
         * @return builder
         * 
         */
        public Builder geoRedundantBackup(EnableStatusEnum geoRedundantBackup) {
            return geoRedundantBackup(Either.ofRight(geoRedundantBackup));
        }

        public BackupArgs build() {
            $.geoRedundantBackup = Codegen.stringProp("geoRedundantBackup").left(EnableStatusEnum.class).output().arg($.geoRedundantBackup).def("Disabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy