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

com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse 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.MigrateMISyncCompleteCommandPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseErrorResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputDatabaseLevelResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputErrorResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputMigrationLevelResponse;
import com.pulumi.azurenative.datamigration.outputs.MigratePostgreSqlAzureDbForPostgreSqlSyncTaskOutputTableLevelResponse;
import com.pulumi.azurenative.datamigration.outputs.MigrateSyncCompleteCommandPropertiesResponse;
import com.pulumi.azurenative.datamigration.outputs.ODataErrorResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse {
    /**
     * @return Key value pairs of client data to attach meta data information to task
     * 
     */
    private @Nullable Map clientData;
    /**
     * @return Array of command properties.
     * 
     */
    private List> commands;
    /**
     * @return Array of errors. This is ignored if submitted.
     * 
     */
    private List errors;
    /**
     * @return Task input
     * 
     */
    private @Nullable MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputResponse input;
    /**
     * @return Task output. This is ignored if submitted.
     * 
     */
    private List output;
    /**
     * @return The state of the task. This is ignored if submitted.
     * 
     */
    private String state;
    /**
     * @return Task type.
     * Expected value is 'Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2'.
     * 
     */
    private String taskType;

    private MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse() {}
    /**
     * @return Key value pairs of client data to attach meta data information to task
     * 
     */
    public Map clientData() {
        return this.clientData == null ? Map.of() : this.clientData;
    }
    /**
     * @return Array of command properties.
     * 
     */
    public List> commands() {
        return this.commands;
    }
    /**
     * @return Array of errors. This is ignored if submitted.
     * 
     */
    public List errors() {
        return this.errors;
    }
    /**
     * @return Task input
     * 
     */
    public Optional input() {
        return Optional.ofNullable(this.input);
    }
    /**
     * @return Task output. This is ignored if submitted.
     * 
     */
    public List output() {
        return this.output;
    }
    /**
     * @return The state of the task. This is ignored if submitted.
     * 
     */
    public String state() {
        return this.state;
    }
    /**
     * @return Task type.
     * Expected value is 'Migrate.PostgreSql.AzureDbForPostgreSql.SyncV2'.
     * 
     */
    public String taskType() {
        return this.taskType;
    }

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

    public static Builder builder(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map clientData;
        private List> commands;
        private List errors;
        private @Nullable MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputResponse input;
        private List output;
        private String state;
        private String taskType;
        public Builder() {}
        public Builder(MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientData = defaults.clientData;
    	      this.commands = defaults.commands;
    	      this.errors = defaults.errors;
    	      this.input = defaults.input;
    	      this.output = defaults.output;
    	      this.state = defaults.state;
    	      this.taskType = defaults.taskType;
        }

        @CustomType.Setter
        public Builder clientData(@Nullable Map clientData) {

            this.clientData = clientData;
            return this;
        }
        @CustomType.Setter
        public Builder commands(List> commands) {
            if (commands == null) {
              throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse", "commands");
            }
            this.commands = commands;
            return this;
        }
        public Builder commands(Either... commands) {
            return commands(List.of(commands));
        }
        @CustomType.Setter
        public Builder errors(List errors) {
            if (errors == null) {
              throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse", "errors");
            }
            this.errors = errors;
            return this;
        }
        public Builder errors(ODataErrorResponse... errors) {
            return errors(List.of(errors));
        }
        @CustomType.Setter
        public Builder input(@Nullable MigratePostgreSqlAzureDbForPostgreSqlSyncTaskInputResponse input) {

            this.input = input;
            return this;
        }
        @CustomType.Setter
        public Builder output(List output) {
            if (output == null) {
              throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse", "output");
            }
            this.output = output;
            return this;
        }
        public Builder output(Object... output) {
            return output(List.of(output));
        }
        @CustomType.Setter
        public Builder state(String state) {
            if (state == null) {
              throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse", "state");
            }
            this.state = state;
            return this;
        }
        @CustomType.Setter
        public Builder taskType(String taskType) {
            if (taskType == null) {
              throw new MissingRequiredPropertyException("MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse", "taskType");
            }
            this.taskType = taskType;
            return this;
        }
        public MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse build() {
            final var _resultValue = new MigratePostgreSqlAzureDbForPostgreSqlSyncTaskPropertiesResponse();
            _resultValue.clientData = clientData;
            _resultValue.commands = commands;
            _resultValue.errors = errors;
            _resultValue.input = input;
            _resultValue.output = output;
            _resultValue.state = state;
            _resultValue.taskType = taskType;
            return _resultValue;
        }
    }
}