Share via


FlowLogInformationInner Class

  • java.lang.Object
    • com.azure.resourcemanager.network.fluent.models.FlowLogInformationInner

Implements

public final class FlowLogInformationInner
implements JsonSerializable<FlowLogInformationInner>

Information on the configuration of flow log and traffic analytics (optional) .

Constructor Summary

Constructor Description
FlowLogInformationInner()

Creates an instance of FlowLogInformationInner class.

Method Summary

Modifier and Type Method and Description
boolean enabled()

Get the enabled property: Flag to enable/disable flow logging.

String enabledFilteringCriteria()

Get the enabledFilteringCriteria property: Optional field to filter network traffic logs based on SrcIP, SrcPort, DstIP, DstPort, Protocol, Encryption, Direction and Action.

TrafficAnalyticsProperties flowAnalyticsConfiguration()

Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.

FlowLogFormatParameters format()

Get the format property: Parameters that define the flow log format.

static FlowLogInformationInner fromJson(JsonReader jsonReader)

Reads an instance of FlowLogInformationInner from the JsonReader.

ManagedServiceIdentity identity()

Get the identity property: FlowLog resource Managed Identity.

String recordTypes()

Get the recordTypes property: Optional field to filter network traffic logs based on flow states.

RetentionPolicyParameters retentionPolicy()

Get the retentionPolicy property: Parameters that define the retention policy for flow log.

String storageId()

Get the storageId property: ID of the storage account which is used to store the flow log.

String targetResourceId()

Get the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FlowLogInformationInner withEnabled(boolean enabled)

Set the enabled property: Flag to enable/disable flow logging.

FlowLogInformationInner 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.

FlowLogInformationInner withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration)

Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.

FlowLogInformationInner withFormat(FlowLogFormatParameters format)

Set the format property: Parameters that define the flow log format.

FlowLogInformationInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: FlowLog resource Managed Identity.

FlowLogInformationInner withRecordTypes(String recordTypes)

Set the recordTypes property: Optional field to filter network traffic logs based on flow states.

FlowLogInformationInner withRetentionPolicy(RetentionPolicyParameters retentionPolicy)

Set the retentionPolicy property: Parameters that define the retention policy for flow log.

FlowLogInformationInner withStorageId(String storageId)

Set the storageId property: ID of the storage account which is used to store the flow log.

FlowLogInformationInner withTargetResourceId(String targetResourceId)

Set the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .

Methods inherited from java.lang.Object

Constructor Details

FlowLogInformationInner

public FlowLogInformationInner()

Creates an instance of FlowLogInformationInner class.

Method Details

enabled

public boolean enabled()

Get the enabled property: Flag to enable/disable flow logging.

Returns:

the enabled value.

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.

flowAnalyticsConfiguration

public TrafficAnalyticsProperties flowAnalyticsConfiguration()

Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.

Returns:

the flowAnalyticsConfiguration value.

format

public FlowLogFormatParameters format()

Get the format property: Parameters that define the flow log format.

Returns:

the format value.

fromJson

public static FlowLogInformationInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

identity

public ManagedServiceIdentity identity()

Get the identity property: FlowLog resource Managed Identity.

Returns:

the identity value.

recordTypes

public String recordTypes()

Get the recordTypes property: Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged.

Returns:

the recordTypes value.

retentionPolicy

public RetentionPolicyParameters retentionPolicy()

Get the retentionPolicy property: Parameters that define the retention policy for flow log.

Returns:

the retentionPolicy 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.

targetResourceId

public String targetResourceId()

Get the targetResourceId property: The ID of the resource to configure for flow log and traffic analytics (optional) .

Returns:

the targetResourceId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public FlowLogInformationInner withEnabled(boolean enabled)

Set the enabled property: Flag to enable/disable flow logging.

Parameters:

enabled - the enabled value to set.

Returns:

the FlowLogInformationInner object itself.

withEnabledFilteringCriteria

public FlowLogInformationInner 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 FlowLogInformationInner object itself.

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.

withFormat

public FlowLogInformationInner withFormat(FlowLogFormatParameters format)

Set the format property: Parameters that define the flow log format.

Parameters:

format - the format value to set.

Returns:

the FlowLogInformationInner object itself.

withIdentity

public FlowLogInformationInner withIdentity(ManagedServiceIdentity identity)

Set the identity property: FlowLog resource Managed Identity.

Parameters:

identity - the identity value to set.

Returns:

the FlowLogInformationInner object itself.

withRecordTypes

public FlowLogInformationInner withRecordTypes(String recordTypes)

Set the recordTypes property: Optional field to filter network traffic logs based on flow states. Value of this field could be any comma separated combination string of letters B,C,E or D. B represents Begin, when a flow is created. C represents Continue for an ongoing flow generated at every five-minute interval. E represents End, when a flow is terminated. D represents Deny, when a flow is denied. If not specified, all network traffic will be logged.

Parameters:

recordTypes - the recordTypes value to set.

Returns:

the FlowLogInformationInner object itself.

withRetentionPolicy

public FlowLogInformationInner 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 FlowLogInformationInner object itself.

withStorageId

public FlowLogInformationInner 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 FlowLogInformationInner object itself.

withTargetResourceId

public FlowLogInformationInner withTargetResourceId(String targetResourceId)

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.

Applies to