Class NetworkSecurityPerimeter
java.lang.Object
com.azure.resourcemanager.storage.models.NetworkSecurityPerimeter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityPerimeter>
public final class NetworkSecurityPerimeter
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityPerimeter>
NetworkSecurityPerimeter related information.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkSecurityPerimeter class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkSecurityPerimeterfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkSecurityPerimeter from the JsonReader.id()Get the id property: The ARM identifier of the resource.location()Get the location property: Location of the resource.Get the perimeterGuid property: Guid of the resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: The ARM identifier of the resource.withLocation(String location) Set the location property: Location of the resource.withPerimeterGuid(String perimeterGuid) Set the perimeterGuid property: Guid 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
-
NetworkSecurityPerimeter
public NetworkSecurityPerimeter()Creates an instance of NetworkSecurityPerimeter class.
-
-
Method Details
-
id
-
withId
Set the id property: The ARM identifier of the resource.- Parameters:
id- the id value to set.- Returns:
- the NetworkSecurityPerimeter object itself.
-
perimeterGuid
Get the perimeterGuid property: Guid of the resource.- Returns:
- the perimeterGuid value.
-
withPerimeterGuid
Set the perimeterGuid property: Guid of the resource.- Parameters:
perimeterGuid- the perimeterGuid value to set.- Returns:
- the NetworkSecurityPerimeter object itself.
-
location
Get the location property: Location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: Location of the resource.- Parameters:
location- the location value to set.- Returns:
- the NetworkSecurityPerimeter 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<NetworkSecurityPerimeter>- Throws:
IOException
-
fromJson
public static NetworkSecurityPerimeter fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkSecurityPerimeter from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkSecurityPerimeter 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 NetworkSecurityPerimeter.
-