Class ArtifactSubscription
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<ArtifactSubscriptionProperties>
-
- com.atlassian.bamboo.specs.api.builders.plan.artifact.ArtifactSubscription
-
public class ArtifactSubscription extends EntityPropertiesBuilder<ArtifactSubscriptionProperties>
Represents an artifact subscription.Artifact subscriptions define jobs that use an artifact.
-
-
Constructor Summary
Constructors Constructor Description ArtifactSubscription()Specify an artifact subscription.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactSubscriptionartifact(@NotNull java.lang.String artifactName)Sets name of the artifact to download.protected ArtifactSubscriptionPropertiesbuild()ArtifactSubscriptiondestination(@NotNull java.lang.String destination)Sets artifact download destination.
-
-
-
Method Detail
-
artifact
public ArtifactSubscription artifact(@NotNull @NotNull java.lang.String artifactName)
Sets name of the artifact to download. Artifact must be defined in one of the preceding stages.
-
destination
public ArtifactSubscription destination(@NotNull @NotNull java.lang.String destination) throws PropertiesValidationException
Sets artifact download destination. Empty by default.- Parameters:
destination- to download artifact to. Can be both relative and absolute path.- Throws:
PropertiesValidationException
-
build
protected ArtifactSubscriptionProperties build()
- Specified by:
buildin classEntityPropertiesBuilder<ArtifactSubscriptionProperties>
-
-