Class EdgeUsageDataCollectionPolicy
java.lang.Object
com.azure.resourcemanager.mediaservices.models.EdgeUsageDataCollectionPolicy
The EdgeUsageDataCollectionPolicy model.
-
Constructor Summary
ConstructorDescriptionCreates an instance of EdgeUsageDataCollectionPolicy class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataCollectionFrequency property: Usage data collection frequency in ISO 8601 duration format e.g.Get the dataReportingFrequency property: Usage data reporting frequency in ISO 8601 duration format e.g.Get the eventHubDetails property: Details of Event Hub where the usage will be reported.Get the maxAllowedUnreportedUsageDuration property: Maximum time for which the functionality of the device will not be hampered for not reporting the usage data.void
validate()
Validates the instance.withDataCollectionFrequency
(String dataCollectionFrequency) Set the dataCollectionFrequency property: Usage data collection frequency in ISO 8601 duration format e.g.withDataReportingFrequency
(String dataReportingFrequency) Set the dataReportingFrequency property: Usage data reporting frequency in ISO 8601 duration format e.g.withEventHubDetails
(EdgeUsageDataEventHub eventHubDetails) Set the eventHubDetails property: Details of Event Hub where the usage will be reported.withMaxAllowedUnreportedUsageDuration
(String maxAllowedUnreportedUsageDuration) Set the maxAllowedUnreportedUsageDuration property: Maximum time for which the functionality of the device will not be hampered for not reporting the usage data.
-
Constructor Details
-
EdgeUsageDataCollectionPolicy
public EdgeUsageDataCollectionPolicy()Creates an instance of EdgeUsageDataCollectionPolicy class.
-
-
Method Details
-
dataCollectionFrequency
Get the dataCollectionFrequency property: Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H.- Returns:
- the dataCollectionFrequency value.
-
withDataCollectionFrequency
Set the dataCollectionFrequency property: Usage data collection frequency in ISO 8601 duration format e.g. PT10M , PT5H.- Parameters:
dataCollectionFrequency
- the dataCollectionFrequency value to set.- Returns:
- the EdgeUsageDataCollectionPolicy object itself.
-
dataReportingFrequency
Get the dataReportingFrequency property: Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H.- Returns:
- the dataReportingFrequency value.
-
withDataReportingFrequency
Set the dataReportingFrequency property: Usage data reporting frequency in ISO 8601 duration format e.g. PT10M , PT5H.- Parameters:
dataReportingFrequency
- the dataReportingFrequency value to set.- Returns:
- the EdgeUsageDataCollectionPolicy object itself.
-
maxAllowedUnreportedUsageDuration
Get the maxAllowedUnreportedUsageDuration property: Maximum time for which the functionality of the device will not be hampered for not reporting the usage data.- Returns:
- the maxAllowedUnreportedUsageDuration value.
-
withMaxAllowedUnreportedUsageDuration
public EdgeUsageDataCollectionPolicy withMaxAllowedUnreportedUsageDuration(String maxAllowedUnreportedUsageDuration) Set the maxAllowedUnreportedUsageDuration property: Maximum time for which the functionality of the device will not be hampered for not reporting the usage data.- Parameters:
maxAllowedUnreportedUsageDuration
- the maxAllowedUnreportedUsageDuration value to set.- Returns:
- the EdgeUsageDataCollectionPolicy object itself.
-
eventHubDetails
Get the eventHubDetails property: Details of Event Hub where the usage will be reported.- Returns:
- the eventHubDetails value.
-
withEventHubDetails
Set the eventHubDetails property: Details of Event Hub where the usage will be reported.- Parameters:
eventHubDetails
- the eventHubDetails value to set.- Returns:
- the EdgeUsageDataCollectionPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-