Class InboundSecurityRules
java.lang.Object
com.azure.resourcemanager.network.models.InboundSecurityRules
Properties of the Inbound Security Rules resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationPortRange property: NVA port ranges to be opened up.protocol()Get the protocol property: Protocol.Get the sourceAddressPrefix property: The CIDR or source IP range.voidvalidate()Validates the instance.withDestinationPortRange(Integer destinationPortRange) Set the destinationPortRange property: NVA port ranges to be opened up.withProtocol(InboundSecurityRulesProtocol protocol) Set the protocol property: Protocol.withSourceAddressPrefix(String sourceAddressPrefix) Set the sourceAddressPrefix property: The CIDR or source IP range.
-
Constructor Details
-
InboundSecurityRules
public InboundSecurityRules()Creates an instance of InboundSecurityRules class.
-
-
Method Details
-
protocol
Get the protocol property: Protocol. This should be either TCP or UDP.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: Protocol. This should be either TCP or UDP.- Parameters:
protocol- the protocol value to set.- Returns:
- the InboundSecurityRules object itself.
-
sourceAddressPrefix
Get the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed.- Returns:
- the sourceAddressPrefix value.
-
withSourceAddressPrefix
Set the sourceAddressPrefix property: The CIDR or source IP range. Only /30, /31 and /32 Ip ranges are allowed.- Parameters:
sourceAddressPrefix- the sourceAddressPrefix value to set.- Returns:
- the InboundSecurityRules object itself.
-
destinationPortRange
Get the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.- Returns:
- the destinationPortRange value.
-
withDestinationPortRange
Set the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.- Parameters:
destinationPortRange- the destinationPortRange value to set.- Returns:
- the InboundSecurityRules object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-