Package zowe.client.sdk.core
Class ZosConnection.Builder
- java.lang.Object
-
- zowe.client.sdk.core.ZosConnection.Builder
-
- Enclosing class:
- ZosConnection
public static class ZosConnection.Builder extends Object
Builder class for ZosConnection
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZosConnectionbuild()Build the ZosConnection instanceZosConnection.BuildercertFilePath(String certFilePath)Set the certificate file pathZosConnection.BuildercertPassword(String certPassword)Set the certificate password for SSL authenticationZosConnection.Builderhost(String host)Set the hostZosConnection.Builderpassword(String password)Set the passwordZosConnection.Buildertoken(kong.unirest.core.Cookie token)Set the tokenZosConnection.Builderuser(String user)Set the userZosConnection.BuilderzosmfPort(String zosmfPort)Set the z/OSMF port
-
-
-
Constructor Detail
-
Builder
public Builder(AuthType authType)
Constructor with setting the required authentication type- Parameters:
authType- AuthType
-
-
Method Detail
-
host
public ZosConnection.Builder host(String host)
Set the host- Parameters:
host- machine host pointing to backend z/OS instance- Returns:
- Builder instance
-
zosmfPort
public ZosConnection.Builder zosmfPort(String zosmfPort)
Set the z/OSMF port- Parameters:
zosmfPort- machine host z/OSMF port number pointing to backend z/OS instance- Returns:
- Builder instance
-
user
public ZosConnection.Builder user(String user)
Set the user- Parameters:
user- machine host username with access to backend z/OS instance- Returns:
- Builder instance
-
password
public ZosConnection.Builder password(String password)
Set the password- Parameters:
password- machine host username's password with access to backend z/OS instance- Returns:
- Builder instance
-
certPassword
public ZosConnection.Builder certPassword(String certPassword)
Set the certificate password for SSL authentication- Parameters:
certPassword- certificate password- Returns:
- Builder instance
-
token
public ZosConnection.Builder token(kong.unirest.core.Cookie token)
Set the token- Parameters:
token- Cookie object containing a token value- Returns:
- Builder instance
-
certFilePath
public ZosConnection.Builder certFilePath(String certFilePath)
Set the certificate file path- Parameters:
certFilePath- path to the certificate file- Returns:
- Builder instance
-
build
public ZosConnection build()
Build the ZosConnection instance- Returns:
- new ZosConnection instance
-
-