Class NetworkSecurityProfile
java.lang.Object
com.azure.resourcemanager.search.models.NetworkSecurityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityProfile>
public final class NetworkSecurityProfile
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityProfile>
Network security perimeter configuration profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkSecurityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessRules property: List of Access Rules.Get the accessRulesVersion property: Current access rules version.Get the diagnosticSettingsVersion property: Current diagnostic settings version.Get the enabledLogCategories property: List of log categories that are enabled.static NetworkSecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkSecurityProfile from the JsonReader.name()Get the name property: Name of the profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessRules(List<AccessRule> accessRules) Set the accessRules property: List of Access Rules.withAccessRulesVersion(Integer accessRulesVersion) Set the accessRulesVersion property: Current access rules version.withDiagnosticSettingsVersion(Integer diagnosticSettingsVersion) Set the diagnosticSettingsVersion property: Current diagnostic settings version.withEnabledLogCategories(List<String> enabledLogCategories) Set the enabledLogCategories property: List of log categories that are enabled.Set the name property: Name of the profile.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
-
NetworkSecurityProfile
public NetworkSecurityProfile()Creates an instance of NetworkSecurityProfile class.
-
-
Method Details
-
name
Get the name property: Name of the profile.- Returns:
- the name value.
-
withName
Set the name property: Name of the profile.- Parameters:
name- the name value to set.- Returns:
- the NetworkSecurityProfile object itself.
-
accessRulesVersion
Get the accessRulesVersion property: Current access rules version.- Returns:
- the accessRulesVersion value.
-
withAccessRulesVersion
Set the accessRulesVersion property: Current access rules version.- Parameters:
accessRulesVersion- the accessRulesVersion value to set.- Returns:
- the NetworkSecurityProfile object itself.
-
accessRules
Get the accessRules property: List of Access Rules.- Returns:
- the accessRules value.
-
withAccessRules
Set the accessRules property: List of Access Rules.- Parameters:
accessRules- the accessRules value to set.- Returns:
- the NetworkSecurityProfile object itself.
-
diagnosticSettingsVersion
Get the diagnosticSettingsVersion property: Current diagnostic settings version.- Returns:
- the diagnosticSettingsVersion value.
-
withDiagnosticSettingsVersion
Set the diagnosticSettingsVersion property: Current diagnostic settings version.- Parameters:
diagnosticSettingsVersion- the diagnosticSettingsVersion value to set.- Returns:
- the NetworkSecurityProfile object itself.
-
enabledLogCategories
Get the enabledLogCategories property: List of log categories that are enabled.- Returns:
- the enabledLogCategories value.
-
withEnabledLogCategories
Set the enabledLogCategories property: List of log categories that are enabled.- Parameters:
enabledLogCategories- the enabledLogCategories value to set.- Returns:
- the NetworkSecurityProfile 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<NetworkSecurityProfile>- Throws:
IOException
-
fromJson
public static NetworkSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkSecurityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkSecurityProfile 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 NetworkSecurityProfile.
-