Partager via


RunCommandRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.RunCommandRequest

Implements

public final class RunCommandRequest
implements JsonSerializable<RunCommandRequest>

A run command request.

Constructor Summary

Constructor Description
RunCommandRequest()

Creates an instance of RunCommandRequest class.

Method Summary

Modifier and Type Method and Description
String clusterToken()

Get the clusterToken property: AuthToken issued for AKS AAD Server App.

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 RunCommandRequest fromJson(JsonReader jsonReader)

Reads an instance of RunCommandRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RunCommandRequest withClusterToken(String clusterToken)

Set the clusterToken property: AuthToken issued for AKS AAD Server App.

RunCommandRequest withCommand(String command)

Set the command property: The command to run.

RunCommandRequest 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:

the clusterToken value.

command

public String command()

Get the command property: The command to run.

Returns:

the command value.

context

public String context()

Get the context property: A base64 encoded zip file containing the files required by the command.

Returns:

the context value.

fromJson

public static RunCommandRequest fromJson(JsonReader jsonReader)

Reads an instance of RunCommandRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RunCommandRequest if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

clusterToken - the clusterToken value to set.

Returns:

the RunCommandRequest object itself.

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.

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.

Applies to