software.amazon.awscdk.ResolveContext 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;
/**
* Current resolution context for tokens.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.956Z")
public interface ResolveContext extends software.amazon.jsii.JsiiSerializable {
java.util.List getPrefix();
software.amazon.awscdk.IConstruct getScope();
/**
* @return a {@link Builder} of {@link ResolveContext}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ResolveContext}
*/
final class Builder {
private java.util.List _prefix;
private software.amazon.awscdk.IConstruct _scope;
/**
* Sets the value of Prefix
* @param value the value to be set
* @return {@code this}
*/
public Builder withPrefix(final java.util.List value) {
this._prefix = java.util.Objects.requireNonNull(value, "prefix is required");
return this;
}
/**
* Sets the value of Scope
* @param value the value to be set
* @return {@code this}
*/
public Builder withScope(final software.amazon.awscdk.IConstruct value) {
this._scope = java.util.Objects.requireNonNull(value, "scope is required");
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ResolveContext}
* @throws NullPointerException if any required attribute was not provided
*/
public ResolveContext build() {
return new ResolveContext() {
private final java.util.List $prefix = java.util.Objects.requireNonNull(_prefix, "prefix is required");
private final software.amazon.awscdk.IConstruct $scope = java.util.Objects.requireNonNull(_scope, "scope is required");
@Override
public java.util.List getPrefix() {
return this.$prefix;
}
@Override
public software.amazon.awscdk.IConstruct getScope() {
return this.$scope;
}
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("prefix", om.valueToTree(this.getPrefix()));
obj.set("scope", om.valueToTree(this.getScope()));
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.ResolveContext {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
@Override
public java.util.List getPrefix() {
return this.jsiiGet("prefix", java.util.List.class);
}
@Override
public software.amazon.awscdk.IConstruct getScope() {
return this.jsiiGet("scope", software.amazon.awscdk.IConstruct.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy