Class TrafficAnalyticsConfigurationProperties
java.lang.Object
com.azure.resourcemanager.network.models.TrafficAnalyticsConfigurationProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrafficAnalyticsConfigurationProperties>
public final class TrafficAnalyticsConfigurationProperties
extends Object
implements com.azure.json.JsonSerializable<TrafficAnalyticsConfigurationProperties>
Parameters that define the configuration of traffic analytics.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TrafficAnalyticsConfigurationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Flag to enable/disable traffic analytics.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrafficAnalyticsConfigurationProperties from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Flag to enable/disable traffic analytics.withTrafficAnalyticsInterval(Integer trafficAnalyticsInterval) Set the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.withWorkspaceId(String workspaceId) Set the workspaceId property: The resource guid of the attached workspace.withWorkspaceRegion(String workspaceRegion) Set the workspaceRegion property: The location of the attached workspace.withWorkspaceResourceId(String workspaceResourceId) Set the workspaceResourceId property: Resource Id of the attached workspace.Get the workspaceId property: The resource guid of the attached workspace.Get the workspaceRegion property: The location of the attached workspace.Get the workspaceResourceId property: Resource Id of the attached workspace.Methods 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
-
TrafficAnalyticsConfigurationProperties
public TrafficAnalyticsConfigurationProperties()Creates an instance of TrafficAnalyticsConfigurationProperties class.
-
-
Method Details
-
enabled
Get the enabled property: Flag to enable/disable traffic analytics.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Flag to enable/disable traffic analytics.- Parameters:
enabled- the enabled value to set.- Returns:
- the TrafficAnalyticsConfigurationProperties object itself.
-
workspaceId
Get the workspaceId property: The resource guid of the attached workspace.- Returns:
- the workspaceId value.
-
withWorkspaceId
Set the workspaceId property: The resource guid of the attached workspace.- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the TrafficAnalyticsConfigurationProperties object itself.
-
workspaceRegion
Get the workspaceRegion property: The location of the attached workspace.- Returns:
- the workspaceRegion value.
-
withWorkspaceRegion
Set the workspaceRegion property: The location of the attached workspace.- Parameters:
workspaceRegion- the workspaceRegion value to set.- Returns:
- the TrafficAnalyticsConfigurationProperties object itself.
-
workspaceResourceId
Get the workspaceResourceId property: Resource Id of the attached workspace.- Returns:
- the workspaceResourceId value.
-
withWorkspaceResourceId
Set the workspaceResourceId property: Resource Id of the attached workspace.- Parameters:
workspaceResourceId- the workspaceResourceId value to set.- Returns:
- the TrafficAnalyticsConfigurationProperties object itself.
-
trafficAnalyticsInterval
Get the trafficAnalyticsInterval property: The interval in minutes which would decide how frequently TA service should do flow analytics.- Returns:
- the trafficAnalyticsInterval value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrafficAnalyticsConfigurationProperties>- Throws:
IOException
-
fromJson
public static TrafficAnalyticsConfigurationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-