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

com.pulumi.azurenative.datamigration.outputs.ValidationErrorResponse 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ValidationErrorResponse {
    /**
     * @return Severity of the error
     * 
     */
    private @Nullable String severity;
    /**
     * @return Error Text
     * 
     */
    private @Nullable String text;

    private ValidationErrorResponse() {}
    /**
     * @return Severity of the error
     * 
     */
    public Optional severity() {
        return Optional.ofNullable(this.severity);
    }
    /**
     * @return Error Text
     * 
     */
    public Optional text() {
        return Optional.ofNullable(this.text);
    }

    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 @Nullable String severity;
        private @Nullable String text;
        public Builder() {}
        public Builder(ValidationErrorResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.severity = defaults.severity;
    	      this.text = defaults.text;
        }

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

            this.severity = severity;
            return this;
        }
        @CustomType.Setter
        public Builder text(@Nullable String text) {

            this.text = text;
            return this;
        }
        public ValidationErrorResponse build() {
            final var _resultValue = new ValidationErrorResponse();
            _resultValue.severity = severity;
            _resultValue.text = text;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy