io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPlugin Maven / Gradle / Ivy
Show all versions of cdk-cicd-wrapper Show documentation
package io.github.cdklabs.cdk.cicd.wrapper;
/**
* Plugin to enable key rotation for KMS keys.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-03T16:35:59.275Z")
@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.CodeArtifactPlugin")
public class CodeArtifactPlugin extends io.github.cdklabs.cdk.cicd.wrapper.PluginBase {
protected CodeArtifactPlugin(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CodeArtifactPlugin(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param options This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public CodeArtifactPlugin(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPluginProps options) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(options, "options is required") });
}
/**
* The method called when the Pipeline configuration finalized.
*
* @param context This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public void create(final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.cicd.wrapper.ResourceContext context) {
software.amazon.jsii.Kernel.call(this, "create", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(context, "context is required") });
}
/**
* The name of the plugin.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getName() {
return software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* The version of the plugin.
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getVersion() {
return software.amazon.jsii.Kernel.get(this, "version", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* A fluent builder for {@link io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPlugin}.
*/
@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}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create() {
return new Builder();
}
private final io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPluginProps.Builder options;
private Builder() {
this.options = new io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPluginProps.Builder();
}
/**
* @return {@code this}
* @param domain This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder domain(final java.lang.String domain) {
this.options.domain(domain);
return this;
}
/**
* @return {@code this}
* @param repositoryName This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder repositoryName(final java.lang.String repositoryName) {
this.options.repositoryName(repositoryName);
return this;
}
/**
* @return {@code this}
* @param account This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder account(final java.lang.String account) {
this.options.account(account);
return this;
}
/**
* @return {@code this}
* @param npmScope This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder npmScope(final java.lang.String npmScope) {
this.options.npmScope(npmScope);
return this;
}
/**
* @return {@code this}
* @param repositoryTypes This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder repositoryTypes(final java.util.List repositoryTypes) {
this.options.repositoryTypes(repositoryTypes);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPlugin}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPlugin build() {
return new io.github.cdklabs.cdk.cicd.wrapper.CodeArtifactPlugin(
this.options.build()
);
}
}
}