Class FlowLogFormatParameters
java.lang.Object
com.azure.resourcemanager.network.models.FlowLogFormatParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FlowLogFormatParameters>
public final class FlowLogFormatParameters
extends Object
implements com.azure.json.JsonSerializable<FlowLogFormatParameters>
Parameters that define the flow log format.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FlowLogFormatParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowLogFormatParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlowLogFormatParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The file type of flow log.voidvalidate()Validates the instance.version()Get the version property: The version (revision) of the flow log.withType(FlowLogFormatType type) Set the type property: The file type of flow log.withVersion(Integer version) Set the version property: The version (revision) of the flow log.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
-
FlowLogFormatParameters
public FlowLogFormatParameters()Creates an instance of FlowLogFormatParameters class.
-
-
Method Details
-
type
Get the type property: The file type of flow log.- Returns:
- the type value.
-
withType
Set the type property: The file type of flow log.- Parameters:
type- the type value to set.- Returns:
- the FlowLogFormatParameters object itself.
-
version
Get the version property: The version (revision) of the flow log.- Returns:
- the version value.
-
withVersion
Set the version property: The version (revision) of the flow log.- Parameters:
version- the version value to set.- Returns:
- the FlowLogFormatParameters 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<FlowLogFormatParameters>- Throws:
IOException
-
fromJson
public static FlowLogFormatParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FlowLogFormatParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlowLogFormatParameters 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 FlowLogFormatParameters.
-