software.amazon.awscdk.CfnResourceProps 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.941Z")
public interface CfnResourceProps extends software.amazon.jsii.JsiiSerializable {
/**
* CloudFormation resource type.
*/
java.lang.String getType();
/**
* CloudFormation properties.
*/
java.lang.Object getProperties();
/**
* @return a {@link Builder} of {@link CfnResourceProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnResourceProps}
*/
final class Builder {
private java.lang.String _type;
@javax.annotation.Nullable
private java.lang.Object _properties;
/**
* Sets the value of Type
* @param value CloudFormation resource type.
* @return {@code this}
*/
public Builder withType(final java.lang.String value) {
this._type = java.util.Objects.requireNonNull(value, "type is required");
return this;
}
/**
* Sets the value of Properties
* @param value CloudFormation properties.
* @return {@code this}
*/
public Builder withProperties(@javax.annotation.Nullable final java.lang.Object value) {
this._properties = value;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnResourceProps}
* @throws NullPointerException if any required attribute was not provided
*/
public CfnResourceProps build() {
return new CfnResourceProps() {
private final java.lang.String $type = java.util.Objects.requireNonNull(_type, "type is required");
@javax.annotation.Nullable
private final java.lang.Object $properties = _properties;
@Override
public java.lang.String getType() {
return this.$type;
}
@Override
public java.lang.Object getProperties() {
return this.$properties;
}
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("type", om.valueToTree(this.getType()));
obj.set("properties", om.valueToTree(this.getProperties()));
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.CfnResourceProps {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* CloudFormation resource type.
*/
@Override
public java.lang.String getType() {
return this.jsiiGet("type", java.lang.String.class);
}
/**
* CloudFormation properties.
*/
@Override
@javax.annotation.Nullable
public java.lang.Object getProperties() {
return this.jsiiGet("properties", java.lang.Object.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy