com.pulumi.azurenative.datamigration.outputs.GetUserTablesSqlSyncTaskInputResponse 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.SqlConnectionInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetUserTablesSqlSyncTaskInputResponse {
/**
* @return List of source database names to collect tables for
*
*/
private List selectedSourceDatabases;
/**
* @return List of target database names to collect tables for
*
*/
private List selectedTargetDatabases;
/**
* @return Connection information for SQL Server
*
*/
private SqlConnectionInfoResponse sourceConnectionInfo;
/**
* @return Connection information for SQL DB
*
*/
private SqlConnectionInfoResponse targetConnectionInfo;
private GetUserTablesSqlSyncTaskInputResponse() {}
/**
* @return List of source database names to collect tables for
*
*/
public List selectedSourceDatabases() {
return this.selectedSourceDatabases;
}
/**
* @return List of target database names to collect tables for
*
*/
public List selectedTargetDatabases() {
return this.selectedTargetDatabases;
}
/**
* @return Connection information for SQL Server
*
*/
public SqlConnectionInfoResponse sourceConnectionInfo() {
return this.sourceConnectionInfo;
}
/**
* @return Connection information for SQL DB
*
*/
public SqlConnectionInfoResponse targetConnectionInfo() {
return this.targetConnectionInfo;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserTablesSqlSyncTaskInputResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List selectedSourceDatabases;
private List selectedTargetDatabases;
private SqlConnectionInfoResponse sourceConnectionInfo;
private SqlConnectionInfoResponse targetConnectionInfo;
public Builder() {}
public Builder(GetUserTablesSqlSyncTaskInputResponse defaults) {
Objects.requireNonNull(defaults);
this.selectedSourceDatabases = defaults.selectedSourceDatabases;
this.selectedTargetDatabases = defaults.selectedTargetDatabases;
this.sourceConnectionInfo = defaults.sourceConnectionInfo;
this.targetConnectionInfo = defaults.targetConnectionInfo;
}
@CustomType.Setter
public Builder selectedSourceDatabases(List selectedSourceDatabases) {
if (selectedSourceDatabases == null) {
throw new MissingRequiredPropertyException("GetUserTablesSqlSyncTaskInputResponse", "selectedSourceDatabases");
}
this.selectedSourceDatabases = selectedSourceDatabases;
return this;
}
public Builder selectedSourceDatabases(String... selectedSourceDatabases) {
return selectedSourceDatabases(List.of(selectedSourceDatabases));
}
@CustomType.Setter
public Builder selectedTargetDatabases(List selectedTargetDatabases) {
if (selectedTargetDatabases == null) {
throw new MissingRequiredPropertyException("GetUserTablesSqlSyncTaskInputResponse", "selectedTargetDatabases");
}
this.selectedTargetDatabases = selectedTargetDatabases;
return this;
}
public Builder selectedTargetDatabases(String... selectedTargetDatabases) {
return selectedTargetDatabases(List.of(selectedTargetDatabases));
}
@CustomType.Setter
public Builder sourceConnectionInfo(SqlConnectionInfoResponse sourceConnectionInfo) {
if (sourceConnectionInfo == null) {
throw new MissingRequiredPropertyException("GetUserTablesSqlSyncTaskInputResponse", "sourceConnectionInfo");
}
this.sourceConnectionInfo = sourceConnectionInfo;
return this;
}
@CustomType.Setter
public Builder targetConnectionInfo(SqlConnectionInfoResponse targetConnectionInfo) {
if (targetConnectionInfo == null) {
throw new MissingRequiredPropertyException("GetUserTablesSqlSyncTaskInputResponse", "targetConnectionInfo");
}
this.targetConnectionInfo = targetConnectionInfo;
return this;
}
public GetUserTablesSqlSyncTaskInputResponse build() {
final var _resultValue = new GetUserTablesSqlSyncTaskInputResponse();
_resultValue.selectedSourceDatabases = selectedSourceDatabases;
_resultValue.selectedTargetDatabases = selectedTargetDatabases;
_resultValue.sourceConnectionInfo = sourceConnectionInfo;
_resultValue.targetConnectionInfo = targetConnectionInfo;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy