com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse 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.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInputResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse {
/**
* @return Migration settings which tune the migration behavior
*
*/
private @Nullable Map migrationSetting;
/**
* @return Name of the database
*
*/
private @Nullable String name;
/**
* @return Tables selected for migration
*
*/
private @Nullable List selectedTables;
/**
* @return Source settings to tune source endpoint migration behavior
*
*/
private @Nullable Map sourceSetting;
/**
* @return Name of target database. Note: Target database will be truncated before starting migration.
*
*/
private @Nullable String targetDatabaseName;
/**
* @return Target settings to tune target endpoint migration behavior
*
*/
private @Nullable Map targetSetting;
private MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse() {}
/**
* @return Migration settings which tune the migration behavior
*
*/
public Map migrationSetting() {
return this.migrationSetting == null ? Map.of() : this.migrationSetting;
}
/**
* @return Name of the database
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Tables selected for migration
*
*/
public List selectedTables() {
return this.selectedTables == null ? List.of() : this.selectedTables;
}
/**
* @return Source settings to tune source endpoint migration behavior
*
*/
public Map sourceSetting() {
return this.sourceSetting == null ? Map.of() : this.sourceSetting;
}
/**
* @return Name of target database. Note: Target database will be truncated before starting migration.
*
*/
public Optional targetDatabaseName() {
return Optional.ofNullable(this.targetDatabaseName);
}
/**
* @return Target settings to tune target endpoint migration behavior
*
*/
public Map targetSetting() {
return this.targetSetting == null ? Map.of() : this.targetSetting;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map migrationSetting;
private @Nullable String name;
private @Nullable List selectedTables;
private @Nullable Map sourceSetting;
private @Nullable String targetDatabaseName;
private @Nullable Map targetSetting;
public Builder() {}
public Builder(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse defaults) {
Objects.requireNonNull(defaults);
this.migrationSetting = defaults.migrationSetting;
this.name = defaults.name;
this.selectedTables = defaults.selectedTables;
this.sourceSetting = defaults.sourceSetting;
this.targetDatabaseName = defaults.targetDatabaseName;
this.targetSetting = defaults.targetSetting;
}
@CustomType.Setter
public Builder migrationSetting(@Nullable Map migrationSetting) {
this.migrationSetting = migrationSetting;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder selectedTables(@Nullable List selectedTables) {
this.selectedTables = selectedTables;
return this;
}
public Builder selectedTables(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseTableInputResponse... selectedTables) {
return selectedTables(List.of(selectedTables));
}
@CustomType.Setter
public Builder sourceSetting(@Nullable Map sourceSetting) {
this.sourceSetting = sourceSetting;
return this;
}
@CustomType.Setter
public Builder targetDatabaseName(@Nullable String targetDatabaseName) {
this.targetDatabaseName = targetDatabaseName;
return this;
}
@CustomType.Setter
public Builder targetSetting(@Nullable Map targetSetting) {
this.targetSetting = targetSetting;
return this;
}
public MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse build() {
final var _resultValue = new MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputResponse();
_resultValue.migrationSetting = migrationSetting;
_resultValue.name = name;
_resultValue.selectedTables = selectedTables;
_resultValue.sourceSetting = sourceSetting;
_resultValue.targetDatabaseName = targetDatabaseName;
_resultValue.targetSetting = targetSetting;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy