com.pulumi.azurenative.datamigration.outputs.MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse 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.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse {
/**
* @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 MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse() {}
/**
* @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(MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String name;
private @Nullable Map tableMap;
private @Nullable String targetDatabaseName;
public Builder() {}
public Builder(MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.tableMap = defaults.tableMap;
this.targetDatabaseName = defaults.targetDatabaseName;
}
@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 MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse build() {
final var _resultValue = new MigrateMySqlAzureDbForMySqlOfflineDatabaseInputResponse();
_resultValue.name = name;
_resultValue.tableMap = tableMap;
_resultValue.targetDatabaseName = targetDatabaseName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy