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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WindowsConfiguration.Builder
static class
WindowsConfiguration.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description WindowsConfiguration()
WindowsConfiguration(String passwordCredentialsId, String privateKeyCredentialsId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsConfiguration.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Descriptor<WindowsConfiguration>
getDescriptor()
String
getPassword()
Gets the password if a username and password credential is providedString
getPasswordCredentialsId()
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
getPrivateKeyCredentials()
Returns the SSH private key if a SSH credential is providedString
getPrivateKeyCredentialsId()
int
hashCode()
void
setPasswordCredentialsId(String passwordCredentialsId)
void
setPrivateKeyCredentialsId(String privateKeyCredentialsId)
String
toString()
-
-
-
Method Detail
-
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 interfaceDescribable<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)
-
canEqual
protected boolean canEqual(Object other)
-
-