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

com.pulumi.azurenative.documentdb.outputs.RestoreParametersResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.documentdb.outputs;

import com.pulumi.azurenative.documentdb.outputs.DatabaseRestoreResourceResponse;
import com.pulumi.azurenative.documentdb.outputs.GremlinDatabaseRestoreResourceResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RestoreParametersResponse {
    /**
     * @return List of specific databases available for restore.
     * 
     */
    private @Nullable List databasesToRestore;
    /**
     * @return List of specific gremlin databases available for restore.
     * 
     */
    private @Nullable List gremlinDatabasesToRestore;
    /**
     * @return Describes the mode of the restore.
     * 
     */
    private @Nullable String restoreMode;
    /**
     * @return The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}
     * 
     */
    private @Nullable String restoreSource;
    /**
     * @return Time to which the account has to be restored (ISO-8601 format).
     * 
     */
    private @Nullable String restoreTimestampInUtc;
    /**
     * @return List of specific tables available for restore.
     * 
     */
    private @Nullable List tablesToRestore;

    private RestoreParametersResponse() {}
    /**
     * @return List of specific databases available for restore.
     * 
     */
    public List databasesToRestore() {
        return this.databasesToRestore == null ? List.of() : this.databasesToRestore;
    }
    /**
     * @return List of specific gremlin databases available for restore.
     * 
     */
    public List gremlinDatabasesToRestore() {
        return this.gremlinDatabasesToRestore == null ? List.of() : this.gremlinDatabasesToRestore;
    }
    /**
     * @return Describes the mode of the restore.
     * 
     */
    public Optional restoreMode() {
        return Optional.ofNullable(this.restoreMode);
    }
    /**
     * @return The id of the restorable database account from which the restore has to be initiated. For example: /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName}
     * 
     */
    public Optional restoreSource() {
        return Optional.ofNullable(this.restoreSource);
    }
    /**
     * @return Time to which the account has to be restored (ISO-8601 format).
     * 
     */
    public Optional restoreTimestampInUtc() {
        return Optional.ofNullable(this.restoreTimestampInUtc);
    }
    /**
     * @return List of specific tables available for restore.
     * 
     */
    public List tablesToRestore() {
        return this.tablesToRestore == null ? List.of() : this.tablesToRestore;
    }

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

    public static Builder builder(RestoreParametersResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List databasesToRestore;
        private @Nullable List gremlinDatabasesToRestore;
        private @Nullable String restoreMode;
        private @Nullable String restoreSource;
        private @Nullable String restoreTimestampInUtc;
        private @Nullable List tablesToRestore;
        public Builder() {}
        public Builder(RestoreParametersResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.databasesToRestore = defaults.databasesToRestore;
    	      this.gremlinDatabasesToRestore = defaults.gremlinDatabasesToRestore;
    	      this.restoreMode = defaults.restoreMode;
    	      this.restoreSource = defaults.restoreSource;
    	      this.restoreTimestampInUtc = defaults.restoreTimestampInUtc;
    	      this.tablesToRestore = defaults.tablesToRestore;
        }

        @CustomType.Setter
        public Builder databasesToRestore(@Nullable List databasesToRestore) {

            this.databasesToRestore = databasesToRestore;
            return this;
        }
        public Builder databasesToRestore(DatabaseRestoreResourceResponse... databasesToRestore) {
            return databasesToRestore(List.of(databasesToRestore));
        }
        @CustomType.Setter
        public Builder gremlinDatabasesToRestore(@Nullable List gremlinDatabasesToRestore) {

            this.gremlinDatabasesToRestore = gremlinDatabasesToRestore;
            return this;
        }
        public Builder gremlinDatabasesToRestore(GremlinDatabaseRestoreResourceResponse... gremlinDatabasesToRestore) {
            return gremlinDatabasesToRestore(List.of(gremlinDatabasesToRestore));
        }
        @CustomType.Setter
        public Builder restoreMode(@Nullable String restoreMode) {

            this.restoreMode = restoreMode;
            return this;
        }
        @CustomType.Setter
        public Builder restoreSource(@Nullable String restoreSource) {

            this.restoreSource = restoreSource;
            return this;
        }
        @CustomType.Setter
        public Builder restoreTimestampInUtc(@Nullable String restoreTimestampInUtc) {

            this.restoreTimestampInUtc = restoreTimestampInUtc;
            return this;
        }
        @CustomType.Setter
        public Builder tablesToRestore(@Nullable List tablesToRestore) {

            this.tablesToRestore = tablesToRestore;
            return this;
        }
        public Builder tablesToRestore(String... tablesToRestore) {
            return tablesToRestore(List.of(tablesToRestore));
        }
        public RestoreParametersResponse build() {
            final var _resultValue = new RestoreParametersResponse();
            _resultValue.databasesToRestore = databasesToRestore;
            _resultValue.gremlinDatabasesToRestore = gremlinDatabasesToRestore;
            _resultValue.restoreMode = restoreMode;
            _resultValue.restoreSource = restoreSource;
            _resultValue.restoreTimestampInUtc = restoreTimestampInUtc;
            _resultValue.tablesToRestore = tablesToRestore;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy