Class ExportResourceUsageParameters

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ExportResourceUsageParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExportResourceUsageParameters>

public final class ExportResourceUsageParameters extends Object implements com.azure.json.JsonSerializable<ExportResourceUsageParameters>
The parameters of the export operation.
  • Constructor Details

    • ExportResourceUsageParameters

      public ExportResourceUsageParameters()
      Creates an instance of ExportResourceUsageParameters class.
  • Method Details

    • blobStorageAbsoluteSasUri

      public String blobStorageAbsoluteSasUri()
      Get the blobStorageAbsoluteSasUri property: The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.
      Returns:
      the blobStorageAbsoluteSasUri value.
    • withBlobStorageAbsoluteSasUri

      public ExportResourceUsageParameters withBlobStorageAbsoluteSasUri(String blobStorageAbsoluteSasUri)
      Set the blobStorageAbsoluteSasUri property: The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.
      Parameters:
      blobStorageAbsoluteSasUri - the blobStorageAbsoluteSasUri value to set.
      Returns:
      the ExportResourceUsageParameters object itself.
    • usageStartDate

      public OffsetDateTime usageStartDate()
      Get the usageStartDate property: The start time of the usage. If not provided, usage will be reported since the beginning of data collection.
      Returns:
      the usageStartDate value.
    • withUsageStartDate

      public ExportResourceUsageParameters withUsageStartDate(OffsetDateTime usageStartDate)
      Set the usageStartDate property: The start time of the usage. If not provided, usage will be reported since the beginning of data collection.
      Parameters:
      usageStartDate - the usageStartDate value to set.
      Returns:
      the ExportResourceUsageParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExportResourceUsageParameters>
      Throws:
      IOException
    • fromJson

      public static ExportResourceUsageParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExportResourceUsageParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExportResourceUsageParameters 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 ExportResourceUsageParameters.