NetworkRuleSet Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. NetworkRuleSet
- com.
Implements
public final class NetworkRuleSet
implements JsonSerializable<NetworkRuleSet>
The network rule set for a container registry.
Constructor Summary
Constructor | Description |
---|---|
NetworkRuleSet() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Default |
defaultAction()
Get the default |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
List<Ip |
ipRules()
Get the ip |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Network |
withDefaultAction(DefaultAction defaultAction)
Set the default |
Network |
withIpRules(List<IpRule> ipRules)
Set the ip |
Methods inherited from java.lang.Object
Constructor Details
NetworkRuleSet
public NetworkRuleSet()
Creates an instance of NetworkRuleSet class.
Method Details
defaultAction
public DefaultAction defaultAction()
Get the defaultAction property: The default action of allow or deny when no other rules match.
Returns:
fromJson
public static NetworkRuleSet fromJson(JsonReader jsonReader)
Reads an instance of NetworkRuleSet from the JsonReader.
Parameters:
Returns:
Throws:
ipRules
public List
Get the ipRules property: The IP ACL rules.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDefaultAction
public NetworkRuleSet withDefaultAction(DefaultAction defaultAction)
Set the defaultAction property: The default action of allow or deny when no other rules match.
Parameters:
Returns:
withIpRules
public NetworkRuleSet withIpRules(List
Set the ipRules property: The IP ACL rules.
Parameters:
Returns:
Applies to
Azure SDK for Java