All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cdk8s.jenkins.SeedJob Maven / Gradle / Ivy

The newest version!
package org.cdk8s.jenkins;

/**
 * Jenkins seed job.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-16T12:06:17.285Z")
@software.amazon.jsii.Jsii(module = org.cdk8s.jenkins.$Module.class, fqn = "cdk8s-jenkins.SeedJob")
@software.amazon.jsii.Jsii.Proxy(SeedJob.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface SeedJob extends software.amazon.jsii.JsiiSerializable {

    /**
     * The description of the seed job.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getDescription();

    /**
     * The unique name for the seed job.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getId();

    /**
     * The repository branch where seed job definitions are present.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getRepositoryBranch();

    /**
     * The repository access URL.
     * 

* Supports SSH and HTTPS. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getRepositoryUrl(); /** * The repository path where seed job definitions are present. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getTargets(); /** * @return a {@link Builder} of {@link SeedJob} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link SeedJob} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String description; java.lang.String id; java.lang.String repositoryBranch; java.lang.String repositoryUrl; java.lang.String targets; /** * Sets the value of {@link SeedJob#getDescription} * @param description The description of the seed job. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link SeedJob#getId} * @param id The unique name for the seed job. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder id(java.lang.String id) { this.id = id; return this; } /** * Sets the value of {@link SeedJob#getRepositoryBranch} * @param repositoryBranch The repository branch where seed job definitions are present. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder repositoryBranch(java.lang.String repositoryBranch) { this.repositoryBranch = repositoryBranch; return this; } /** * Sets the value of {@link SeedJob#getRepositoryUrl} * @param repositoryUrl The repository access URL. This parameter is required. * Supports SSH and HTTPS. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder repositoryUrl(java.lang.String repositoryUrl) { this.repositoryUrl = repositoryUrl; return this; } /** * Sets the value of {@link SeedJob#getTargets} * @param targets The repository path where seed job definitions are present. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder targets(java.lang.String targets) { this.targets = targets; return this; } /** * Builds the configured instance. * @return a new instance of {@link SeedJob} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public SeedJob build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SeedJob} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SeedJob { private final java.lang.String description; private final java.lang.String id; private final java.lang.String repositoryBranch; private final java.lang.String repositoryUrl; private final java.lang.String targets; /** * 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(objRef); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.id = software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.repositoryBranch = software.amazon.jsii.Kernel.get(this, "repositoryBranch", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.repositoryUrl = software.amazon.jsii.Kernel.get(this, "repositoryUrl", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.targets = software.amazon.jsii.Kernel.get(this, "targets", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.description = java.util.Objects.requireNonNull(builder.description, "description is required"); this.id = java.util.Objects.requireNonNull(builder.id, "id is required"); this.repositoryBranch = java.util.Objects.requireNonNull(builder.repositoryBranch, "repositoryBranch is required"); this.repositoryUrl = java.util.Objects.requireNonNull(builder.repositoryUrl, "repositoryUrl is required"); this.targets = java.util.Objects.requireNonNull(builder.targets, "targets is required"); } @Override public final java.lang.String getDescription() { return this.description; } @Override public final java.lang.String getId() { return this.id; } @Override public final java.lang.String getRepositoryBranch() { return this.repositoryBranch; } @Override public final java.lang.String getRepositoryUrl() { return this.repositoryUrl; } @Override public final java.lang.String getTargets() { return this.targets; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); data.set("description", om.valueToTree(this.getDescription())); data.set("id", om.valueToTree(this.getId())); data.set("repositoryBranch", om.valueToTree(this.getRepositoryBranch())); data.set("repositoryUrl", om.valueToTree(this.getRepositoryUrl())); data.set("targets", om.valueToTree(this.getTargets())); final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("cdk8s-jenkins.SeedJob")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SeedJob.Jsii$Proxy that = (SeedJob.Jsii$Proxy) o; if (!description.equals(that.description)) return false; if (!id.equals(that.id)) return false; if (!repositoryBranch.equals(that.repositoryBranch)) return false; if (!repositoryUrl.equals(that.repositoryUrl)) return false; return this.targets.equals(that.targets); } @Override public final int hashCode() { int result = this.description.hashCode(); result = 31 * result + (this.id.hashCode()); result = 31 * result + (this.repositoryBranch.hashCode()); result = 31 * result + (this.repositoryUrl.hashCode()); result = 31 * result + (this.targets.hashCode()); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy