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

com.pulumi.azurenative.datamigration.outputs.MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse 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.SyncMigrationDatabaseErrorEventResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse {
    /**
     * @return Error message
     * 
     */
    private @Nullable String errorMessage;
    /**
     * @return List of error events.
     * 
     */
    private @Nullable List events;
    /**
     * @return Result identifier
     * 
     */
    private String id;
    /**
     * @return Result type
     * Expected value is 'DatabaseLevelErrorOutput'.
     * 
     */
    private String resultType;

    private MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse() {}
    /**
     * @return Error message
     * 
     */
    public Optional errorMessage() {
        return Optional.ofNullable(this.errorMessage);
    }
    /**
     * @return List of error events.
     * 
     */
    public List events() {
        return this.events == null ? List.of() : this.events;
    }
    /**
     * @return Result identifier
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Result type
     * Expected value is 'DatabaseLevelErrorOutput'.
     * 
     */
    public String resultType() {
        return this.resultType;
    }

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

    public static Builder builder(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String errorMessage;
        private @Nullable List events;
        private String id;
        private String resultType;
        public Builder() {}
        public Builder(MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.errorMessage = defaults.errorMessage;
    	      this.events = defaults.events;
    	      this.id = defaults.id;
    	      this.resultType = defaults.resultType;
        }

        @CustomType.Setter
        public Builder errorMessage(@Nullable String errorMessage) {

            this.errorMessage = errorMessage;
            return this;
        }
        @CustomType.Setter
        public Builder events(@Nullable List events) {

            this.events = events;
            return this;
        }
        public Builder events(SyncMigrationDatabaseErrorEventResponse... events) {
            return events(List.of(events));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder resultType(String resultType) {
            if (resultType == null) {
              throw new MissingRequiredPropertyException("MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse", "resultType");
            }
            this.resultType = resultType;
            return this;
        }
        public MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse build() {
            final var _resultValue = new MigrateMySqlAzureDbForMySqlSyncTaskOutputDatabaseErrorResponse();
            _resultValue.errorMessage = errorMessage;
            _resultValue.events = events;
            _resultValue.id = id;
            _resultValue.resultType = resultType;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy