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

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

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.outputs;

import com.pulumi.azurenative.datamigration.outputs.SchemaComparisonValidationResultTypeResponse;
import com.pulumi.azurenative.datamigration.outputs.ValidationErrorResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SchemaComparisonValidationResultResponse {
    /**
     * @return List of schema differences between the source and target databases
     * 
     */
    private @Nullable SchemaComparisonValidationResultTypeResponse schemaDifferences;
    /**
     * @return Count of source database objects
     * 
     */
    private @Nullable Map sourceDatabaseObjectCount;
    /**
     * @return Count of target database objects
     * 
     */
    private @Nullable Map targetDatabaseObjectCount;
    /**
     * @return List of errors that happened while performing schema compare validation
     * 
     */
    private @Nullable ValidationErrorResponse validationErrors;

    private SchemaComparisonValidationResultResponse() {}
    /**
     * @return List of schema differences between the source and target databases
     * 
     */
    public Optional schemaDifferences() {
        return Optional.ofNullable(this.schemaDifferences);
    }
    /**
     * @return Count of source database objects
     * 
     */
    public Map sourceDatabaseObjectCount() {
        return this.sourceDatabaseObjectCount == null ? Map.of() : this.sourceDatabaseObjectCount;
    }
    /**
     * @return Count of target database objects
     * 
     */
    public Map targetDatabaseObjectCount() {
        return this.targetDatabaseObjectCount == null ? Map.of() : this.targetDatabaseObjectCount;
    }
    /**
     * @return List of errors that happened while performing schema compare validation
     * 
     */
    public Optional validationErrors() {
        return Optional.ofNullable(this.validationErrors);
    }

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

    public static Builder builder(SchemaComparisonValidationResultResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable SchemaComparisonValidationResultTypeResponse schemaDifferences;
        private @Nullable Map sourceDatabaseObjectCount;
        private @Nullable Map targetDatabaseObjectCount;
        private @Nullable ValidationErrorResponse validationErrors;
        public Builder() {}
        public Builder(SchemaComparisonValidationResultResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.schemaDifferences = defaults.schemaDifferences;
    	      this.sourceDatabaseObjectCount = defaults.sourceDatabaseObjectCount;
    	      this.targetDatabaseObjectCount = defaults.targetDatabaseObjectCount;
    	      this.validationErrors = defaults.validationErrors;
        }

        @CustomType.Setter
        public Builder schemaDifferences(@Nullable SchemaComparisonValidationResultTypeResponse schemaDifferences) {

            this.schemaDifferences = schemaDifferences;
            return this;
        }
        @CustomType.Setter
        public Builder sourceDatabaseObjectCount(@Nullable Map sourceDatabaseObjectCount) {

            this.sourceDatabaseObjectCount = sourceDatabaseObjectCount;
            return this;
        }
        @CustomType.Setter
        public Builder targetDatabaseObjectCount(@Nullable Map targetDatabaseObjectCount) {

            this.targetDatabaseObjectCount = targetDatabaseObjectCount;
            return this;
        }
        @CustomType.Setter
        public Builder validationErrors(@Nullable ValidationErrorResponse validationErrors) {

            this.validationErrors = validationErrors;
            return this;
        }
        public SchemaComparisonValidationResultResponse build() {
            final var _resultValue = new SchemaComparisonValidationResultResponse();
            _resultValue.schemaDifferences = schemaDifferences;
            _resultValue.sourceDatabaseObjectCount = sourceDatabaseObjectCount;
            _resultValue.targetDatabaseObjectCount = targetDatabaseObjectCount;
            _resultValue.validationErrors = validationErrors;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy