public final class InboundSecurityRules extends Object
| Constructor and Description |
|---|
InboundSecurityRules() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
destinationPortRange()
Get the destinationPortRange property: NVA port ranges to be opened up.
|
InboundSecurityRulesProtocol |
protocol()
Get the protocol property: Protocol.
|
String |
sourceAddressPrefix()
Get the sourceAddressPrefix property: The CIDR or source IP range.
|
void |
validate()
Validates the instance.
|
InboundSecurityRules |
withDestinationPortRange(Integer destinationPortRange)
Set the destinationPortRange property: NVA port ranges to be opened up.
|
InboundSecurityRules |
withProtocol(InboundSecurityRulesProtocol protocol)
Set the protocol property: Protocol.
|
InboundSecurityRules |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix property: The CIDR or source IP range.
|
public InboundSecurityRulesProtocol protocol()
public InboundSecurityRules withProtocol(InboundSecurityRulesProtocol protocol)
protocol - the protocol value to set.public String sourceAddressPrefix()
public InboundSecurityRules withSourceAddressPrefix(String sourceAddressPrefix)
sourceAddressPrefix - the sourceAddressPrefix value to set.public Integer destinationPortRange()
public InboundSecurityRules withDestinationPortRange(Integer destinationPortRange)
destinationPortRange - the destinationPortRange value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.