Class FirewallPolicyLogAnalyticsWorkspace
java.lang.Object
com.azure.resourcemanager.network.models.FirewallPolicyLogAnalyticsWorkspace
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FirewallPolicyLogAnalyticsWorkspace>
public final class FirewallPolicyLogAnalyticsWorkspace
extends Object
implements com.azure.json.JsonSerializable<FirewallPolicyLogAnalyticsWorkspace>
Log Analytics Workspace for Firewall Policy Insights.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FirewallPolicyLogAnalyticsWorkspace class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FirewallPolicyLogAnalyticsWorkspace from the JsonReader.region()Get the region property: Region to configure the Workspace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRegion(String region) Set the region property: Region to configure the Workspace.withWorkspaceId(com.azure.core.management.SubResource workspaceId) Set the workspaceId property: The workspace Id for Firewall Policy Insights.com.azure.core.management.SubResourceGet the workspaceId property: The workspace Id for Firewall Policy Insights.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
-
FirewallPolicyLogAnalyticsWorkspace
public FirewallPolicyLogAnalyticsWorkspace()Creates an instance of FirewallPolicyLogAnalyticsWorkspace class.
-
-
Method Details
-
region
Get the region property: Region to configure the Workspace.- Returns:
- the region value.
-
withRegion
Set the region property: Region to configure the Workspace.- Parameters:
region- the region value to set.- Returns:
- the FirewallPolicyLogAnalyticsWorkspace object itself.
-
workspaceId
public com.azure.core.management.SubResource workspaceId()Get the workspaceId property: The workspace Id for Firewall Policy Insights.- Returns:
- the workspaceId value.
-
withWorkspaceId
public FirewallPolicyLogAnalyticsWorkspace withWorkspaceId(com.azure.core.management.SubResource workspaceId) Set the workspaceId property: The workspace Id for Firewall Policy Insights.- Parameters:
workspaceId- the workspaceId value to set.- Returns:
- the FirewallPolicyLogAnalyticsWorkspace 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<FirewallPolicyLogAnalyticsWorkspace>- Throws:
IOException
-
fromJson
public static FirewallPolicyLogAnalyticsWorkspace fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FirewallPolicyLogAnalyticsWorkspace from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FirewallPolicyLogAnalyticsWorkspace 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 FirewallPolicyLogAnalyticsWorkspace.
-