io.github.cdklabs.cdk.cicd.wrapper.CodeStarConnectionConstruct Maven / Gradle / Ivy
Show all versions of cdk-cicd-wrapper Show documentation
package io.github.cdklabs.cdk.cicd.wrapper;
/**
* Constructs an AWS CodeStar connection for use in a CodePipeline.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-03T16:35:59.292Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.cicd.wrapper.$Module.class, fqn = "@cdklabs/cdk-cicd-wrapper.CodeStarConnectionConstruct")
public class CodeStarConnectionConstruct extends software.constructs.Construct {
protected CodeStarConnectionConstruct(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CodeStarConnectionConstruct(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* Constructs a new instance of the CodeStarConnectionConstruct class.
*
* @param scope
- The scope in which to define this construct.
This parameter is required.
* @param id - The unique identifier for this construct.
This parameter is required.
* @param props - The configuration properties for the construct.
This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public CodeStarConnectionConstruct(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.cicd.wrapper.CodeStarConfig props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* The Amazon Resource Name (ARN) of the CodeStar connection.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getCodeStarConnectionArn() {
return software.amazon.jsii.Kernel.get(this, "codeStarConnectionArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* The input source for the CodePipeline.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.pipelines.IFileSetProducer getPipelineInput() {
return software.amazon.jsii.Kernel.get(this, "pipelineInput", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.pipelines.IFileSetProducer.class));
}
/**
* A fluent builder for {@link io.github.cdklabs.cdk.cicd.wrapper.CodeStarConnectionConstruct}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - The scope in which to define this construct.
This parameter is required.
* @param id - The unique identifier for this construct.
This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.cdk.cicd.wrapper.CodeStarConfig.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.cdk.cicd.wrapper.CodeStarConfig.Builder();
}
/**
* The branch for the repository.
*
* @return {@code this}
* @param branch The branch for the repository. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder branch(final java.lang.String branch) {
this.props.branch(branch);
return this;
}
/**
* The name of the repository.
*
* @return {@code this}
* @param name The name of the repository. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder name(final java.lang.String name) {
this.props.name(name);
return this;
}
/**
* The type of the repository.
*
* @return {@code this}
* @param repositoryType The type of the repository. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder repositoryType(final java.lang.String repositoryType) {
this.props.repositoryType(repositoryType);
return this;
}
/**
* Enforce full clone for the repository.
*
* @return {@code this}
* @param codeBuildCloneOutput Enforce full clone for the repository. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder codeBuildCloneOutput(final java.lang.Boolean codeBuildCloneOutput) {
this.props.codeBuildCloneOutput(codeBuildCloneOutput);
return this;
}
/**
* The description of the repository (optional).
*
* @return {@code this}
* @param description The description of the repository (optional). This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder description(final java.lang.String description) {
this.props.description(description);
return this;
}
/**
* The Amazon Resource Name (ARN) of the CodeStar connection.
*
* @return {@code this}
* @param codeStarConnectionArn The Amazon Resource Name (ARN) of the CodeStar connection. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder codeStarConnectionArn(final java.lang.String codeStarConnectionArn) {
this.props.codeStarConnectionArn(codeStarConnectionArn);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.cicd.wrapper.CodeStarConnectionConstruct}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public io.github.cdklabs.cdk.cicd.wrapper.CodeStarConnectionConstruct build() {
return new io.github.cdklabs.cdk.cicd.wrapper.CodeStarConnectionConstruct(
this.scope,
this.id,
this.props.build()
);
}
}
}