software.amazon.awscdk.Dependency 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 single dependency A single dependency.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.10.5 (build 46bc9b0)", date = "2019-05-06T20:49:40.945Z")
public interface Dependency extends software.amazon.jsii.JsiiSerializable {
/**
* Source the dependency Source the dependency.
*/
software.amazon.awscdk.IConstruct getSource();
/**
* Target of the dependency Target of the dependency.
*/
software.amazon.awscdk.IConstruct getTarget();
/**
* @return a {@link Builder} of {@link Dependency}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link Dependency}
*/
final class Builder {
private software.amazon.awscdk.IConstruct _source;
private software.amazon.awscdk.IConstruct _target;
/**
* Sets the value of Source
* @param value Source the dependency Source the dependency.
* @return {@code this}
*/
public Builder withSource(final software.amazon.awscdk.IConstruct value) {
this._source = java.util.Objects.requireNonNull(value, "source is required");
return this;
}
/**
* Sets the value of Target
* @param value Target of the dependency Target of the dependency.
* @return {@code this}
*/
public Builder withTarget(final software.amazon.awscdk.IConstruct value) {
this._target = java.util.Objects.requireNonNull(value, "target is required");
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link Dependency}
* @throws NullPointerException if any required attribute was not provided
*/
public Dependency build() {
return new Dependency() {
private final software.amazon.awscdk.IConstruct $source = java.util.Objects.requireNonNull(_source, "source is required");
private final software.amazon.awscdk.IConstruct $target = java.util.Objects.requireNonNull(_target, "target is required");
@Override
public software.amazon.awscdk.IConstruct getSource() {
return this.$source;
}
@Override
public software.amazon.awscdk.IConstruct getTarget() {
return this.$target;
}
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("source", om.valueToTree(this.getSource()));
obj.set("target", om.valueToTree(this.getTarget()));
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.Dependency {
protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
super(mode);
}
/**
* Source the dependency Source the dependency.
*/
@Override
public software.amazon.awscdk.IConstruct getSource() {
return this.jsiiGet("source", software.amazon.awscdk.IConstruct.class);
}
/**
* Target of the dependency Target of the dependency.
*/
@Override
public software.amazon.awscdk.IConstruct getTarget() {
return this.jsiiGet("target", software.amazon.awscdk.IConstruct.class);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy