InboundSecurityRules Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. InboundSecurityRules
- com.
Implements
public final class InboundSecurityRules
implements JsonSerializable<InboundSecurityRules>
Properties of the Inbound Security Rules resource.
Constructor Summary
Constructor | Description |
---|---|
InboundSecurityRules() |
Creates an instance of Inbound |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
appliesOn()
Get the applies |
Integer |
destinationPortRange()
Get the destination |
List<String> |
destinationPortRanges()
Get the destination |
static
Inbound |
fromJson(JsonReader jsonReader)
Reads an instance of Inbound |
String |
name()
Get the name property: Name of the rule. |
Inbound |
protocol()
Get the protocol property: Protocol. |
String |
sourceAddressPrefix()
Get the source |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Inbound |
withAppliesOn(List<String> appliesOn)
Set the applies |
Inbound |
withDestinationPortRange(Integer destinationPortRange)
Set the destination |
Inbound |
withDestinationPortRanges(List<String> destinationPortRanges)
Set the destination |
Inbound |
withName(String name)
Set the name property: Name of the rule. |
Inbound |
withProtocol(InboundSecurityRulesProtocol protocol)
Set the protocol property: Protocol. |
Inbound |
withSourceAddressPrefix(String sourceAddressPrefix)
Set the source |
Methods inherited from java.lang.Object
Constructor Details
InboundSecurityRules
public InboundSecurityRules()
Creates an instance of InboundSecurityRules class.
Method Details
appliesOn
public List
Get the appliesOn property: Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule type.
Returns:
destinationPortRange
public Integer destinationPortRange()
Get the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.
Returns:
destinationPortRanges
public List
Get the destinationPortRanges property: NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 and 65535.
Returns:
fromJson
public static InboundSecurityRules fromJson(JsonReader jsonReader)
Reads an instance of InboundSecurityRules from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: Name of the rule.
Returns:
protocol
public InboundSecurityRulesProtocol protocol()
Get the protocol property: Protocol. This should be either TCP or UDP.
Returns:
sourceAddressPrefix
public String sourceAddressPrefix()
Get the sourceAddressPrefix property: The CIDR or source IP range.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAppliesOn
public InboundSecurityRules withAppliesOn(List
Set the appliesOn property: Public IP name in case of Permanent Rule type & Interface Name in case of Auto Expire Rule type.
Parameters:
Returns:
withDestinationPortRange
public InboundSecurityRules withDestinationPortRange(Integer destinationPortRange)
Set the destinationPortRange property: NVA port ranges to be opened up. One needs to provide specific ports.
Parameters:
Returns:
withDestinationPortRanges
public InboundSecurityRules withDestinationPortRanges(List
Set the destinationPortRanges property: NVA port ranges to be opened up. One can provide a range of ports. Allowed port value between 0 and 65535.
Parameters:
Returns:
withName
public InboundSecurityRules withName(String name)
Set the name property: Name of the rule.
Parameters:
Returns:
withProtocol
public InboundSecurityRules withProtocol(InboundSecurityRulesProtocol protocol)
Set the protocol property: Protocol. This should be either TCP or UDP.
Parameters:
Returns:
withSourceAddressPrefix
public InboundSecurityRules withSourceAddressPrefix(String sourceAddressPrefix)
Set the sourceAddressPrefix property: The CIDR or source IP range.
Parameters:
Returns:
Applies to
Azure SDK for Java