NetworkSecurityGroupResourceSettings Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. ResourceSettings - com.
azure. resourcemanager. resourcemover. models. NetworkSecurityGroupResourceSettings
- com.
- com.
public final class NetworkSecurityGroupResourceSettings
extends ResourceSettings
Defines the NSG resource settings.
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkSecurityGroupResourceSettings() |
Creates an instance of Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
| String |
resourceType()
Get the resource |
|
List<Nsg |
securityRules()
Get the security |
| Map<String,String> |
tags()
Get the tags property: Gets or sets the Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Network |
withSecurityRules(List<NsgSecurityRule> securityRules)
Set the security |
|
Network |
withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags. |
|
Network |
withTargetResourceGroupName(String targetResourceGroupName)
Set the target |
|
Network |
withTargetResourceName(String targetResourceName)
Set the target |
Methods inherited from ResourceSettings
Methods inherited from java.lang.Object
Constructor Details
NetworkSecurityGroupResourceSettings
public NetworkSecurityGroupResourceSettings()
Creates an instance of NetworkSecurityGroupResourceSettings class.
Method Details
fromJson
public static NetworkSecurityGroupResourceSettings fromJson(JsonReader jsonReader)
Reads an instance of NetworkSecurityGroupResourceSettings from the JsonReader.
Parameters:
Returns:
Throws:
resourceType
public String resourceType()
Get the resourceType property: The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
Overrides:
NetworkSecurityGroupResourceSettings.resourceType()Returns:
securityRules
public List<NsgSecurityRule> securityRules()
Get the securityRules property: Gets or sets Security rules of network security group.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Gets or sets the Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
NetworkSecurityGroupResourceSettings.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
NetworkSecurityGroupResourceSettings.validate()withSecurityRules
public NetworkSecurityGroupResourceSettings withSecurityRules(List<NsgSecurityRule> securityRules)
Set the securityRules property: Gets or sets Security rules of network security group.
Parameters:
Returns:
withTags
public NetworkSecurityGroupResourceSettings withTags(Map<String,String> tags)
Set the tags property: Gets or sets the Resource tags.
Parameters:
Returns:
withTargetResourceGroupName
public NetworkSecurityGroupResourceSettings withTargetResourceGroupName(String targetResourceGroupName)
Set the targetResourceGroupName property: Gets or sets the target resource group name.
Overrides:
NetworkSecurityGroupResourceSettings.withTargetResourceGroupName(String targetResourceGroupName)Parameters:
withTargetResourceName
public NetworkSecurityGroupResourceSettings withTargetResourceName(String targetResourceName)
Set the targetResourceName property: Gets or sets the target Resource name.
Overrides:
NetworkSecurityGroupResourceSettings.withTargetResourceName(String targetResourceName)Parameters: