Class NetworkSecurityPerimeterConfigurationPropertiesProfile
java.lang.Object
com.azure.resourcemanager.storage.models.NetworkSecurityPerimeterConfigurationPropertiesProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityPerimeterConfigurationPropertiesProfile>
public final class NetworkSecurityPerimeterConfigurationPropertiesProfile
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityPerimeterConfigurationPropertiesProfile>
Network Security Perimeter profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkSecurityPerimeterConfigurationPropertiesProfile 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: Diagnostic settings version.Get the enabledLogCategories property: Enabled logging categories.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkSecurityPerimeterConfigurationPropertiesProfile from the JsonReader.name()Get the name property: Name of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessRules(List<NspAccessRule> accessRules) Set the accessRules property: List of Access Rules.withAccessRulesVersion(Float accessRulesVersion) Set the accessRulesVersion property: Current access rules version.withDiagnosticSettingsVersion(Float diagnosticSettingsVersion) Set the diagnosticSettingsVersion property: Diagnostic settings version.withEnabledLogCategories(List<String> enabledLogCategories) Set the enabledLogCategories property: Enabled logging categories.Set the name property: Name of the resource.Methods inherited from class 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
-
NetworkSecurityPerimeterConfigurationPropertiesProfile
public NetworkSecurityPerimeterConfigurationPropertiesProfile()Creates an instance of NetworkSecurityPerimeterConfigurationPropertiesProfile class.
-
-
Method Details
-
name
-
withName
Set the name property: Name of the resource.- Parameters:
name- the name value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesProfile object itself.
-
accessRulesVersion
Get the accessRulesVersion property: Current access rules version.- Returns:
- the accessRulesVersion value.
-
withAccessRulesVersion
public NetworkSecurityPerimeterConfigurationPropertiesProfile withAccessRulesVersion(Float accessRulesVersion) Set the accessRulesVersion property: Current access rules version.- Parameters:
accessRulesVersion- the accessRulesVersion value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesProfile object itself.
-
accessRules
Get the accessRules property: List of Access Rules.- Returns:
- the accessRules value.
-
withAccessRules
public NetworkSecurityPerimeterConfigurationPropertiesProfile withAccessRules(List<NspAccessRule> accessRules) Set the accessRules property: List of Access Rules.- Parameters:
accessRules- the accessRules value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesProfile object itself.
-
diagnosticSettingsVersion
Get the diagnosticSettingsVersion property: Diagnostic settings version.- Returns:
- the diagnosticSettingsVersion value.
-
withDiagnosticSettingsVersion
public NetworkSecurityPerimeterConfigurationPropertiesProfile withDiagnosticSettingsVersion(Float diagnosticSettingsVersion) Set the diagnosticSettingsVersion property: Diagnostic settings version.- Parameters:
diagnosticSettingsVersion- the diagnosticSettingsVersion value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesProfile object itself.
-
enabledLogCategories
-
withEnabledLogCategories
public NetworkSecurityPerimeterConfigurationPropertiesProfile withEnabledLogCategories(List<String> enabledLogCategories) Set the enabledLogCategories property: Enabled logging categories.- Parameters:
enabledLogCategories- the enabledLogCategories value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesProfile 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<NetworkSecurityPerimeterConfigurationPropertiesProfile>- Throws:
IOException
-
fromJson
public static NetworkSecurityPerimeterConfigurationPropertiesProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkSecurityPerimeterConfigurationPropertiesProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkSecurityPerimeterConfigurationPropertiesProfile 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 NetworkSecurityPerimeterConfigurationPropertiesProfile.
-