ExportResourceUsageParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.ExportResourceUsageParameters

Implements

public final class ExportResourceUsageParameters
implements JsonSerializable<ExportResourceUsageParameters>

The parameters of the export operation.

Constructor Summary

Constructor Description
ExportResourceUsageParameters()

Creates an instance of ExportResourceUsageParameters class.

Method Summary

Modifier and Type Method and Description
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.

static ExportResourceUsageParameters fromJson(JsonReader jsonReader)

Reads an instance of ExportResourceUsageParameters from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime usageStartDate()

Get the usageStartDate property: The start time of the usage.

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.

ExportResourceUsageParameters withUsageStartDate(OffsetDateTime usageStartDate)

Set the usageStartDate property: The start time of the usage.

Methods inherited from java.lang.Object

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.

fromJson

public static ExportResourceUsageParameters fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

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.

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.

Applies to