com.pulumi.azurenative.documentdb.outputs.DatabaseRestoreResourceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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 DatabaseRestoreResourceResponse {
/**
* @return The names of the collections available for restore.
*
*/
private @Nullable List collectionNames;
/**
* @return The name of the database available for restore.
*
*/
private @Nullable String databaseName;
private DatabaseRestoreResourceResponse() {}
/**
* @return The names of the collections available for restore.
*
*/
public List collectionNames() {
return this.collectionNames == null ? List.of() : this.collectionNames;
}
/**
* @return The name of the database available for restore.
*
*/
public Optional databaseName() {
return Optional.ofNullable(this.databaseName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DatabaseRestoreResourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List collectionNames;
private @Nullable String databaseName;
public Builder() {}
public Builder(DatabaseRestoreResourceResponse defaults) {
Objects.requireNonNull(defaults);
this.collectionNames = defaults.collectionNames;
this.databaseName = defaults.databaseName;
}
@CustomType.Setter
public Builder collectionNames(@Nullable List collectionNames) {
this.collectionNames = collectionNames;
return this;
}
public Builder collectionNames(String... collectionNames) {
return collectionNames(List.of(collectionNames));
}
@CustomType.Setter
public Builder databaseName(@Nullable String databaseName) {
this.databaseName = databaseName;
return this;
}
public DatabaseRestoreResourceResponse build() {
final var _resultValue = new DatabaseRestoreResourceResponse();
_resultValue.collectionNames = collectionNames;
_resultValue.databaseName = databaseName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy