software.amazon.awscdk.RuleAssertion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk Show documentation
Show all versions of cdk Show documentation
AWS Cloud Development Kit Core Library
package software.amazon.awscdk;
/**
* A rule assertion.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.956Z")
public interface RuleAssertion extends software.amazon.jsii.JsiiSerializable {
/**
* The assertion.
*/
software.amazon.awscdk.ICfnConditionExpression getAssert();
/**
* The assertion description.
*/
java.lang.String getAssertDescription();
/**
* @return a {@link Builder} of {@link RuleAssertion}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link RuleAssertion}
*/
final class Builder {
private software.amazon.awscdk.ICfnConditionExpression _assert;
private java.lang.String _assertDescription;
/**
* Sets the value of Assert
* @param value The assertion.
* @return {@code this}
*/
public Builder withAssert(final software.amazon.awscdk.ICfnConditionExpression value) {
this._assert = java.util.Objects.requireNonNull(value, "assert is required");
return this;
}
/**
* Sets the value of AssertDescription
* @param value The assertion description.
* @return {@code this}
*/
public Builder withAssertDescription(final java.lang.String value) {
this._assertDescription = java.util.Objects.requireNonNull(value, "assertDescription is required");
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link RuleAssertion}
* @throws NullPointerException if any required attribute was not provided
*/
public RuleAssertion build() {
return new RuleAssertion() {
private final software.amazon.awscdk.ICfnConditionExpression $assert = java.util.Objects.requireNonNull(_assert, "assert is required");
private final java.lang.String $assertDescription = java.util.Objects.requireNonNull(_assertDescription, "assertDescription is required");
@Override
public software.amazon.awscdk.ICfnConditionExpression getAssert() {
return this.$assert;
}
@Override
public java.lang.String getAssertDescription() {
return this.$assertDescription;
}
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("assert", om.valueToTree(this.getAssert()));
obj.set("assertDescription", om.valueToTree(this.getAssertDescription()));
return obj;
}
};
}
}
/**
* A proxy class which represents a concrete javascript instance of this type.
*/
final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.RuleAssertion {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* The assertion.
*/
@Override
public software.amazon.awscdk.ICfnConditionExpression getAssert() {
return this.jsiiGet("assert", software.amazon.awscdk.ICfnConditionExpression.class);
}
/**
* The assertion description.
*/
@Override
public java.lang.String getAssertDescription() {
return this.jsiiGet("assertDescription", java.lang.String.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy