Class LogSpecification
java.lang.Object
com.azure.resourcemanager.appservice.models.LogSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogSpecification>
public final class LogSpecification
extends Object
implements com.azure.json.JsonSerializable<LogSpecification>
Log Definition of a single resource metric.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the blobDuration property: The blobDuration property.Get the displayName property: The displayName property.static LogSpecification
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LogSpecification from the JsonReader.Get the logFilterPattern property: The logFilterPattern property.name()
Get the name property: The name property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBlobDuration
(String blobDuration) Set the blobDuration property: The blobDuration property.withDisplayName
(String displayName) Set the displayName property: The displayName property.withLogFilterPattern
(String logFilterPattern) Set the logFilterPattern property: The logFilterPattern property.Set the name property: The name property.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
-
LogSpecification
public LogSpecification()Creates an instance of LogSpecification class.
-
-
Method Details
-
name
Get the name property: The name property.- Returns:
- the name value.
-
withName
Set the name property: The name property.- Parameters:
name
- the name value to set.- Returns:
- the LogSpecification object itself.
-
displayName
Get the displayName property: The displayName property.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The displayName property.- Parameters:
displayName
- the displayName value to set.- Returns:
- the LogSpecification object itself.
-
blobDuration
Get the blobDuration property: The blobDuration property.- Returns:
- the blobDuration value.
-
withBlobDuration
Set the blobDuration property: The blobDuration property.- Parameters:
blobDuration
- the blobDuration value to set.- Returns:
- the LogSpecification object itself.
-
logFilterPattern
Get the logFilterPattern property: The logFilterPattern property.- Returns:
- the logFilterPattern value.
-
withLogFilterPattern
Set the logFilterPattern property: The logFilterPattern property.- Parameters:
logFilterPattern
- the logFilterPattern value to set.- Returns:
- the LogSpecification 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<LogSpecification>
- Throws:
IOException
-
fromJson
Reads an instance of LogSpecification from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of LogSpecification 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 LogSpecification.
-