Class AdminRuleCollectionPropertiesFormat
java.lang.Object
com.azure.resourcemanager.network.fluent.models.AdminRuleCollectionPropertiesFormat
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AdminRuleCollectionPropertiesFormat>
public final class AdminRuleCollectionPropertiesFormat
extends Object
implements com.azure.json.JsonSerializable<AdminRuleCollectionPropertiesFormat>
Defines the admin rule collection properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AdminRuleCollectionPropertiesFormat class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appliesToGroups property: Groups for configuration.Get the description property: A description of the admin rule collection.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AdminRuleCollectionPropertiesFormat from the JsonReader.Get the provisioningState property: The provisioning state of the resource.Get the resourceGuid property: Unique identifier for this resource.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppliesToGroups(List<NetworkManagerSecurityGroupItem> appliesToGroups) Set the appliesToGroups property: Groups for configuration.withDescription(String description) Set the description property: A description of the admin rule collection.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
-
AdminRuleCollectionPropertiesFormat
public AdminRuleCollectionPropertiesFormat()Creates an instance of AdminRuleCollectionPropertiesFormat class.
-
-
Method Details
-
description
Get the description property: A description of the admin rule collection.- Returns:
- the description value.
-
withDescription
Set the description property: A description of the admin rule collection.- Parameters:
description- the description value to set.- Returns:
- the AdminRuleCollectionPropertiesFormat object itself.
-
appliesToGroups
Get the appliesToGroups property: Groups for configuration.- Returns:
- the appliesToGroups value.
-
withAppliesToGroups
public AdminRuleCollectionPropertiesFormat withAppliesToGroups(List<NetworkManagerSecurityGroupItem> appliesToGroups) Set the appliesToGroups property: Groups for configuration.- Parameters:
appliesToGroups- the appliesToGroups value to set.- Returns:
- the AdminRuleCollectionPropertiesFormat object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the resource.- Returns:
- the provisioningState value.
-
resourceGuid
Get the resourceGuid property: Unique identifier for this resource.- Returns:
- the resourceGuid 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<AdminRuleCollectionPropertiesFormat>- Throws:
IOException
-
fromJson
public static AdminRuleCollectionPropertiesFormat fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AdminRuleCollectionPropertiesFormat from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AdminRuleCollectionPropertiesFormat if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AdminRuleCollectionPropertiesFormat.
-