Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.network.implementation; import com.microsoft.azure.management.network.RetentionPolicyParameters; import com.microsoft.azure.management.network.FlowLogFormatParameters; import com.microsoft.azure.management.network.TrafficAnalyticsProperties; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Information on the configuration of flow log and traffic analytics (optional) .
/** * Information on the configuration of flow log and traffic analytics * (optional) . */
@JsonFlatten public class FlowLogInformationInner {
The ID of the resource to configure for flow log and traffic analytics (optional) .
/** * The ID of the resource to configure for flow log and traffic analytics * (optional) . */
@JsonProperty(value = "targetResourceId", required = true) private String targetResourceId;
ID of the storage account which is used to store the flow log.
/** * ID of the storage account which is used to store the flow log. */
@JsonProperty(value = "properties.storageId", required = true) private String storageId;
Flag to enable/disable flow logging.
/** * Flag to enable/disable flow logging. */
@JsonProperty(value = "properties.enabled", required = true) private boolean enabled;
Parameters that define the retention policy for flow log.
/** * Parameters that define the retention policy for flow log. */
@JsonProperty(value = "properties.retentionPolicy") private RetentionPolicyParameters retentionPolicy;
Parameters that define the flow log format.
/** * Parameters that define the flow log format. */
@JsonProperty(value = "properties.format") private FlowLogFormatParameters format;
Parameters that define the configuration of traffic analytics.
/** * Parameters that define the configuration of traffic analytics. */
@JsonProperty(value = "flowAnalyticsConfiguration") private TrafficAnalyticsProperties flowAnalyticsConfiguration;
Get the ID of the resource to configure for flow log and traffic analytics (optional) .
Returns:the targetResourceId value
/** * Get the ID of the resource to configure for flow log and traffic analytics (optional) . * * @return the targetResourceId value */
public String targetResourceId() { return this.targetResourceId; }
Set the ID of the resource to configure for flow log and traffic analytics (optional) .
Params:
  • targetResourceId – the targetResourceId value to set
Returns:the FlowLogInformationInner object itself.
/** * Set the ID of the resource to configure for flow log and traffic analytics (optional) . * * @param targetResourceId the targetResourceId value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withTargetResourceId(String targetResourceId) { this.targetResourceId = targetResourceId; return this; }
Get iD of the storage account which is used to store the flow log.
Returns:the storageId value
/** * Get iD of the storage account which is used to store the flow log. * * @return the storageId value */
public String storageId() { return this.storageId; }
Set iD of the storage account which is used to store the flow log.
Params:
  • storageId – the storageId value to set
Returns:the FlowLogInformationInner object itself.
/** * Set iD of the storage account which is used to store the flow log. * * @param storageId the storageId value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withStorageId(String storageId) { this.storageId = storageId; return this; }
Get flag to enable/disable flow logging.
Returns:the enabled value
/** * Get flag to enable/disable flow logging. * * @return the enabled value */
public boolean enabled() { return this.enabled; }
Set flag to enable/disable flow logging.
Params:
  • enabled – the enabled value to set
Returns:the FlowLogInformationInner object itself.
/** * Set flag to enable/disable flow logging. * * @param enabled the enabled value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withEnabled(boolean enabled) { this.enabled = enabled; return this; }
Get parameters that define the retention policy for flow log.
Returns:the retentionPolicy value
/** * Get parameters that define the retention policy for flow log. * * @return the retentionPolicy value */
public RetentionPolicyParameters retentionPolicy() { return this.retentionPolicy; }
Set parameters that define the retention policy for flow log.
Params:
  • retentionPolicy – the retentionPolicy value to set
Returns:the FlowLogInformationInner object itself.
/** * Set parameters that define the retention policy for flow log. * * @param retentionPolicy the retentionPolicy value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withRetentionPolicy(RetentionPolicyParameters retentionPolicy) { this.retentionPolicy = retentionPolicy; return this; }
Get parameters that define the flow log format.
Returns:the format value
/** * Get parameters that define the flow log format. * * @return the format value */
public FlowLogFormatParameters format() { return this.format; }
Set parameters that define the flow log format.
Params:
  • format – the format value to set
Returns:the FlowLogInformationInner object itself.
/** * Set parameters that define the flow log format. * * @param format the format value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withFormat(FlowLogFormatParameters format) { this.format = format; return this; }
Get parameters that define the configuration of traffic analytics.
Returns:the flowAnalyticsConfiguration value
/** * Get parameters that define the configuration of traffic analytics. * * @return the flowAnalyticsConfiguration value */
public TrafficAnalyticsProperties flowAnalyticsConfiguration() { return this.flowAnalyticsConfiguration; }
Set parameters that define the configuration of traffic analytics.
Params:
  • flowAnalyticsConfiguration – the flowAnalyticsConfiguration value to set
Returns:the FlowLogInformationInner object itself.
/** * Set parameters that define the configuration of traffic analytics. * * @param flowAnalyticsConfiguration the flowAnalyticsConfiguration value to set * @return the FlowLogInformationInner object itself. */
public FlowLogInformationInner withFlowAnalyticsConfiguration(TrafficAnalyticsProperties flowAnalyticsConfiguration) { this.flowAnalyticsConfiguration = flowAnalyticsConfiguration; return this; } }