Class DockerRunContainerTaskProperties

  • All Implemented Interfaces:
    com.atlassian.bamboo.specs.api.model.EntityProperties

    @Immutable
    public final class DockerRunContainerTaskProperties
    extends AbstractDockerTaskProperties
    • Field Detail

      • VALIDATION_CONTEXT

        public static final com.atlassian.bamboo.specs.api.validators.common.ValidationContext VALIDATION_CONTEXT
      • DEFAULT_SERVICE_TIMEOUT

        public static final long DEFAULT_SERVICE_TIMEOUT
        See Also:
        Constant Field Values
    • Constructor Detail

      • DockerRunContainerTaskProperties

        protected DockerRunContainerTaskProperties()
      • DockerRunContainerTaskProperties

        public DockerRunContainerTaskProperties​(@Nullable
                                                @Nullable java.lang.String description,
                                                boolean enabled,
                                                @NotNull
                                                @NotNull java.lang.String imageName,
                                                boolean detachedContainer,
                                                @Nullable
                                                @Nullable java.lang.String containerName,
                                                @NotNull
                                                @NotNull java.util.Map<java.lang.Integer,​java.lang.Integer> portMappings,
                                                boolean waitToStart,
                                                @Nullable
                                                @Nullable java.lang.String serviceURLPattern,
                                                long serviceTimeout,
                                                boolean linkToDetachedContainers,
                                                @Nullable
                                                @Nullable java.lang.String containerEnvironmentVariables,
                                                @Nullable
                                                @Nullable java.lang.String containerCommand,
                                                @Nullable
                                                @Nullable java.lang.String containerWorkingDirectory,
                                                @Nullable
                                                @Nullable java.lang.String additionalArguments,
                                                @NotNull
                                                @NotNull java.util.Map<java.lang.String,​java.lang.String> volumeMappings,
                                                @Nullable
                                                @Nullable java.lang.String environmentVariables,
                                                @Nullable
                                                @Nullable java.lang.String workingSubdirectory,
                                                @NotNull
                                                @NotNull java.util.List<com.atlassian.bamboo.specs.api.model.plan.requirement.RequirementProperties> requirements,
                                                @NotNull
                                                @NotNull java.util.List<? extends com.atlassian.bamboo.specs.api.model.plan.condition.ConditionProperties> conditions)
                                         throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
        Throws:
        com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
    • Method Detail

      • getImageName

        @NotNull
        public @NotNull java.lang.String getImageName()
      • isDetachedContainer

        public boolean isDetachedContainer()
      • getContainerName

        @Nullable
        public @Nullable java.lang.String getContainerName()
      • getPortMappings

        public java.util.Map<java.lang.Integer,​java.lang.Integer> getPortMappings()
      • isWaitToStart

        public boolean isWaitToStart()
      • getServiceURLPattern

        public java.lang.String getServiceURLPattern()
      • getServiceTimeout

        public long getServiceTimeout()
      • isLinkToDetachedContainers

        public boolean isLinkToDetachedContainers()
      • getContainerEnvironmentVariables

        @Nullable
        public @Nullable java.lang.String getContainerEnvironmentVariables()
      • getContainerCommand

        @Nullable
        public @Nullable java.lang.String getContainerCommand()
      • getContainerWorkingDirectory

        @Nullable
        public @Nullable java.lang.String getContainerWorkingDirectory()
      • getAdditionalArguments

        @Nullable
        public @Nullable java.lang.String getAdditionalArguments()
      • getVolumeMappings

        @NotNull
        public @NotNull java.util.Map<java.lang.String,​java.lang.String> getVolumeMappings()
      • validate

        public void validate()
        Specified by:
        validate in interface com.atlassian.bamboo.specs.api.model.EntityProperties
        Overrides:
        validate in class com.atlassian.bamboo.specs.api.model.task.TaskProperties