Class ScriptTaskProperties

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

    @Immutable
    public final class ScriptTaskProperties
    extends com.atlassian.bamboo.specs.api.model.task.TaskProperties
    • Constructor Detail

      • ScriptTaskProperties

        public ScriptTaskProperties​(java.lang.String description,
                                    boolean enabled,
                                    @Nullable
                                    @Nullable ScriptTaskProperties.Interpreter interpreter,
                                    @Nullable
                                    @Nullable ScriptTaskProperties.Location location,
                                    @Nullable
                                    @Nullable java.lang.String body,
                                    @Nullable
                                    @Nullable java.lang.String path,
                                    @Nullable
                                    @Nullable java.lang.String argument,
                                    @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

      • getAtlassianPlugin

        @NotNull
        public @NotNull com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties getAtlassianPlugin()
        Specified by:
        getAtlassianPlugin in class com.atlassian.bamboo.specs.api.model.task.TaskProperties
      • getBody

        @Nullable
        public @Nullable java.lang.String getBody()
      • getPath

        @Nullable
        public @Nullable java.lang.String getPath()
      • getArgument

        @Nullable
        public @Nullable java.lang.String getArgument()
      • getEnvironmentVariables

        @Nullable
        public @Nullable java.lang.String getEnvironmentVariables()
      • getWorkingSubdirectory

        @Nullable
        public @Nullable java.lang.String getWorkingSubdirectory()
      • validate

        public void validate()
                      throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
        Specified by:
        validate in interface com.atlassian.bamboo.specs.api.model.EntityProperties
        Overrides:
        validate in class com.atlassian.bamboo.specs.api.model.task.TaskProperties
        Throws:
        com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class com.atlassian.bamboo.specs.api.model.task.TaskProperties
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.atlassian.bamboo.specs.api.model.task.TaskProperties