com.pulumi.azurenative.datamigration.outputs.MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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 MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse {
/**
* @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 MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse() {}
/**
* @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(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse 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(MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse 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("MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder resultType(String resultType) {
if (resultType == null) {
throw new MissingRequiredPropertyException("MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse", "resultType");
}
this.resultType = resultType;
return this;
}
public MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse build() {
final var _resultValue = new MigrateOracleAzureDbPostgreSqlSyncTaskOutputDatabaseErrorResponse();
_resultValue.errorMessage = errorMessage;
_resultValue.events = events;
_resultValue.id = id;
_resultValue.resultType = resultType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy