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

com.pulumi.azure.mssql.outputs.ManagedDatabasePointInTimeRestore Maven / Gradle / Ivy

// *** 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.azure.mssql.outputs;

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

@CustomType
public final class ManagedDatabasePointInTimeRestore {
    /**
     * @return The point in time for the restore from `source_database_id`. Changing this forces a new resource to be created.
     * 
     */
    private String restorePointInTime;
    /**
     * @return The source database id that will be used to restore from. Changing this forces a new resource to be created.
     * 
     */
    private String sourceDatabaseId;

    private ManagedDatabasePointInTimeRestore() {}
    /**
     * @return The point in time for the restore from `source_database_id`. Changing this forces a new resource to be created.
     * 
     */
    public String restorePointInTime() {
        return this.restorePointInTime;
    }
    /**
     * @return The source database id that will be used to restore from. Changing this forces a new resource to be created.
     * 
     */
    public String sourceDatabaseId() {
        return this.sourceDatabaseId;
    }

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

    public static Builder builder(ManagedDatabasePointInTimeRestore defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String restorePointInTime;
        private String sourceDatabaseId;
        public Builder() {}
        public Builder(ManagedDatabasePointInTimeRestore defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.restorePointInTime = defaults.restorePointInTime;
    	      this.sourceDatabaseId = defaults.sourceDatabaseId;
        }

        @CustomType.Setter
        public Builder restorePointInTime(String restorePointInTime) {
            if (restorePointInTime == null) {
              throw new MissingRequiredPropertyException("ManagedDatabasePointInTimeRestore", "restorePointInTime");
            }
            this.restorePointInTime = restorePointInTime;
            return this;
        }
        @CustomType.Setter
        public Builder sourceDatabaseId(String sourceDatabaseId) {
            if (sourceDatabaseId == null) {
              throw new MissingRequiredPropertyException("ManagedDatabasePointInTimeRestore", "sourceDatabaseId");
            }
            this.sourceDatabaseId = sourceDatabaseId;
            return this;
        }
        public ManagedDatabasePointInTimeRestore build() {
            final var _resultValue = new ManagedDatabasePointInTimeRestore();
            _resultValue.restorePointInTime = restorePointInTime;
            _resultValue.sourceDatabaseId = sourceDatabaseId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy