FlowLogPropertiesFormat Class
- java.
lang. Object - com.
azure. resourcemanager. network. fluent. models. FlowLogPropertiesFormat
- com.
Implements
public final class FlowLogPropertiesFormat
implements JsonSerializable<FlowLogPropertiesFormat>
Parameters that define the configuration of flow log.
Constructor Summary
| Constructor | Description |
|---|---|
| FlowLogPropertiesFormat() |
Creates an instance of Flow |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enabled()
Get the enabled property: Flag to enable/disable flow logging. |
| String |
enabledFilteringCriteria()
Get the enabled |
|
Traffic |
flowAnalyticsConfiguration()
Get the flow |
|
Flow |
format()
Get the format property: Parameters that define the flow log format. |
|
static
Flow |
fromJson(JsonReader jsonReader)
Reads an instance of Flow |
|
Provisioning |
provisioningState()
Get the provisioning |
| String |
recordTypes()
Get the record |
|
Retention |
retentionPolicy()
Get the retention |
| String |
storageId()
Get the storage |
| String |
targetResourceGuid()
Get the target |
| String |
targetResourceId()
Get the target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Flow |
withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable flow logging. |
|
Flow |
withEnabledFilteringCriteria(String enabledFilteringCriteria)
Set the enabled |
|
Flow |
withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration)
Set the flow |
|
Flow |
withFormat(FlowLogFormatParameters format)
Set the format property: Parameters that define the flow log format. |
|
Flow |
withRecordTypes(String recordTypes)
Set the record |
|
Flow |
withRetentionPolicy(RetentionPolicyParameters retentionPolicy)
Set the retention |
|
Flow |
withStorageId(String storageId)
Set the storage |
|
Flow |
withTargetResourceId(String targetResourceId)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
FlowLogPropertiesFormat
public FlowLogPropertiesFormat()
Creates an instance of FlowLogPropertiesFormat class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Flag to enable/disable flow logging.
Returns:
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:
flowAnalyticsConfiguration
public TrafficAnalyticsProperties flowAnalyticsConfiguration()
Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.
Returns:
format
public FlowLogFormatParameters format()
Get the format property: Parameters that define the flow log format.
Returns:
fromJson
public static FlowLogPropertiesFormat fromJson(JsonReader jsonReader)
Reads an instance of FlowLogPropertiesFormat from the JsonReader.
Parameters:
Returns:
Throws:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the flow log.
Returns:
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:
retentionPolicy
public RetentionPolicyParameters retentionPolicy()
Get the retentionPolicy property: Parameters that define the retention policy for flow log.
Returns:
storageId
public String storageId()
Get the storageId property: ID of the storage account which is used to store the flow log.
Returns:
targetResourceGuid
public String targetResourceGuid()
Get the targetResourceGuid property: Guid of network security group to which flow log will be applied.
Returns:
targetResourceId
public String targetResourceId()
Get the targetResourceId property: ID of network security group to which flow log will be applied.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public FlowLogPropertiesFormat withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable flow logging.
Parameters:
Returns:
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:
Returns:
withFlowAnalyticsConfiguration
public FlowLogPropertiesFormat withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration)
Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.
Parameters:
Returns:
withFormat
public FlowLogPropertiesFormat withFormat(FlowLogFormatParameters format)
Set the format property: Parameters that define the flow log format.
Parameters:
Returns:
withRecordTypes
public FlowLogPropertiesFormat 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:
Returns:
withRetentionPolicy
public FlowLogPropertiesFormat withRetentionPolicy(RetentionPolicyParameters retentionPolicy)
Set the retentionPolicy property: Parameters that define the retention policy for flow log.
Parameters:
Returns:
withStorageId
public FlowLogPropertiesFormat withStorageId(String storageId)
Set the storageId property: ID of the storage account which is used to store the flow log.
Parameters:
Returns:
withTargetResourceId
public FlowLogPropertiesFormat withTargetResourceId(String targetResourceId)
Set the targetResourceId property: ID of network security group to which flow log will be applied.
Parameters:
Returns: