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 Summary
ConstructorsConstructorDescriptionCreates an instance of ExportResourceUsageParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the blobStorageAbsoluteSasUri property: The blob storage absolute sas uri with write permission to the container which the usage data needs to be uploaded to.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ExportResourceUsageParameters from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the usageStartDate property: The start time of the usage.void
validate()
Validates the instance.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.withUsageStartDate
(OffsetDateTime usageStartDate) Set the usageStartDate property: The start time of the usage.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
-
ExportResourceUsageParameters
public ExportResourceUsageParameters()Creates an instance of ExportResourceUsageParameters class.
-
-
Method Details
-
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
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
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
- Specified by:
toJson
in interfacecom.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.
-