Class CommandTaskProperties

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

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

      Constructors 
      Constructor Description
      CommandTaskProperties​(java.lang.String description, boolean enabled, @NotNull java.lang.String executable, @Nullable java.lang.String argument, @Nullable java.lang.String environmentVariables, @Nullable java.lang.String workingSubdirectory, @NotNull java.util.List<com.atlassian.bamboo.specs.api.model.plan.requirement.RequirementProperties> requirements, @NotNull java.util.List<? extends com.atlassian.bamboo.specs.api.model.plan.condition.ConditionProperties> conditions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @Nullable java.lang.String getArgument()  
      @NotNull com.atlassian.bamboo.specs.api.model.AtlassianModuleProperties getAtlassianPlugin()  
      @Nullable java.lang.String getEnvironmentVariables()  
      @NotNull java.lang.String getExecutable()  
      @Nullable java.lang.String getWorkingSubdirectory()  
      int hashCode()  
      void validate()  
      • Methods inherited from class com.atlassian.bamboo.specs.api.model.task.TaskProperties

        applicableTo, getConditions, getDescription, getRequirements, isEnabled, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommandTaskProperties

        public CommandTaskProperties​(java.lang.String description,
                                     boolean enabled,
                                     @NotNull
                                     @NotNull java.lang.String executable,
                                     @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
      • getExecutable

        @NotNull
        public @NotNull java.lang.String getExecutable()
      • 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