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

com.pulumi.azurenative.datamigration.outputs.MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse 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.ReportableExceptionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse {
    /**
     * @return Migration error
     * 
     */
    private ReportableExceptionResponse error;
    /**
     * @return Result identifier
     * 
     */
    private String id;
    /**
     * @return Result type
     * Expected value is 'ErrorOutput'.
     * 
     */
    private String resultType;

    private MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse() {}
    /**
     * @return Migration error
     * 
     */
    public ReportableExceptionResponse error() {
        return this.error;
    }
    /**
     * @return Result identifier
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Result type
     * Expected value is 'ErrorOutput'.
     * 
     */
    public String resultType() {
        return this.resultType;
    }

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

    public static Builder builder(MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ReportableExceptionResponse error;
        private String id;
        private String resultType;
        public Builder() {}
        public Builder(MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.error = defaults.error;
    	      this.id = defaults.id;
    	      this.resultType = defaults.resultType;
        }

        @CustomType.Setter
        public Builder error(ReportableExceptionResponse error) {
            if (error == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse", "error");
            }
            this.error = error;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder resultType(String resultType) {
            if (resultType == null) {
              throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse", "resultType");
            }
            this.resultType = resultType;
            return this;
        }
        public MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse build() {
            final var _resultValue = new MigrateOracleAzureDbPostgreSqlSyncTaskOutputErrorResponse();
            _resultValue.error = error;
            _resultValue.id = id;
            _resultValue.resultType = resultType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy