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 Details

    • UploadBatchServiceLogsContent

      public UploadBatchServiceLogsContent(String containerUrl, OffsetDateTime startTime)
      Creates an instance of UploadBatchServiceLogsContent class.
      Parameters:
      containerUrl - the containerUrl value to set.
      startTime - the startTime value to set.
  • Method Details

    • getContainerUrl

      public String 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

      public OffsetDateTime 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

      public OffsetDateTime 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

      public UploadBatchServiceLogsContent setEndTime(OffsetDateTime endTime)
      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

      public BatchNodeIdentityReference 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.