
com.pulumi.azurenative.datamigration.outputs.ReportableExceptionResponse Maven / Gradle / Ivy
// *** 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.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ReportableExceptionResponse {
/**
* @return Actionable steps for this exception
*
*/
private @Nullable String actionableMessage;
/**
* @return The path to the file where exception occurred
*
*/
private @Nullable String filePath;
/**
* @return Coded numerical value that is assigned to a specific exception
*
*/
private @Nullable Integer hResult;
/**
* @return The line number where exception occurred
*
*/
private @Nullable String lineNumber;
/**
* @return Error message
*
*/
private @Nullable String message;
/**
* @return Stack trace
*
*/
private @Nullable String stackTrace;
private ReportableExceptionResponse() {}
/**
* @return Actionable steps for this exception
*
*/
public Optional actionableMessage() {
return Optional.ofNullable(this.actionableMessage);
}
/**
* @return The path to the file where exception occurred
*
*/
public Optional filePath() {
return Optional.ofNullable(this.filePath);
}
/**
* @return Coded numerical value that is assigned to a specific exception
*
*/
public Optional hResult() {
return Optional.ofNullable(this.hResult);
}
/**
* @return The line number where exception occurred
*
*/
public Optional lineNumber() {
return Optional.ofNullable(this.lineNumber);
}
/**
* @return Error message
*
*/
public Optional message() {
return Optional.ofNullable(this.message);
}
/**
* @return Stack trace
*
*/
public Optional stackTrace() {
return Optional.ofNullable(this.stackTrace);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ReportableExceptionResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String actionableMessage;
private @Nullable String filePath;
private @Nullable Integer hResult;
private @Nullable String lineNumber;
private @Nullable String message;
private @Nullable String stackTrace;
public Builder() {}
public Builder(ReportableExceptionResponse defaults) {
Objects.requireNonNull(defaults);
this.actionableMessage = defaults.actionableMessage;
this.filePath = defaults.filePath;
this.hResult = defaults.hResult;
this.lineNumber = defaults.lineNumber;
this.message = defaults.message;
this.stackTrace = defaults.stackTrace;
}
@CustomType.Setter
public Builder actionableMessage(@Nullable String actionableMessage) {
this.actionableMessage = actionableMessage;
return this;
}
@CustomType.Setter
public Builder filePath(@Nullable String filePath) {
this.filePath = filePath;
return this;
}
@CustomType.Setter
public Builder hResult(@Nullable Integer hResult) {
this.hResult = hResult;
return this;
}
@CustomType.Setter
public Builder lineNumber(@Nullable String lineNumber) {
this.lineNumber = lineNumber;
return this;
}
@CustomType.Setter
public Builder message(@Nullable String message) {
this.message = message;
return this;
}
@CustomType.Setter
public Builder stackTrace(@Nullable String stackTrace) {
this.stackTrace = stackTrace;
return this;
}
public ReportableExceptionResponse build() {
final var _resultValue = new ReportableExceptionResponse();
_resultValue.actionableMessage = actionableMessage;
_resultValue.filePath = filePath;
_resultValue.hResult = hResult;
_resultValue.lineNumber = lineNumber;
_resultValue.message = message;
_resultValue.stackTrace = stackTrace;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy