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
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZosConnection.BuilderauthType(AuthType authType)Set the AuthType: BASIC, TOKEN or SSL enum value for http request processingZosConnectionbuild()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.Buildersecure(boolean isSecure)Set whether the connection should be secure (HTTPS)ZosConnection.Buildertoken(kong.unirest.core.Cookie token)Set the tokenZosConnection.Builderuser(String user)Set the userZosConnection.BuilderzosmfPort(String zosmfPort)Set the z/OSMF port
-
-
-
Method Detail
-
secure
public ZosConnection.Builder secure(boolean isSecure)
Set whether the connection should be secure (HTTPS)- Parameters:
isSecure- true for secure connection, false otherwise- Returns:
- Builder instance
-
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
-
authType
public ZosConnection.Builder authType(AuthType authType)
Set the AuthType: BASIC, TOKEN or SSL enum value for http request processing- Parameters:
authType- AuthType enum value- Returns:
- Builder instance
-
build
public ZosConnection build()
Build the ZosConnection instance- Returns:
- new ZosConnection instance
-
-