Class ConsoleGetResponse
- java.lang.Object
-
- zowe.client.sdk.zosconsole.response.ConsoleGetResponse
-
public class ConsoleGetResponse extends Object
The console response for a z/OSMF synchronous issue console command request.- Version:
- 5.0
- Author:
- Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description ConsoleGetResponse(String cmdResponse, boolean keywordDetected)ConsoleGetResponse constructor for JSON deserialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCmdResponse()Retrieve cmdResponse specifiedbooleanisKeywordDetected()Retrieve the keywordDetected specifiedStringtoString()ConsoleGetResponsewithCmdResponse(String newCmdResponse)Create a new ConsoleGetResponse with a different cmdResponse value
-
-
-
Constructor Detail
-
ConsoleGetResponse
public ConsoleGetResponse(String cmdResponse, boolean keywordDetected)
ConsoleGetResponse constructor for JSON deserialization- Parameters:
cmdResponse- Command response textkeywordDetected- Indicates if the solicited keyword was detected
-
-
Method Detail
-
getCmdResponse
public String getCmdResponse()
Retrieve cmdResponse specified- Returns:
- cmdResponse value
-
isKeywordDetected
public boolean isKeywordDetected()
Retrieve the keywordDetected specified- Returns:
- keywordDetected true or false is keywordDetected seen
-
withCmdResponse
public ConsoleGetResponse withCmdResponse(String newCmdResponse)
Create a new ConsoleGetResponse with a different cmdResponse value- Parameters:
newCmdResponse- the new command response value- Returns:
- a new ConsoleGetResponse instance with the updated cmdResponse
-
-