Class FlowLogProperties
- java.lang.Object
-
- com.azure.resourcemanager.network.fluent.models.FlowLogProperties
-
public final class FlowLogProperties extends Object
Parameters that define the configuration of flow log.
-
-
Constructor Summary
Constructors Constructor Description FlowLogProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenabled()Get the enabled property: Flag to enable/disable flow logging.FlowLogFormatParametersformat()Get the format property: Parameters that define the flow log format.RetentionPolicyParametersretentionPolicy()Get the retentionPolicy property: Parameters that define the retention policy for flow log.StringstorageId()Get the storageId property: ID of the storage account which is used to store the flow log.voidvalidate()Validates the instance.FlowLogPropertieswithEnabled(boolean enabled)Set the enabled property: Flag to enable/disable flow logging.FlowLogPropertieswithFormat(FlowLogFormatParameters format)Set the format property: Parameters that define the flow log format.FlowLogPropertieswithRetentionPolicy(RetentionPolicyParameters retentionPolicy)Set the retentionPolicy property: Parameters that define the retention policy for flow log.FlowLogPropertieswithStorageId(String storageId)Set the storageId property: ID of the storage account which is used to store the flow log.
-
-
-
Method Detail
-
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 FlowLogProperties 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 FlowLogProperties object itself.
-
enabled
public boolean enabled()
Get the enabled property: Flag to enable/disable flow logging.- Returns:
- the enabled value.
-
withEnabled
public FlowLogProperties withEnabled(boolean enabled)
Set the enabled property: Flag to enable/disable flow logging.- Parameters:
enabled- the enabled value to set.- Returns:
- the FlowLogProperties 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 FlowLogProperties 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 FlowLogProperties object itself.
-
format
public FlowLogFormatParameters format()
Get the format property: Parameters that define the flow log format.- Returns:
- the format value.
-
withFormat
public FlowLogProperties withFormat(FlowLogFormatParameters format)
Set the format property: Parameters that define the flow log format.- Parameters:
format- the format value to set.- Returns:
- the FlowLogProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-