software.amazon.awscdk.CfnMappingProps 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;
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.937Z")
public interface CfnMappingProps extends software.amazon.jsii.JsiiSerializable {
java.util.Map> getMapping();
/**
* @return a {@link Builder} of {@link CfnMappingProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnMappingProps}
*/
final class Builder {
@javax.annotation.Nullable
private java.util.Map> _mapping;
/**
* Sets the value of Mapping
* @param value the value to be set
* @return {@code this}
*/
public Builder withMapping(@javax.annotation.Nullable final java.util.Map> value) {
this._mapping = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnMappingProps}
* @throws NullPointerException if any required attribute was not provided
*/
public CfnMappingProps build() {
return new CfnMappingProps() {
@javax.annotation.Nullable
private final java.util.Map> $mapping = _mapping;
@Override
public java.util.Map> getMapping() {
return this.$mapping;
}
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("mapping", om.valueToTree(this.getMapping()));
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.CfnMappingProps {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
@Override
@javax.annotation.Nullable
public java.util.Map> getMapping() {
return this.jsiiGet("mapping", java.util.Map.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy