com.pulumi.azurenative.securityinsights.outputs.ValidationErrorResponse 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.securityinsights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ValidationErrorResponse {
/**
* @return A list of descriptions of the error.
*
*/
private List errorMessages;
/**
* @return The number of the record that has the error.
*
*/
private @Nullable Integer recordIndex;
private ValidationErrorResponse() {}
/**
* @return A list of descriptions of the error.
*
*/
public List errorMessages() {
return this.errorMessages;
}
/**
* @return The number of the record that has the error.
*
*/
public Optional recordIndex() {
return Optional.ofNullable(this.recordIndex);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ValidationErrorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List errorMessages;
private @Nullable Integer recordIndex;
public Builder() {}
public Builder(ValidationErrorResponse defaults) {
Objects.requireNonNull(defaults);
this.errorMessages = defaults.errorMessages;
this.recordIndex = defaults.recordIndex;
}
@CustomType.Setter
public Builder errorMessages(List errorMessages) {
if (errorMessages == null) {
throw new MissingRequiredPropertyException("ValidationErrorResponse", "errorMessages");
}
this.errorMessages = errorMessages;
return this;
}
public Builder errorMessages(String... errorMessages) {
return errorMessages(List.of(errorMessages));
}
@CustomType.Setter
public Builder recordIndex(@Nullable Integer recordIndex) {
this.recordIndex = recordIndex;
return this;
}
public ValidationErrorResponse build() {
final var _resultValue = new ValidationErrorResponse();
_resultValue.errorMessages = errorMessages;
_resultValue.recordIndex = recordIndex;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy