Class NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
java.lang.Object
com.azure.resourcemanager.storage.models.NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation>
public final class NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
extends Object
implements com.azure.json.JsonSerializable<NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation>
Information about resource association.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the accessMode property: Access Mode of the resource association.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation from the JsonReader.name()Get the name property: Name of the resource association.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAccessMode(ResourceAssociationAccessMode accessMode) Set the accessMode property: Access Mode of the resource association.Set the name property: Name of the resource association.Methods inherited from class 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
-
NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation
public NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation()Creates an instance of NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation class.
-
-
Method Details
-
name
Get the name property: Name of the resource association.- Returns:
- the name value.
-
withName
Set the name property: Name of the resource association.- Parameters:
name- the name value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation object itself.
-
accessMode
Get the accessMode property: Access Mode of the resource association.- Returns:
- the accessMode value.
-
withAccessMode
public NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation withAccessMode(ResourceAssociationAccessMode accessMode) Set the accessMode property: Access Mode of the resource association.- Parameters:
accessMode- the accessMode value to set.- Returns:
- the NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation 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<NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation>- Throws:
IOException
-
fromJson
public static NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation 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 NetworkSecurityPerimeterConfigurationPropertiesResourceAssociation.
-