Package com.azure.compute.batch.models
Class UploadBatchServiceLogsContent
java.lang.Object
com.azure.compute.batch.models.UploadBatchServiceLogsContent
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UploadBatchServiceLogsContent>
public final class UploadBatchServiceLogsContent
extends Object
implements com.azure.json.JsonSerializable<UploadBatchServiceLogsContent>
The Azure Batch service log files upload parameters for a Compute Node.
-
Constructor Summary
ConstructorsConstructorDescriptionUploadBatchServiceLogsContent
(String containerUrl, OffsetDateTime startTime) Creates an instance of UploadBatchServiceLogsContent class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of UploadBatchServiceLogsContent from the JsonReader.Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s).Get the endTime property: The end of the time range from which to upload Batch Service log file(s).Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl.Get the startTime property: The start of the time range from which to upload Batch Service log file(s).setEndTime
(OffsetDateTime endTime) Set the endTime property: The end of the time range from which to upload Batch Service log file(s).setIdentityReference
(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) 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
-
UploadBatchServiceLogsContent
Creates an instance of UploadBatchServiceLogsContent class.- Parameters:
containerUrl
- the containerUrl value to set.startTime
- the startTime value to set.
-
-
Method Details
-
getContainerUrl
Get the containerUrl property: The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified.- Returns:
- the containerUrl value.
-
getStartTime
Get the startTime property: The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested.- Returns:
- the startTime value.
-
getEndTime
Get the endTime property: The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.- Returns:
- the endTime value.
-
setEndTime
Set the endTime property: The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.- Parameters:
endTime
- the endTime value to set.- Returns:
- the UploadBatchServiceLogsContent object itself.
-
getIdentityReference
Get the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.- Returns:
- the identityReference value.
-
setIdentityReference
public UploadBatchServiceLogsContent setIdentityReference(BatchNodeIdentityReference identityReference) Set the identityReference property: The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.- Parameters:
identityReference
- the identityReference value to set.- Returns:
- the UploadBatchServiceLogsContent object itself.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<UploadBatchServiceLogsContent>
- Throws:
IOException
-
fromJson
public static UploadBatchServiceLogsContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UploadBatchServiceLogsContent from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of UploadBatchServiceLogsContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the UploadBatchServiceLogsContent.
-