Class ApplyArtifactsRequest
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ApplyArtifactsRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ApplyArtifactsRequest>
public final class ApplyArtifactsRequest
extends Object
implements com.azure.json.JsonSerializable<ApplyArtifactsRequest>
Request body for applying artifacts to a virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the artifacts property: The list of artifacts to apply.static ApplyArtifactsRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ApplyArtifactsRequest from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withArtifacts
(List<ArtifactInstallProperties> artifacts) Set the artifacts property: The list of artifacts to apply.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ApplyArtifactsRequest
public ApplyArtifactsRequest()Creates an instance of ApplyArtifactsRequest class.
-
-
Method Details
-
artifacts
Get the artifacts property: The list of artifacts to apply.- Returns:
- the artifacts value.
-
withArtifacts
Set the artifacts property: The list of artifacts to apply.- Parameters:
artifacts
- the artifacts value to set.- Returns:
- the ApplyArtifactsRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ApplyArtifactsRequest>
- Throws:
IOException
-
fromJson
public static ApplyArtifactsRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-