Class RunCommandRequest
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.models.RunCommandRequest
-
public final class RunCommandRequest extends Object
A run command request.
-
-
Constructor Summary
Constructors Constructor Description RunCommandRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclusterToken()Get the clusterToken property: AuthToken issued for AKS AAD Server App.Stringcommand()Get the command property: The command to run.Stringcontext()Get the context property: A base64 encoded zip file containing the files required by the command.voidvalidate()Validates the instance.RunCommandRequestwithClusterToken(String clusterToken)Set the clusterToken property: AuthToken issued for AKS AAD Server App.RunCommandRequestwithCommand(String command)Set the command property: The command to run.RunCommandRequestwithContext(String context)Set the context property: A base64 encoded zip file containing the files required by the command.
-
-
-
Method Detail
-
command
public String command()
Get the command property: The command to run.- Returns:
- the command value.
-
withCommand
public RunCommandRequest withCommand(String command)
Set the command property: The command to run.- Parameters:
command- the command value to set.- Returns:
- the RunCommandRequest object itself.
-
context
public String context()
Get the context property: A base64 encoded zip file containing the files required by the command.- Returns:
- the context value.
-
withContext
public RunCommandRequest withContext(String context)
Set the context property: A base64 encoded zip file containing the files required by the command.- Parameters:
context- the context value to set.- Returns:
- the RunCommandRequest object itself.
-
clusterToken
public String clusterToken()
Get the clusterToken property: AuthToken issued for AKS AAD Server App.- Returns:
- the clusterToken value.
-
withClusterToken
public RunCommandRequest withClusterToken(String clusterToken)
Set the clusterToken property: AuthToken issued for AKS AAD Server App.- Parameters:
clusterToken- the clusterToken value to set.- Returns:
- the RunCommandRequest object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-