com.pulumi.azurenative.datamigration.inputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs 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.
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.datamigration.inputs;
import com.pulumi.azurenative.datamigration.inputs.MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputArgs;
import com.pulumi.azurenative.datamigration.inputs.PostgreSqlConnectionInfoArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;
/**
* Input for the task that migrates PostgreSQL databases to Azure Database for PostgreSQL for online migrations
*
*/
public final class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs extends com.pulumi.resources.ResourceArgs {
public static final MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs Empty = new MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs();
/**
* Databases to migrate
*
*/
@Import(name="selectedDatabases", required=true)
private Output> selectedDatabases;
/**
* @return Databases to migrate
*
*/
public Output> selectedDatabases() {
return this.selectedDatabases;
}
/**
* Connection information for source PostgreSQL
*
*/
@Import(name="sourceConnectionInfo", required=true)
private Output sourceConnectionInfo;
/**
* @return Connection information for source PostgreSQL
*
*/
public Output sourceConnectionInfo() {
return this.sourceConnectionInfo;
}
/**
* Connection information for target Azure Database for PostgreSQL
*
*/
@Import(name="targetConnectionInfo", required=true)
private Output targetConnectionInfo;
/**
* @return Connection information for target Azure Database for PostgreSQL
*
*/
public Output targetConnectionInfo() {
return this.targetConnectionInfo;
}
private MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs() {}
private MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs $) {
this.selectedDatabases = $.selectedDatabases;
this.sourceConnectionInfo = $.sourceConnectionInfo;
this.targetConnectionInfo = $.targetConnectionInfo;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs $;
public Builder() {
$ = new MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs();
}
public Builder(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs defaults) {
$ = new MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs(Objects.requireNonNull(defaults));
}
/**
* @param selectedDatabases Databases to migrate
*
* @return builder
*
*/
public Builder selectedDatabases(Output> selectedDatabases) {
$.selectedDatabases = selectedDatabases;
return this;
}
/**
* @param selectedDatabases Databases to migrate
*
* @return builder
*
*/
public Builder selectedDatabases(List selectedDatabases) {
return selectedDatabases(Output.of(selectedDatabases));
}
/**
* @param selectedDatabases Databases to migrate
*
* @return builder
*
*/
public Builder selectedDatabases(MigratePostgreSqlAzureDbForPostgreSqlSyncDatabaseInputArgs... selectedDatabases) {
return selectedDatabases(List.of(selectedDatabases));
}
/**
* @param sourceConnectionInfo Connection information for source PostgreSQL
*
* @return builder
*
*/
public Builder sourceConnectionInfo(Output sourceConnectionInfo) {
$.sourceConnectionInfo = sourceConnectionInfo;
return this;
}
/**
* @param sourceConnectionInfo Connection information for source PostgreSQL
*
* @return builder
*
*/
public Builder sourceConnectionInfo(PostgreSqlConnectionInfoArgs sourceConnectionInfo) {
return sourceConnectionInfo(Output.of(sourceConnectionInfo));
}
/**
* @param targetConnectionInfo Connection information for target Azure Database for PostgreSQL
*
* @return builder
*
*/
public Builder targetConnectionInfo(Output targetConnectionInfo) {
$.targetConnectionInfo = targetConnectionInfo;
return this;
}
/**
* @param targetConnectionInfo Connection information for target Azure Database for PostgreSQL
*
* @return builder
*
*/
public Builder targetConnectionInfo(PostgreSqlConnectionInfoArgs targetConnectionInfo) {
return targetConnectionInfo(Output.of(targetConnectionInfo));
}
public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs build() {
if ($.selectedDatabases == null) {
throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs", "selectedDatabases");
}
if ($.sourceConnectionInfo == null) {
throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs", "sourceConnectionInfo");
}
if ($.targetConnectionInfo == null) {
throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputArgs", "targetConnectionInfo");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy