Class NetworkSecurityPerimeter

java.lang.Object
com.azure.resourcemanager.eventhubs.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 Details

    • NetworkSecurityPerimeter

      public NetworkSecurityPerimeter()
      Creates an instance of NetworkSecurityPerimeter class.
  • Method Details

    • id

      public String id()
      Get the id property: Fully qualified identifier of the resource.
      Returns:
      the id value.
    • withId

      public NetworkSecurityPerimeter withId(String id)
      Set the id property: Fully qualified identifier of the resource.
      Parameters:
      id - the id value to set.
      Returns:
      the NetworkSecurityPerimeter object itself.
    • perimeterGuid

      public String perimeterGuid()
      Get the perimeterGuid property: Guid of the resource.
      Returns:
      the perimeterGuid value.
    • withPerimeterGuid

      public NetworkSecurityPerimeter withPerimeterGuid(String perimeterGuid)
      Set the perimeterGuid property: Guid of the resource.
      Parameters:
      perimeterGuid - the perimeterGuid value to set.
      Returns:
      the NetworkSecurityPerimeter object itself.
    • location

      public String location()
      Get the location property: Location of the resource.
      Returns:
      the location value.
    • withLocation

      public NetworkSecurityPerimeter withLocation(String location)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.