Class FlowLogInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.network.fluent.models.FlowLogInner
-
public final class FlowLogInner extends com.azure.core.management.ResourceA flow log resource.
-
-
Constructor Summary
Constructors Constructor Description FlowLogInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Booleanenabled()Get the enabled property: Flag to enable/disable flow logging.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.TrafficAnalyticsPropertiesflowAnalyticsConfiguration()Get the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.FlowLogFormatParametersformat()Get the format property: Parameters that define the flow log format.Stringid()Get the id property: Resource ID.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the flow log.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.StringtargetResourceGuid()Get the targetResourceGuid property: Guid of network security group to which flow log will be applied.StringtargetResourceId()Get the targetResourceId property: ID of network security group to which flow log will be applied.voidvalidate()Validates the instance.FlowLogInnerwithEnabled(Boolean enabled)Set the enabled property: Flag to enable/disable flow logging.FlowLogInnerwithFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration)Set the flowAnalyticsConfiguration property: Parameters that define the configuration of traffic analytics.FlowLogInnerwithFormat(FlowLogFormatParameters format)Set the format property: Parameters that define the flow log format.FlowLogInnerwithId(String id)Set the id property: Resource ID.FlowLogInnerwithLocation(String location)FlowLogInnerwithRetentionPolicy(RetentionPolicyParameters retentionPolicy)Set the retentionPolicy property: Parameters that define the retention policy for flow log.FlowLogInnerwithStorageId(String storageId)Set the storageId property: ID of the storage account which is used to store the flow log.FlowLogInnerwithTags(Map<String,String> tags)FlowLogInnerwithTargetResourceId(String targetResourceId)Set the targetResourceId property: ID of network security group to which flow log will be applied.
-
-
-
Method Detail
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
public String id()
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
public FlowLogInner withId(String id)
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the FlowLogInner object itself.
-
withLocation
public FlowLogInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public FlowLogInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
targetResourceId
public String targetResourceId()
Get the targetResourceId property: ID of network security group to which flow log will be applied.- Returns:
- the targetResourceId value.
-
withTargetResourceId
public FlowLogInner withTargetResourceId(String targetResourceId)
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
public String targetResourceGuid()
Get the targetResourceGuid property: Guid of network security group to which flow log will be applied.- Returns:
- the targetResourceGuid 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.
-
withStorageId
public FlowLogInner 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 FlowLogInner object itself.
-
enabled
public Boolean enabled()
Get the enabled property: Flag to enable/disable flow logging.- Returns:
- the enabled value.
-
withEnabled
public FlowLogInner withEnabled(Boolean enabled)
Set the enabled property: Flag to enable/disable flow logging.- Parameters:
enabled- the enabled value to set.- Returns:
- the FlowLogInner 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 FlowLogInner 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 FlowLogInner object itself.
-
format
public FlowLogFormatParameters format()
Get the format property: Parameters that define the flow log format.- Returns:
- the format value.
-
withFormat
public FlowLogInner withFormat(FlowLogFormatParameters format)
Set the format property: Parameters that define the flow log format.- Parameters:
format- the format value to set.- Returns:
- the FlowLogInner object itself.
-
flowAnalyticsConfiguration
public TrafficAnalyticsProperties 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
public ProvisioningState 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.
-
-