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 Details

    • FlowLogFormatParameters

      public FlowLogFormatParameters()
      Creates an instance of FlowLogFormatParameters class.
  • Method Details

    • type

      public FlowLogFormatType 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

      public Integer version()
      Get the version property: The version (revision) of the flow log.
      Returns:
      the version value.
    • withVersion

      public FlowLogFormatParameters withVersion(Integer version)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.