software.amazon.awscdk.services.codebuild.ArtifactsConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild Show documentation
Show all versions of codebuild Show documentation
CDK Constructs for AWS CodeBuild
package software.amazon.awscdk.services.codebuild;
/**
* The type returned from {@link IArtifacts#bind}.
*/
@javax.annotation.Generated(value = "jsii-pacmak/0.19.0 (build 7c562bc)", date = "2019-10-15T12:35:09.819Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface ArtifactsConfig extends software.amazon.jsii.JsiiSerializable {
/**
* The low-level CloudFormation artifacts property.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty getArtifactsProperty();
/**
* @return a {@link Builder} of {@link ArtifactsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ArtifactsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder {
private software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty artifactsProperty;
/**
* Sets the value of ArtifactsProperty
* @param artifactsProperty The low-level CloudFormation artifacts property. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder artifactsProperty(software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty artifactsProperty) {
this.artifactsProperty = artifactsProperty;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ArtifactsConfig}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public ArtifactsConfig build() {
return new Jsii$Proxy(artifactsProperty);
}
}
/**
* An implementation for {@link ArtifactsConfig}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ArtifactsConfig {
private final software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty artifactsProperty;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.setObjRef(objRef);
this.artifactsProperty = this.jsiiGet("artifactsProperty", software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty.class);
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
private Jsii$Proxy(software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty artifactsProperty) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.artifactsProperty = java.util.Objects.requireNonNull(artifactsProperty, "artifactsProperty is required");
}
@Override
public software.amazon.awscdk.services.codebuild.CfnProject.ArtifactsProperty getArtifactsProperty() {
return this.artifactsProperty;
}
@Override
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("artifactsProperty", om.valueToTree(this.getArtifactsProperty()));
return obj;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ArtifactsConfig.Jsii$Proxy that = (ArtifactsConfig.Jsii$Proxy) o;
return this.artifactsProperty.equals(that.artifactsProperty);
}
@Override
public int hashCode() {
int result = this.artifactsProperty.hashCode();
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy