Class FlowLogPropertiesFormat

java.lang.Object
com.azure.resourcemanager.network.fluent.models.FlowLogPropertiesFormat
All Implemented Interfaces:
com.azure.json.JsonSerializable<FlowLogPropertiesFormat>

public final class FlowLogPropertiesFormat extends Object implements com.azure.json.JsonSerializable<FlowLogPropertiesFormat>
Parameters that define the configuration of flow log.
  • Constructor Details

    • FlowLogPropertiesFormat

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

    • targetResourceId

      public String targetResourceId()
      Get the targetResourceId property: ID of network security group to which flow log will be applied.
      Returns:
      the targetResourceId value.
    • withTargetResourceId

      public FlowLogPropertiesFormat withTargetResourceId(String targetResourceId)
      Set the targetResourceId property: ID of network security group to which flow log will be applied.
      Parameters:
      targetResourceId - the targetResourceId value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • targetResourceGuid

      public String targetResourceGuid()
      Get the targetResourceGuid property: Guid of network security group to which flow log will be applied.
      Returns:
      the targetResourceGuid value.
    • storageId

      public String storageId()
      Get the storageId property: ID of the storage account which is used to store the flow log.
      Returns:
      the storageId value.
    • withStorageId

      public FlowLogPropertiesFormat withStorageId(String storageId)
      Set the storageId property: ID of the storage account which is used to store the flow log.
      Parameters:
      storageId - the storageId value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • enabledFilteringCriteria

      public String enabledFilteringCriteria()
      Get the enabledFilteringCriteria property: Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged.
      Returns:
      the enabledFilteringCriteria value.
    • withEnabledFilteringCriteria

      public FlowLogPropertiesFormat withEnabledFilteringCriteria(String enabledFilteringCriteria)
      Set the enabledFilteringCriteria property: Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action. If not specified, all network traffic will be logged.
      Parameters:
      enabledFilteringCriteria - the enabledFilteringCriteria value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Flag to enable/disable flow logging.
      Returns:
      the enabled value.
    • withEnabled

      public FlowLogPropertiesFormat withEnabled(Boolean enabled)
      Set the enabled property: Flag to enable/disable flow logging.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • retentionPolicy

      public RetentionPolicyParameters retentionPolicy()
      Get the retentionPolicy property: Parameters that define the retention policy for flow log.
      Returns:
      the retentionPolicy value.
    • withRetentionPolicy

      public FlowLogPropertiesFormat withRetentionPolicy(RetentionPolicyParameters retentionPolicy)
      Set the retentionPolicy property: Parameters that define the retention policy for flow log.
      Parameters:
      retentionPolicy - the retentionPolicy value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • format

      public FlowLogFormatParameters format()
      Get the format property: Parameters that define the flow log format.
      Returns:
      the format value.
    • withFormat

      Set the format property: Parameters that define the flow log format.
      Parameters:
      format - the format value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • flowAnalyticsConfiguration

      public TrafficAnalyticsProperties flowAnalyticsConfiguration()
      Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.
      Returns:
      the flowAnalyticsConfiguration value.
    • withFlowAnalyticsConfiguration

      public FlowLogPropertiesFormat withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration)
      Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.
      Parameters:
      flowAnalyticsConfiguration - the flowAnalyticsConfiguration value to set.
      Returns:
      the FlowLogPropertiesFormat object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the flow log.
      Returns:
      the provisioningState value.
    • 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<FlowLogPropertiesFormat>
      Throws:
      IOException
    • fromJson

      public static FlowLogPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FlowLogPropertiesFormat from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FlowLogPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the FlowLogPropertiesFormat.