Class WindowsConfiguration

java.lang.Object
com.google.jenkins.plugins.computeengine.WindowsConfiguration
All Implemented Interfaces:
Describable<WindowsConfiguration>, Serializable

public class WindowsConfiguration extends Object implements Describable<WindowsConfiguration>, Serializable
Class to contain information needed to configure and access Windows agents This avoids passing in several parameters between multiple classes and also isolates logic in accessing credentials
See Also:
  • Constructor Details

    • WindowsConfiguration

      @DataBoundConstructor public WindowsConfiguration()
    • WindowsConfiguration

      public WindowsConfiguration(String passwordCredentialsId, String privateKeyCredentialsId)
  • Method Details

    • getPassword

      public String getPassword()
      Gets the password if a username and password credential is provided
      Returns:
      password in plain text to use for SSH
    • getPrivateKeyCredentials

      public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getPrivateKeyCredentials()
      Returns the SSH private key if a SSH credential is provided
      Returns:
      SSH private key in plain text to use for SSH
    • getDescriptor

      public Descriptor<WindowsConfiguration> getDescriptor()
      Specified by:
      getDescriptor in interface Describable<WindowsConfiguration>
    • builder

      public static WindowsConfiguration.Builder builder()
    • getPasswordCredentialsId

      public String getPasswordCredentialsId()
    • getPrivateKeyCredentialsId

      public String getPrivateKeyCredentialsId()
    • setPasswordCredentialsId

      @DataBoundSetter public void setPasswordCredentialsId(String passwordCredentialsId)
    • setPrivateKeyCredentialsId

      @DataBoundSetter public void setPrivateKeyCredentialsId(String privateKeyCredentialsId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object