Class CombinedExpiryConfig

java.lang.Object
com.atlassian.bamboo.build.expiry.CombinedExpiryConfig

public class CombinedExpiryConfig extends Object
A helper POJO to hold fields for configuring build and deployment expiry combined.
  • Constructor Details

    • CombinedExpiryConfig

      public CombinedExpiryConfig()
    • CombinedExpiryConfig

      public CombinedExpiryConfig(@Nullable @Nullable BuildExpiryConfig buildExpiryConfig)
    • CombinedExpiryConfig

      public CombinedExpiryConfig(@Nullable @Nullable DeploymentExpiryConfig deploymentExpiryConfig)
    • CombinedExpiryConfig

      public CombinedExpiryConfig(@Nullable @Nullable BuildExpiryConfig buildExpiryConfig, @Nullable @Nullable DeploymentExpiryConfig deploymentExpiryConfig)
  • Method Details

    • getSelectedExpiryTypesLabelKeys

      @NotNull public @NotNull List<String> getSelectedExpiryTypesLabelKeys(boolean deploymentExpiryEnabled)
    • toBuildExpiryConfig

      @NotNull public @NotNull BuildExpiryConfig toBuildExpiryConfig()
    • toDeploymentExpiryConfig

      @NotNull public @NotNull DeploymentExpiryConfig toDeploymentExpiryConfig()
    • getExpiryTypeLabelKey

      @NotNull public static @NotNull String getExpiryTypeLabelKey(@NotNull @NotNull BuildExpiryType buildExpiryType, boolean withDeployments)
    • isEnabled

      public boolean isEnabled()
    • getCronExpression

      public String getCronExpression()
    • setCronExpression

      public void setCronExpression(String cronExpression)
    • isExpiryTypeNothing

      public boolean isExpiryTypeNothing()
    • setExpiryTypeNothing

      public void setExpiryTypeNothing(boolean expiryTypeNothing)
    • isExpiryTypeResult

      public boolean isExpiryTypeResult()
    • setExpiryTypeResult

      public void setExpiryTypeResult(boolean expiryTypeResult)
    • isExpiryTypeArtifact

      public boolean isExpiryTypeArtifact()
    • setExpiryTypeArtifact

      public void setExpiryTypeArtifact(boolean expiryTypeArtifact)
    • isExpiryTypeBuildLog

      public boolean isExpiryTypeBuildLog()
    • setExpiryTypeBuildLog

      public void setExpiryTypeBuildLog(boolean expiryTypeBuildLog)
    • getPeriod

      public String getPeriod()
    • setPeriod

      public void setPeriod(String period)
    • getDuration

      public int getDuration()
    • setDuration

      public void setDuration(int duration)
    • getBuildsToKeep

      public int getBuildsToKeep()
    • setBuildsToKeep

      public void setBuildsToKeep(int buildsToKeep)
    • getDeploymentsToKeep

      public int getDeploymentsToKeep()
    • setDeploymentsToKeep

      public void setDeploymentsToKeep(int deploymentsToKeep)
    • getLabelsToKeep

      public String getLabelsToKeep()
    • setLabelsToKeep

      public void setLabelsToKeep(String labelsToKeep)
    • getMaxIgnoredLogSize

      public long getMaxIgnoredLogSize()
    • setMaxIgnoredLogSize

      public void setMaxIgnoredLogSize(long maxIgnoredLogSize)
    • getMaximumBuildsToKeep

      public int getMaximumBuildsToKeep()
    • setMaximumBuildsToKeep

      public void setMaximumBuildsToKeep(int maximumBuildsToKeep)
    • getAnyDeploymentsToKeep

      public int getAnyDeploymentsToKeep()
    • setAnyDeploymentsToKeep

      public void setAnyDeploymentsToKeep(int anyDeploymentsToKeep)