Class WafMetricsResponseInner
java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.WafMetricsResponseInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WafMetricsResponseInner>
public final class WafMetricsResponseInner
extends Object
implements com.azure.json.JsonSerializable<WafMetricsResponseInner>
Waf Metrics Response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WafMetricsResponseInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dateTimeBegin property: The dateTimeBegin property.Get the dateTimeEnd property: The dateTimeEnd property.static WafMetricsResponseInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WafMetricsResponseInner from the JsonReader.Get the granularity property: The granularity property.series()Get the series property: The series property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDateTimeBegin(OffsetDateTime dateTimeBegin) Set the dateTimeBegin property: The dateTimeBegin property.withDateTimeEnd(OffsetDateTime dateTimeEnd) Set the dateTimeEnd property: The dateTimeEnd property.withGranularity(WafMetricsGranularity granularity) Set the granularity property: The granularity property.withSeries(List<WafMetricsResponseSeriesItem> series) Set the series property: The series property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WafMetricsResponseInner
public WafMetricsResponseInner()Creates an instance of WafMetricsResponseInner class.
-
-
Method Details
-
dateTimeBegin
Get the dateTimeBegin property: The dateTimeBegin property.- Returns:
- the dateTimeBegin value.
-
withDateTimeBegin
Set the dateTimeBegin property: The dateTimeBegin property.- Parameters:
dateTimeBegin- the dateTimeBegin value to set.- Returns:
- the WafMetricsResponseInner object itself.
-
dateTimeEnd
Get the dateTimeEnd property: The dateTimeEnd property.- Returns:
- the dateTimeEnd value.
-
withDateTimeEnd
Set the dateTimeEnd property: The dateTimeEnd property.- Parameters:
dateTimeEnd- the dateTimeEnd value to set.- Returns:
- the WafMetricsResponseInner object itself.
-
granularity
Get the granularity property: The granularity property.- Returns:
- the granularity value.
-
withGranularity
Set the granularity property: The granularity property.- Parameters:
granularity- the granularity value to set.- Returns:
- the WafMetricsResponseInner object itself.
-
series
Get the series property: The series property.- Returns:
- the series value.
-
withSeries
Set the series property: The series property.- Parameters:
series- the series value to set.- Returns:
- the WafMetricsResponseInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WafMetricsResponseInner>- Throws:
IOException
-
fromJson
public static WafMetricsResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WafMetricsResponseInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WafMetricsResponseInner 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 WafMetricsResponseInner.
-