Condividi tramite


TrafficAnalyticsConfigurationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.TrafficAnalyticsConfigurationProperties

Implements

public final class TrafficAnalyticsConfigurationProperties
implements JsonSerializable<TrafficAnalyticsConfigurationProperties>

Parameters that define the configuration of traffic analytics.

Constructor Summary

Constructor Description
TrafficAnalyticsConfigurationProperties()

Creates an instance of TrafficAnalyticsConfigurationProperties class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Flag to enable/disable traffic analytics.

static TrafficAnalyticsConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of TrafficAnalyticsConfigurationProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
Integer trafficAnalyticsInterval()

Get the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.

void validate()

Validates the instance.

TrafficAnalyticsConfigurationProperties withEnabled(Boolean enabled)

Set the enabled property: Flag to enable/disable traffic analytics.

TrafficAnalyticsConfigurationProperties withTrafficAnalyticsInterval(Integer trafficAnalyticsInterval)

Set the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.

TrafficAnalyticsConfigurationProperties withWorkspaceId(String workspaceId)

Set the workspaceId property: The resource guid of the attached workspace.

TrafficAnalyticsConfigurationProperties withWorkspaceRegion(String workspaceRegion)

Set the workspaceRegion property: The location of the attached workspace.

TrafficAnalyticsConfigurationProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: Resource Id of the attached workspace.

String workspaceId()

Get the workspaceId property: The resource guid of the attached workspace.

String workspaceRegion()

Get the workspaceRegion property: The location of the attached workspace.

String workspaceResourceId()

Get the workspaceResourceId property: Resource Id of the attached workspace.

Methods inherited from java.lang.Object

Constructor Details

TrafficAnalyticsConfigurationProperties

public TrafficAnalyticsConfigurationProperties()

Creates an instance of TrafficAnalyticsConfigurationProperties class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Flag to enable/disable traffic analytics.

Returns:

the enabled value.

fromJson

public static TrafficAnalyticsConfigurationProperties fromJson(JsonReader jsonReader)

Reads an instance of TrafficAnalyticsConfigurationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TrafficAnalyticsConfigurationProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the TrafficAnalyticsConfigurationProperties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trafficAnalyticsInterval

public Integer trafficAnalyticsInterval()

Get the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.

Returns:

the trafficAnalyticsInterval value.

validate

public void validate()

Validates the instance.

withEnabled

public TrafficAnalyticsConfigurationProperties withEnabled(Boolean enabled)

Set the enabled property: Flag to enable/disable traffic analytics.

Parameters:

enabled - the enabled value to set.

Returns:

the TrafficAnalyticsConfigurationProperties object itself.

withTrafficAnalyticsInterval

public TrafficAnalyticsConfigurationProperties withTrafficAnalyticsInterval(Integer trafficAnalyticsInterval)

Set the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.

Parameters:

trafficAnalyticsInterval - the trafficAnalyticsInterval value to set.

Returns:

the TrafficAnalyticsConfigurationProperties object itself.

withWorkspaceId

public TrafficAnalyticsConfigurationProperties withWorkspaceId(String workspaceId)

Set the workspaceId property: The resource guid of the attached workspace.

Parameters:

workspaceId - the workspaceId value to set.

Returns:

the TrafficAnalyticsConfigurationProperties object itself.

withWorkspaceRegion

public TrafficAnalyticsConfigurationProperties withWorkspaceRegion(String workspaceRegion)

Set the workspaceRegion property: The location of the attached workspace.

Parameters:

workspaceRegion - the workspaceRegion value to set.

Returns:

the TrafficAnalyticsConfigurationProperties object itself.

withWorkspaceResourceId

public TrafficAnalyticsConfigurationProperties withWorkspaceResourceId(String workspaceResourceId)

Set the workspaceResourceId property: Resource Id of the attached workspace.

Parameters:

workspaceResourceId - the workspaceResourceId value to set.

Returns:

the TrafficAnalyticsConfigurationProperties object itself.

workspaceId

public String workspaceId()

Get the workspaceId property: The resource guid of the attached workspace.

Returns:

the workspaceId value.

workspaceRegion

public String workspaceRegion()

Get the workspaceRegion property: The location of the attached workspace.

Returns:

the workspaceRegion value.

workspaceResourceId

public String workspaceResourceId()

Get the workspaceResourceId property: Resource Id of the attached workspace.

Returns:

the workspaceResourceId value.

Applies to