NetworkSecurityGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. NetworkSecurityGroupInner
- com.
- com.
- com.
public final class NetworkSecurityGroupInner
extends Resource
NetworkSecurityGroup resource.
Constructor Summary
Constructor | Description |
---|---|
NetworkSecurityGroupInner() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Security |
defaultSecurityRules()
Get the default |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
List<Flow |
flowLogs()
Get the flow |
Boolean |
flushConnection()
Get the flush |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
String |
id()
Get the id property: Resource ID. |
String |
name()
Get the name property: The name of the resource. |
List<Network |
networkInterfaces()
Get the network |
Provisioning |
provisioningState()
Get the provisioning |
String |
resourceGuid()
Get the resource |
List<Security |
securityRules()
Get the security |
List<Subnet |
subnets()
Get the subnets property: A collection of references to subnets. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Network |
withFlushConnection(Boolean flushConnection)
Set the flush |
Network |
withId(String id)
Set the id property: Resource ID. |
Network |
withLocation(String location) |
Network |
withSecurityRules(List<SecurityRuleInner> securityRules)
Set the security |
Network |
withTags(Map<String,String> tags) |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
NetworkSecurityGroupInner
public NetworkSecurityGroupInner()
Creates an instance of NetworkSecurityGroupInner class.
Method Details
defaultSecurityRules
public List
Get the defaultSecurityRules property: The default security rules of network security group.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
flowLogs
public List
Get the flowLogs property: A collection of references to flow log resources.
Returns:
flushConnection
public Boolean flushConnection()
Get the flushConnection property: When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
Returns:
fromJson
public static NetworkSecurityGroupInner fromJson(JsonReader jsonReader)
Reads an instance of NetworkSecurityGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Resource ID.
Overrides:
NetworkSecurityGroupInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
NetworkSecurityGroupInner.name()Returns:
networkInterfaces
public List
Get the networkInterfaces property: A collection of references to network interfaces.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the network security group resource.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the network security group resource.
Returns:
securityRules
public List
Get the securityRules property: A collection of security rules of the network security group.
Returns:
subnets
public List
Get the subnets property: A collection of references to subnets.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
NetworkSecurityGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
NetworkSecurityGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withFlushConnection
public NetworkSecurityGroupInner withFlushConnection(Boolean flushConnection)
Set the flushConnection property: When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.
Parameters:
Returns:
withId
public NetworkSecurityGroupInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withLocation
public NetworkSecurityGroupInner withLocation(String location)
Overrides:
NetworkSecurityGroupInner.withLocation(String location)Parameters:
withSecurityRules
public NetworkSecurityGroupInner withSecurityRules(List
Set the securityRules property: A collection of security rules of the network security group.
Parameters:
Returns:
withTags
public NetworkSecurityGroupInner withTags(Map
Overrides:
NetworkSecurityGroupInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java