IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
IP rule with specific IP or IP range in CIDR format.
Constructor Summary
Constructor | Description |
---|---|
IpRule() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
Action |
action()
Get the action property: The action of IP ACL rule. |
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
String |
ipAddressOrRange()
Get the ip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ip |
withAction(Action action)
Set the action property: The action of IP ACL rule. |
Ip |
withIpAddressOrRange(String ipAddressOrRange)
Set the ip |
Methods inherited from java.lang.Object
Constructor Details
IpRule
public IpRule()
Creates an instance of IpRule class.
Method Details
action
public Action action()
Get the action property: The action of IP ACL rule.
Returns:
fromJson
public static IpRule fromJson(JsonReader jsonReader)
Reads an instance of IpRule from the JsonReader.
Parameters:
Returns:
Throws:
ipAddressOrRange
public String ipAddressOrRange()
Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public IpRule withAction(Action action)
Set the action property: The action of IP ACL rule.
Parameters:
Returns:
withIpAddressOrRange
public IpRule withIpAddressOrRange(String ipAddressOrRange)
Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Parameters:
Returns:
Applies to
Azure SDK for Java