Class FlowLogInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.network.fluent.models.FlowLogInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class FlowLogInner
extends com.azure.core.management.Resource
A flow log resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()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.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.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 FlowLogInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlowLogInner from the JsonReader.id()Get the id property: Resource ID.identity()Get the identity property: FlowLog resource Managed Identity.name()Get the name property: The name of the resource.Get the provisioningState property: The provisioning state of the flow log.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 targetResourceGuid property: Guid of network security group to which flow log will be applied.Get the targetResourceId property: ID of network security group to which flow log will be applied.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.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.Set the id property: Resource ID.withIdentity(ManagedServiceIdentity identity) Set the identity property: FlowLog resource Managed Identity.withLocation(String location) 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: ID of network security group to which flow log will be applied.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods 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
-
FlowLogInner
public FlowLogInner()Creates an instance of FlowLogInner class.
-
-
Method Details
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
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 FlowLogInner object itself.
-
id
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the FlowLogInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
targetResourceId
Get the targetResourceId property: ID of network security group to which flow log will be applied.- Returns:
- the targetResourceId value.
-
withTargetResourceId
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 FlowLogInner object itself.
-
targetResourceGuid
Get the targetResourceGuid property: Guid of network security group to which flow log will be applied.- Returns:
- the targetResourceGuid value.
-
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 FlowLogInner 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 FlowLogInner object itself.
-
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 FlowLogInner 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 FlowLogInner 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 FlowLogInner object itself.
-
flowAnalyticsConfiguration
Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.- Returns:
- the flowAnalyticsConfiguration value.
-
withFlowAnalyticsConfiguration
public FlowLogInner withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration) Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.- Parameters:
flowAnalyticsConfiguration- the flowAnalyticsConfiguration value to set.- Returns:
- the FlowLogInner object itself.
-
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of FlowLogInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlowLogInner 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 FlowLogInner.
-