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

com.pulumi.azurenative.datamigration.outputs.ConnectToSourcePostgreSqlSyncTaskOutputResponse 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.ReportableExceptionResponse;
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 ConnectToSourcePostgreSqlSyncTaskOutputResponse {
    /**
     * @return List of databases on source server
     * 
     */
    private List databases;
    /**
     * @return Result identifier
     * 
     */
    private String id;
    /**
     * @return Source server brand version
     * 
     */
    private String sourceServerBrandVersion;
    /**
     * @return Version of the source server
     * 
     */
    private String sourceServerVersion;
    /**
     * @return Validation errors associated with the task
     * 
     */
    private List validationErrors;

    private ConnectToSourcePostgreSqlSyncTaskOutputResponse() {}
    /**
     * @return List of databases on source server
     * 
     */
    public List databases() {
        return this.databases;
    }
    /**
     * @return Result identifier
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Source server brand version
     * 
     */
    public String sourceServerBrandVersion() {
        return this.sourceServerBrandVersion;
    }
    /**
     * @return Version of the source server
     * 
     */
    public String sourceServerVersion() {
        return this.sourceServerVersion;
    }
    /**
     * @return Validation errors associated with the task
     * 
     */
    public List validationErrors() {
        return this.validationErrors;
    }

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

    public static Builder builder(ConnectToSourcePostgreSqlSyncTaskOutputResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List databases;
        private String id;
        private String sourceServerBrandVersion;
        private String sourceServerVersion;
        private List validationErrors;
        public Builder() {}
        public Builder(ConnectToSourcePostgreSqlSyncTaskOutputResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.databases = defaults.databases;
    	      this.id = defaults.id;
    	      this.sourceServerBrandVersion = defaults.sourceServerBrandVersion;
    	      this.sourceServerVersion = defaults.sourceServerVersion;
    	      this.validationErrors = defaults.validationErrors;
        }

        @CustomType.Setter
        public Builder databases(List databases) {
            if (databases == null) {
              throw new MissingRequiredPropertyException("ConnectToSourcePostgreSqlSyncTaskOutputResponse", "databases");
            }
            this.databases = databases;
            return this;
        }
        public Builder databases(String... databases) {
            return databases(List.of(databases));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("ConnectToSourcePostgreSqlSyncTaskOutputResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder sourceServerBrandVersion(String sourceServerBrandVersion) {
            if (sourceServerBrandVersion == null) {
              throw new MissingRequiredPropertyException("ConnectToSourcePostgreSqlSyncTaskOutputResponse", "sourceServerBrandVersion");
            }
            this.sourceServerBrandVersion = sourceServerBrandVersion;
            return this;
        }
        @CustomType.Setter
        public Builder sourceServerVersion(String sourceServerVersion) {
            if (sourceServerVersion == null) {
              throw new MissingRequiredPropertyException("ConnectToSourcePostgreSqlSyncTaskOutputResponse", "sourceServerVersion");
            }
            this.sourceServerVersion = sourceServerVersion;
            return this;
        }
        @CustomType.Setter
        public Builder validationErrors(List validationErrors) {
            if (validationErrors == null) {
              throw new MissingRequiredPropertyException("ConnectToSourcePostgreSqlSyncTaskOutputResponse", "validationErrors");
            }
            this.validationErrors = validationErrors;
            return this;
        }
        public Builder validationErrors(ReportableExceptionResponse... validationErrors) {
            return validationErrors(List.of(validationErrors));
        }
        public ConnectToSourcePostgreSqlSyncTaskOutputResponse build() {
            final var _resultValue = new ConnectToSourcePostgreSqlSyncTaskOutputResponse();
            _resultValue.databases = databases;
            _resultValue.id = id;
            _resultValue.sourceServerBrandVersion = sourceServerBrandVersion;
            _resultValue.sourceServerVersion = sourceServerVersion;
            _resultValue.validationErrors = validationErrors;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy