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

software.amazon.awscdk.ValidationResults Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
package software.amazon.awscdk;

/**
 * A collection of validation results.
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.963Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.$Module.class, fqn = "@aws-cdk/cdk.ValidationResults")
public class ValidationResults extends software.amazon.jsii.JsiiObject {
    protected ValidationResults(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
        super(mode);
    }
    public ValidationResults(@javax.annotation.Nullable final java.util.List results) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { results });
    }
    public ValidationResults() {
        super(software.amazon.jsii.JsiiObject.InitializationMode.Jsii);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this);
    }

    public void collect(final software.amazon.awscdk.ValidationResult result) {
        this.jsiiCall("collect", Void.class, new Object[] { java.util.Objects.requireNonNull(result, "result is required") });
    }

    public java.lang.String errorTreeList() {
        return this.jsiiCall("errorTreeList", java.lang.String.class);
    }

    /**
     * Wrap up all validation results into a single tree node.
     * 
     * If there are failures in the collection, add a message, otherwise
     * return a success.
     */
    public software.amazon.awscdk.ValidationResult wrap(final java.lang.String message) {
        return this.jsiiCall("wrap", software.amazon.awscdk.ValidationResult.class, new Object[] { java.util.Objects.requireNonNull(message, "message is required") });
    }

    public java.lang.Boolean getIsSuccess() {
        return this.jsiiGet("isSuccess", java.lang.Boolean.class);
    }

    public java.util.List getResults() {
        return this.jsiiGet("results", java.util.List.class);
    }

    public void setResults(final java.util.List value) {
        this.jsiiSet("results", java.util.Objects.requireNonNull(value, "results is required"));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy