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 Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkManagerPropertiesNetworkManagerScopes class. -
Method Summary
Modifier and TypeMethodDescriptionGet the crossTenantScopes property: List of cross tenant scopes.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkManagerPropertiesNetworkManagerScopes from the JsonReader.Get the managementGroups property: List of management groups.Get the subscriptions property: List of subscriptions.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withManagementGroups(List<String> managementGroups) Set the managementGroups property: List of management groups.withSubscriptions(List<String> subscriptions) Set the subscriptions property: List of subscriptions.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
-
NetworkManagerPropertiesNetworkManagerScopes
public NetworkManagerPropertiesNetworkManagerScopes()Creates an instance of NetworkManagerPropertiesNetworkManagerScopes class.
-
-
Method Details
-
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
Get the subscriptions property: List of subscriptions.- Returns:
- the subscriptions value.
-
withSubscriptions
Set the subscriptions property: List of subscriptions.- Parameters:
subscriptions- the subscriptions value to set.- Returns:
- the NetworkManagerPropertiesNetworkManagerScopes object itself.
-
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
- Specified by:
toJsonin interfacecom.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.
-