Class LogSpecification
java.lang.Object
com.azure.resourcemanager.network.models.LogSpecification
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogSpecification>
public final class LogSpecification
extends Object
implements com.azure.json.JsonSerializable<LogSpecification>
Description of logging specification.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the blobDuration property: Duration of the blob.Get the displayName property: The display name of the specification.static LogSpecification
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LogSpecification from the JsonReader.name()
Get the name property: The name of the specification.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBlobDuration
(String blobDuration) Set the blobDuration property: Duration of the blob.withDisplayName
(String displayName) Set the displayName property: The display name of the specification.Set the name property: The name of the specification.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 of the specification.- Returns:
- the name value.
-
withName
Set the name property: The name of the specification.- Parameters:
name
- the name value to set.- Returns:
- the LogSpecification object itself.
-
displayName
Get the displayName property: The display name of the specification.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name of the specification.- Parameters:
displayName
- the displayName value to set.- Returns:
- the LogSpecification object itself.
-
blobDuration
Get the blobDuration property: Duration of the blob.- Returns:
- the blobDuration value.
-
withBlobDuration
Set the blobDuration property: Duration of the blob.- Parameters:
blobDuration
- the blobDuration 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.
-