All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.datamigration.outputs.MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show 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.outputs;

import com.pulumi.azurenative.datamigration.outputs.MigrateOracleAzureDbPostgreSqlSyncDatabaseInputResponse;
import com.pulumi.azurenative.datamigration.outputs.OracleConnectionInfoResponse;
import com.pulumi.azurenative.datamigration.outputs.PostgreSqlConnectionInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.List;
import java.util.Objects;

@CustomType
public final class MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse {
    /**
     * @return Databases to migrate
     * 
     */
    private List selectedDatabases;
    /**
     * @return Connection information for source Oracle
     * 
     */
    private OracleConnectionInfoResponse sourceConnectionInfo;
    /**
     * @return Connection information for target Azure Database for PostgreSQL
     * 
     */
    private PostgreSqlConnectionInfoResponse targetConnectionInfo;

    private MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse() {}
    /**
     * @return Databases to migrate
     * 
     */
    public List selectedDatabases() {
        return this.selectedDatabases;
    }
    /**
     * @return Connection information for source Oracle
     * 
     */
    public OracleConnectionInfoResponse sourceConnectionInfo() {
        return this.sourceConnectionInfo;
    }
    /**
     * @return Connection information for target Azure Database for PostgreSQL
     * 
     */
    public PostgreSqlConnectionInfoResponse targetConnectionInfo() {
        return this.targetConnectionInfo;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List selectedDatabases;
        private OracleConnectionInfoResponse sourceConnectionInfo;
        private PostgreSqlConnectionInfoResponse targetConnectionInfo;
        public Builder() {}
        public Builder(MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.selectedDatabases = defaults.selectedDatabases;
    	      this.sourceConnectionInfo = defaults.sourceConnectionInfo;
    	      this.targetConnectionInfo = defaults.targetConnectionInfo;
        }

        @CustomType.Setter
        public Builder selectedDatabases(List selectedDatabases) {
            if (selectedDatabases == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse", "selectedDatabases");
            }
            this.selectedDatabases = selectedDatabases;
            return this;
        }
        public Builder selectedDatabases(MigrateOracleAzureDbPostgreSqlSyncDatabaseInputResponse... selectedDatabases) {
            return selectedDatabases(List.of(selectedDatabases));
        }
        @CustomType.Setter
        public Builder sourceConnectionInfo(OracleConnectionInfoResponse sourceConnectionInfo) {
            if (sourceConnectionInfo == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse", "sourceConnectionInfo");
            }
            this.sourceConnectionInfo = sourceConnectionInfo;
            return this;
        }
        @CustomType.Setter
        public Builder targetConnectionInfo(PostgreSqlConnectionInfoResponse targetConnectionInfo) {
            if (targetConnectionInfo == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse", "targetConnectionInfo");
            }
            this.targetConnectionInfo = targetConnectionInfo;
            return this;
        }
        public MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse build() {
            final var _resultValue = new MigrateOracleAzureDbPostgreSqlSyncTaskInputResponse();
            _resultValue.selectedDatabases = selectedDatabases;
            _resultValue.sourceConnectionInfo = sourceConnectionInfo;
            _resultValue.targetConnectionInfo = targetConnectionInfo;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy