|
| 1 | +package software.amazon.jsii.tests.calculator; |
| 2 | + |
| 3 | +@javax.annotation.Generated(value = "jsii-pacmak") |
| 4 | +public interface MutableObjectLiteral extends software.amazon.jsii.JsiiSerializable { |
| 5 | + java.lang.String getValue(); |
| 6 | + void setValue(final java.lang.String value); |
| 7 | + |
| 8 | + /** |
| 9 | + * @return a {@link Builder} of {@link MutableObjectLiteral} |
| 10 | + */ |
| 11 | + static Builder builder() { |
| 12 | + return new Builder(); |
| 13 | + } |
| 14 | + |
| 15 | + /** |
| 16 | + * A builder for {@link MutableObjectLiteral} |
| 17 | + */ |
| 18 | + final class Builder { |
| 19 | + private java.lang.String _value; |
| 20 | + |
| 21 | + /** |
| 22 | + * Sets the value of Value |
| 23 | + * @param value the value to be set |
| 24 | + * @return {@code this} |
| 25 | + */ |
| 26 | + public Builder withValue(final java.lang.String value) { |
| 27 | + this._value = java.util.Objects.requireNonNull(value, "value is required"); |
| 28 | + return this; |
| 29 | + } |
| 30 | + |
| 31 | + /** |
| 32 | + * Builds the configured instance. |
| 33 | + * @return a new instance of {@link MutableObjectLiteral} |
| 34 | + * @throws NullPointerException if any required attribute was not provided |
| 35 | + */ |
| 36 | + public MutableObjectLiteral build() { |
| 37 | + return new MutableObjectLiteral() { |
| 38 | + private java.lang.String $value = java.util.Objects.requireNonNull(_value, "value is required"); |
| 39 | + |
| 40 | + @Override |
| 41 | + public java.lang.String getValue() { |
| 42 | + return this.$value; |
| 43 | + } |
| 44 | + |
| 45 | + @Override |
| 46 | + public void setValue(final java.lang.String value) { |
| 47 | + this.$value = java.util.Objects.requireNonNull(value, "value is required"); |
| 48 | + } |
| 49 | + |
| 50 | + }; |
| 51 | + } |
| 52 | + } |
| 53 | + |
| 54 | + /** |
| 55 | + * A proxy class which represents a concrete javascript instance of this type. |
| 56 | + */ |
| 57 | + final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.jsii.tests.calculator.MutableObjectLiteral { |
| 58 | + protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) { |
| 59 | + super(mode); |
| 60 | + } |
| 61 | + |
| 62 | + @Override |
| 63 | + public java.lang.String getValue() { |
| 64 | + return this.jsiiGet("value", java.lang.String.class); |
| 65 | + } |
| 66 | + |
| 67 | + @Override |
| 68 | + public void setValue(final java.lang.String value) { |
| 69 | + this.jsiiSet("value", java.util.Objects.requireNonNull(value, "value is required")); |
| 70 | + } |
| 71 | + } |
| 72 | +} |
0 commit comments