Class DeploymentLogsRequest
java.lang.Object
com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DeploymentLogsRequest>
public final class DeploymentLogsRequest
extends Object
implements com.azure.json.JsonSerializable<DeploymentLogsRequest>
The DeploymentLogsRequest model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containerType property: The type of container to retrieve logs from.static DeploymentLogsRequestfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DeploymentLogsRequest from the JsonReader.tail()Get the tail property: The maximum number of lines to tail.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withContainerType(ContainerType containerType) Set the containerType property: The type of container to retrieve logs from.Set the tail property: The maximum number of lines to tail.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
DeploymentLogsRequest
public DeploymentLogsRequest()Creates an instance of DeploymentLogsRequest class.
-
-
Method Details
-
containerType
Get the containerType property: The type of container to retrieve logs from.- Returns:
- the containerType value.
-
withContainerType
Set the containerType property: The type of container to retrieve logs from.- Parameters:
containerType- the containerType value to set.- Returns:
- the DeploymentLogsRequest object itself.
-
tail
Get the tail property: The maximum number of lines to tail.- Returns:
- the tail value.
-
withTail
Set the tail property: The maximum number of lines to tail.- Parameters:
tail- the tail value to set.- Returns:
- the DeploymentLogsRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DeploymentLogsRequest>- Throws:
IOException
-
fromJson
public static DeploymentLogsRequest fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DeploymentLogsRequest from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DeploymentLogsRequest 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 DeploymentLogsRequest.
-