Class InboundSecurityRules
- java.lang.Object
-
- com.azure.resourcemanager.network.models.InboundSecurityRules
-
public final class InboundSecurityRules extends Object
Properties of the Inbound Security Rules resource.
-
-
Constructor Summary
Constructors Constructor Description InboundSecurityRules()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerdestinationPortRange()Get the destinationPortRange property: NVA port ranges to be opened up.InboundSecurityRulesProtocolprotocol()Get the protocol property: Protocol.StringsourceAddressPrefix()Get the sourceAddressPrefix property: The CIDR or source IP range.voidvalidate()Validates the instance.InboundSecurityRuleswithDestinationPortRange(Integer destinationPortRange)Set the destinationPortRange property: NVA port ranges to be opened up.InboundSecurityRuleswithProtocol(InboundSecurityRulesProtocol protocol)Set the protocol property: Protocol.InboundSecurityRuleswithSourceAddressPrefix(String sourceAddressPrefix)Set the sourceAddressPrefix property: The CIDR or source IP range.
-
-
-
Method Detail
-
protocol
public InboundSecurityRulesProtocol protocol()
Get the protocol property: Protocol. This should be either TCP or UDP.- Returns:
- the protocol value.
-
withProtocol
public InboundSecurityRules withProtocol(InboundSecurityRulesProtocol protocol)
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
public String 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
public InboundSecurityRules withSourceAddressPrefix(String sourceAddressPrefix)
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
public Integer destinationPortRange()
Get the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.- Returns:
- the destinationPortRange value.
-
withDestinationPortRange
public InboundSecurityRules withDestinationPortRange(Integer destinationPortRange)
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.
-
-