Class BaseSshTaskProperties

  • All Implemented Interfaces:
    com.atlassian.bamboo.specs.api.model.EntityProperties
    Direct Known Subclasses:
    ScpTaskProperties, SshTaskProperties

    public abstract class BaseSshTaskProperties
    extends com.atlassian.bamboo.specs.api.model.task.TaskProperties
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_PORT  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseSshTaskProperties()  
        BaseSshTaskProperties​(java.lang.String description, boolean enabled, java.lang.String host, java.lang.String username, BaseSshTaskProperties.AuthenticationType authenticationType, @Nullable java.lang.String password, @Nullable java.lang.String key, @Nullable java.lang.String passphrase, @Nullable com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsIdentifierProperties sharedCredentialsIdentifierProperties, @Nullable java.lang.String hostFingerprint, int port, @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)  
    • Field Detail

      • DEFAULT_PORT

        public static final int DEFAULT_PORT
    • Constructor Detail

      • BaseSshTaskProperties

        protected BaseSshTaskProperties()
      • BaseSshTaskProperties

        public BaseSshTaskProperties​(java.lang.String description,
                                     boolean enabled,
                                     java.lang.String host,
                                     java.lang.String username,
                                     BaseSshTaskProperties.AuthenticationType authenticationType,
                                     @Nullable
                                     @Nullable java.lang.String password,
                                     @Nullable
                                     @Nullable java.lang.String key,
                                     @Nullable
                                     @Nullable java.lang.String passphrase,
                                     @Nullable
                                     @Nullable com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsIdentifierProperties sharedCredentialsIdentifierProperties,
                                     @Nullable
                                     @Nullable java.lang.String hostFingerprint,
                                     int port,
                                     @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

      • getHost

        public java.lang.String getHost()
      • getUsername

        public java.lang.String getUsername()
      • getPassword

        @Nullable
        public @Nullable java.lang.String getPassword()
      • getKey

        @Nullable
        public @Nullable java.lang.String getKey()
      • getPassphrase

        @Nullable
        public @Nullable java.lang.String getPassphrase()
      • getSharedCredentialsIdentifierProperties

        @Nullable
        public @Nullable com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsIdentifierProperties getSharedCredentialsIdentifierProperties()
      • getHostFingerprint

        @Nullable
        public @Nullable java.lang.String getHostFingerprint()
      • getPort

        public int getPort()
      • 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