Class IpSecurityRestrictionRule
java.lang.Object
com.azure.resourcemanager.appcontainers.models.IpSecurityRestrictionRule
Rule to restrict incoming IP address.
-
Constructor Summary
ConstructorDescriptionCreates an instance of IpSecurityRestrictionRule class. -
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: Allow or Deny rules to determine for incoming IP.Get the description property: Describe the IP restriction rule that is being sent to the container-app.Get the ipAddressRange property: CIDR notation to match incoming IP address.name()
Get the name property: Name for the IP restriction rule.void
validate()
Validates the instance.withAction
(Action action) Set the action property: Allow or Deny rules to determine for incoming IP.withDescription
(String description) Set the description property: Describe the IP restriction rule that is being sent to the container-app.withIpAddressRange
(String ipAddressRange) Set the ipAddressRange property: CIDR notation to match incoming IP address.Set the name property: Name for the IP restriction rule.
-
Constructor Details
-
IpSecurityRestrictionRule
public IpSecurityRestrictionRule()Creates an instance of IpSecurityRestrictionRule class.
-
-
Method Details
-
name
Get the name property: Name for the IP restriction rule.- Returns:
- the name value.
-
withName
Set the name property: Name for the IP restriction rule.- Parameters:
name
- the name value to set.- Returns:
- the IpSecurityRestrictionRule object itself.
-
description
Get the description property: Describe the IP restriction rule that is being sent to the container-app. This is an optional field.- Returns:
- the description value.
-
withDescription
Set the description property: Describe the IP restriction rule that is being sent to the container-app. This is an optional field.- Parameters:
description
- the description value to set.- Returns:
- the IpSecurityRestrictionRule object itself.
-
ipAddressRange
Get the ipAddressRange property: CIDR notation to match incoming IP address.- Returns:
- the ipAddressRange value.
-
withIpAddressRange
Set the ipAddressRange property: CIDR notation to match incoming IP address.- Parameters:
ipAddressRange
- the ipAddressRange value to set.- Returns:
- the IpSecurityRestrictionRule object itself.
-
action
Get the action property: Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny.- Returns:
- the action value.
-
withAction
Set the action property: Allow or Deny rules to determine for incoming IP. Note: Rules can only consist of ALL Allow or ALL Deny.- Parameters:
action
- the action value to set.- Returns:
- the IpSecurityRestrictionRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-