Class NetworkSecurityPerimeter
java.lang.Object
com.azure.resourcemanager.search.models.NetworkSecurityPerimeter
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityPerimeter>
public final class NetworkSecurityPerimeter
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityPerimeter>
Information about a network security perimeter (NSP).
-
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: Fully qualified Azure resource ID of the NSP resource.location()Get the location property: Location of the network security perimeter.Get the perimeterGuid property: Universal unique ID (UUID) of the network security perimeter.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the id property: Fully qualified Azure resource ID of the NSP resource.withLocation(String location) Set the location property: Location of the network security perimeter.withPerimeterGuid(UUID perimeterGuid) Set the perimeterGuid property: Universal unique ID (UUID) of the network security perimeter.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
-
NetworkSecurityPerimeter
public NetworkSecurityPerimeter()Creates an instance of NetworkSecurityPerimeter class.
-
-
Method Details
-
id
Get the id property: Fully qualified Azure resource ID of the NSP resource.- Returns:
- the id value.
-
withId
Set the id property: Fully qualified Azure resource ID of the NSP resource.- Parameters:
id- the id value to set.- Returns:
- the NetworkSecurityPerimeter object itself.
-
perimeterGuid
Get the perimeterGuid property: Universal unique ID (UUID) of the network security perimeter.- Returns:
- the perimeterGuid value.
-
withPerimeterGuid
Set the perimeterGuid property: Universal unique ID (UUID) of the network security perimeter.- Parameters:
perimeterGuid- the perimeterGuid value to set.- Returns:
- the NetworkSecurityPerimeter object itself.
-
location
Get the location property: Location of the network security perimeter.- Returns:
- the location value.
-
withLocation
Set the location property: Location of the network security perimeter.- 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.
-