ApplyArtifactsRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.ApplyArtifactsRequest

Implements

public final class ApplyArtifactsRequest
implements JsonSerializable<ApplyArtifactsRequest>

Request body for applying artifacts to a virtual machine.

Constructor Summary

Constructor Description
ApplyArtifactsRequest()

Creates an instance of ApplyArtifactsRequest class.

Method Summary

Modifier and Type Method and Description
List<ArtifactInstallProperties> artifacts()

Get the artifacts property: The list of artifacts to apply.

static ApplyArtifactsRequest fromJson(JsonReader jsonReader)

Reads an instance of ApplyArtifactsRequest from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
ApplyArtifactsRequest withArtifacts(List<ArtifactInstallProperties> artifacts)

Set the artifacts property: The list of artifacts to apply.

Methods inherited from java.lang.Object

Constructor Details

ApplyArtifactsRequest

public ApplyArtifactsRequest()

Creates an instance of ApplyArtifactsRequest class.

Method Details

artifacts

public List<ArtifactInstallProperties> artifacts()

Get the artifacts property: The list of artifacts to apply.

Returns:

the artifacts value.

fromJson

public static ApplyArtifactsRequest fromJson(JsonReader jsonReader)

Reads an instance of ApplyArtifactsRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ApplyArtifactsRequest.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withArtifacts

public ApplyArtifactsRequest withArtifacts(List<ArtifactInstallProperties> artifacts)

Set the artifacts property: The list of artifacts to apply.

Parameters:

artifacts - the artifacts value to set.

Returns:

the ApplyArtifactsRequest object itself.

Applies to