Class NetworkManagerPropertiesNetworkManagerScopes

java.lang.Object
com.azure.resourcemanager.network.models.NetworkManagerPropertiesNetworkManagerScopes
All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkManagerPropertiesNetworkManagerScopes>

public final class NetworkManagerPropertiesNetworkManagerScopes extends Object implements com.azure.json.JsonSerializable<NetworkManagerPropertiesNetworkManagerScopes>
Scope of Network Manager.
  • Constructor Details

    • NetworkManagerPropertiesNetworkManagerScopes

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

    • managementGroups

      public List<String> managementGroups()
      Get the managementGroups property: List of management groups.
      Returns:
      the managementGroups value.
    • withManagementGroups

      public NetworkManagerPropertiesNetworkManagerScopes withManagementGroups(List<String> managementGroups)
      Set the managementGroups property: List of management groups.
      Parameters:
      managementGroups - the managementGroups value to set.
      Returns:
      the NetworkManagerPropertiesNetworkManagerScopes object itself.
    • subscriptions

      public List<String> subscriptions()
      Get the subscriptions property: List of subscriptions.
      Returns:
      the subscriptions value.
    • withSubscriptions

      public NetworkManagerPropertiesNetworkManagerScopes withSubscriptions(List<String> subscriptions)
      Set the subscriptions property: List of subscriptions.
      Parameters:
      subscriptions - the subscriptions value to set.
      Returns:
      the NetworkManagerPropertiesNetworkManagerScopes object itself.
    • crossTenantScopes

      public List<CrossTenantScopes> crossTenantScopes()
      Get the crossTenantScopes property: List of cross tenant scopes.
      Returns:
      the crossTenantScopes value.
    • 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<NetworkManagerPropertiesNetworkManagerScopes>
      Throws:
      IOException
    • fromJson

      public static NetworkManagerPropertiesNetworkManagerScopes fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of NetworkManagerPropertiesNetworkManagerScopes from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of NetworkManagerPropertiesNetworkManagerScopes 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 NetworkManagerPropertiesNetworkManagerScopes.