Class FlowLogInformationInner
java.lang.Object
com.azure.resourcemanager.network.fluent.models.FlowLogInformationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FlowLogInformationInner>
public final class FlowLogInformationInner
extends Object
implements com.azure.json.JsonSerializable<FlowLogInformationInner>
Information on the configuration of flow log and traffic analytics (optional) .
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FlowLogInformationInner class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Get the enabled property: Flag to enable/disable flow logging.Get the enabledFilteringCriteria property: Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action.Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.format()Get the format property: Parameters that define the flow log format.static FlowLogInformationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlowLogInformationInner from the JsonReader.identity()Get the identity property: FlowLog resource Managed Identity.Get the retentionPolicy property: Parameters that define the retention policy for flow log.Get the storageId property: ID of the storage account which is used to store the flow log.Get the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(boolean enabled) Set the enabled property: Flag to enable/disable flow logging.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.withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration) Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.withFormat(FlowLogFormatParameters format) Set the format property: Parameters that define the flow log format.withIdentity(ManagedServiceIdentity identity) Set the identity property: FlowLog resource Managed Identity.withRetentionPolicy(RetentionPolicyParameters retentionPolicy) Set the retentionPolicy property: Parameters that define the retention policy for flow log.withStorageId(String storageId) Set the storageId property: ID of the storage account which is used to store the flow log.withTargetResourceId(String targetResourceId) Set the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .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
-
FlowLogInformationInner
public FlowLogInformationInner()Creates an instance of FlowLogInformationInner class.
-
-
Method Details
-
targetResourceId
Get the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .- Returns:
- the targetResourceId value.
-
withTargetResourceId
Set the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .- Parameters:
targetResourceId- the targetResourceId value to set.- Returns:
- the FlowLogInformationInner object itself.
-
flowAnalyticsConfiguration
Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.- Returns:
- the flowAnalyticsConfiguration value.
-
withFlowAnalyticsConfiguration
public FlowLogInformationInner withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration) Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.- Parameters:
flowAnalyticsConfiguration- the flowAnalyticsConfiguration value to set.- Returns:
- the FlowLogInformationInner object itself.
-
identity
Get the identity property: FlowLog resource Managed Identity.- Returns:
- the identity value.
-
withIdentity
Set the identity property: FlowLog resource Managed Identity.- Parameters:
identity- the identity value to set.- Returns:
- the FlowLogInformationInner object itself.
-
storageId
Get the storageId property: ID of the storage account which is used to store the flow log.- Returns:
- the storageId value.
-
withStorageId
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 FlowLogInformationInner object itself.
-
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
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 FlowLogInformationInner object itself.
-
enabled
public boolean enabled()Get the enabled property: Flag to enable/disable flow logging.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Flag to enable/disable flow logging.- Parameters:
enabled- the enabled value to set.- Returns:
- the FlowLogInformationInner object itself.
-
retentionPolicy
Get the retentionPolicy property: Parameters that define the retention policy for flow log.- Returns:
- the retentionPolicy value.
-
withRetentionPolicy
Set the retentionPolicy property: Parameters that define the retention policy for flow log.- Parameters:
retentionPolicy- the retentionPolicy value to set.- Returns:
- the FlowLogInformationInner object itself.
-
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 FlowLogInformationInner 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<FlowLogInformationInner>- Throws:
IOException
-
fromJson
public static FlowLogInformationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FlowLogInformationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlowLogInformationInner 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 FlowLogInformationInner.
-