com.pulumi.azurenative.datamigration.outputs.MigrateSqlServerSqlDbDatabaseInputResponse 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.datamigration.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MigrateSqlServerSqlDbDatabaseInputResponse {
/**
* @return Whether to set database read only before migration
*
*/
private @Nullable Boolean makeSourceDbReadOnly;
/**
* @return Name of the database
*
*/
private @Nullable String name;
/**
* @return Mapping of source to target tables
*
*/
private @Nullable Map tableMap;
/**
* @return Name of target database. Note: Target database will be truncated before starting migration.
*
*/
private @Nullable String targetDatabaseName;
private MigrateSqlServerSqlDbDatabaseInputResponse() {}
/**
* @return Whether to set database read only before migration
*
*/
public Optional makeSourceDbReadOnly() {
return Optional.ofNullable(this.makeSourceDbReadOnly);
}
/**
* @return Name of the database
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Mapping of source to target tables
*
*/
public Map tableMap() {
return this.tableMap == null ? Map.of() : this.tableMap;
}
/**
* @return Name of target database. Note: Target database will be truncated before starting migration.
*
*/
public Optional targetDatabaseName() {
return Optional.ofNullable(this.targetDatabaseName);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MigrateSqlServerSqlDbDatabaseInputResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean makeSourceDbReadOnly;
private @Nullable String name;
private @Nullable Map tableMap;
private @Nullable String targetDatabaseName;
public Builder() {}
public Builder(MigrateSqlServerSqlDbDatabaseInputResponse defaults) {
Objects.requireNonNull(defaults);
this.makeSourceDbReadOnly = defaults.makeSourceDbReadOnly;
this.name = defaults.name;
this.tableMap = defaults.tableMap;
this.targetDatabaseName = defaults.targetDatabaseName;
}
@CustomType.Setter
public Builder makeSourceDbReadOnly(@Nullable Boolean makeSourceDbReadOnly) {
this.makeSourceDbReadOnly = makeSourceDbReadOnly;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder tableMap(@Nullable Map tableMap) {
this.tableMap = tableMap;
return this;
}
@CustomType.Setter
public Builder targetDatabaseName(@Nullable String targetDatabaseName) {
this.targetDatabaseName = targetDatabaseName;
return this;
}
public MigrateSqlServerSqlDbDatabaseInputResponse build() {
final var _resultValue = new MigrateSqlServerSqlDbDatabaseInputResponse();
_resultValue.makeSourceDbReadOnly = makeSourceDbReadOnly;
_resultValue.name = name;
_resultValue.tableMap = tableMap;
_resultValue.targetDatabaseName = targetDatabaseName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy