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

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

The 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.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 GremlinDatabaseRestoreResourceResponse {
    /**
     * @return The name of the gremlin database available for restore.
     * 
     */
    private @Nullable String databaseName;
    /**
     * @return The names of the graphs available for restore.
     * 
     */
    private @Nullable List graphNames;

    private GremlinDatabaseRestoreResourceResponse() {}
    /**
     * @return The name of the gremlin database available for restore.
     * 
     */
    public Optional databaseName() {
        return Optional.ofNullable(this.databaseName);
    }
    /**
     * @return The names of the graphs available for restore.
     * 
     */
    public List graphNames() {
        return this.graphNames == null ? List.of() : this.graphNames;
    }

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

    public static Builder builder(GremlinDatabaseRestoreResourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String databaseName;
        private @Nullable List graphNames;
        public Builder() {}
        public Builder(GremlinDatabaseRestoreResourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.databaseName = defaults.databaseName;
    	      this.graphNames = defaults.graphNames;
        }

        @CustomType.Setter
        public Builder databaseName(@Nullable String databaseName) {

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

            this.graphNames = graphNames;
            return this;
        }
        public Builder graphNames(String... graphNames) {
            return graphNames(List.of(graphNames));
        }
        public GremlinDatabaseRestoreResourceResponse build() {
            final var _resultValue = new GremlinDatabaseRestoreResourceResponse();
            _resultValue.databaseName = databaseName;
            _resultValue.graphNames = graphNames;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy