RunCommandRequest Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. RunCommandRequest
- com.
Implements
public final class RunCommandRequest
implements JsonSerializable<RunCommandRequest>
A run command request.
Constructor Summary
| Constructor | Description |
|---|---|
| RunCommandRequest() |
Creates an instance of Run |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
clusterToken()
Get the cluster |
| String |
command()
Get the command property: The command to run. |
| String |
context()
Get the context property: A base64 encoded zip file containing the files required by the command. |
|
static
Run |
fromJson(JsonReader jsonReader)
Reads an instance of Run |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Run |
withClusterToken(String clusterToken)
Set the cluster |
|
Run |
withCommand(String command)
Set the command property: The command to run. |
|
Run |
withContext(String context)
Set the context property: A base64 encoded zip file containing the files required by the command. |
Methods inherited from java.lang.Object
Constructor Details
RunCommandRequest
public RunCommandRequest()
Creates an instance of RunCommandRequest class.
Method Details
clusterToken
public String clusterToken()
Get the clusterToken property: AuthToken issued for AKS AAD Server App.
Returns:
command
public String command()
Get the command property: The command to run.
Returns:
context
public String context()
Get the context property: A base64 encoded zip file containing the files required by the command.
Returns:
fromJson
public static RunCommandRequest fromJson(JsonReader jsonReader)
Reads an instance of RunCommandRequest from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withClusterToken
public RunCommandRequest withClusterToken(String clusterToken)
Set the clusterToken property: AuthToken issued for AKS AAD Server App.
Parameters:
Returns:
withCommand
public RunCommandRequest withCommand(String command)
Set the command property: The command to run.
Parameters:
Returns:
withContext
public RunCommandRequest withContext(String context)
Set the context property: A base64 encoded zip file containing the files required by the command.
Parameters:
Returns: