NetworkPolicies Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. NetworkPolicies
- com.
Implements
public final class NetworkPolicies
implements JsonSerializable<NetworkPolicies>
Default network policy of the namespace, specifying ingress and egress rules.
Constructor Summary
| Constructor | Description |
|---|---|
| NetworkPolicies() |
Creates an instance of Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Policy |
egress()
Get the egress property: Egress policy for the network. |
|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
|
Policy |
ingress()
Get the ingress property: Ingress policy for the network. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Network |
withEgress(PolicyRule egress)
Set the egress property: Egress policy for the network. |
|
Network |
withIngress(PolicyRule ingress)
Set the ingress property: Ingress policy for the network. |
Methods inherited from java.lang.Object
Constructor Details
NetworkPolicies
public NetworkPolicies()
Creates an instance of NetworkPolicies class.
Method Details
egress
public PolicyRule egress()
Get the egress property: Egress policy for the network.
Returns:
fromJson
public static NetworkPolicies fromJson(JsonReader jsonReader)
Reads an instance of NetworkPolicies from the JsonReader.
Parameters:
Returns:
Throws:
ingress
public PolicyRule ingress()
Get the ingress property: Ingress policy for the network.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEgress
public NetworkPolicies withEgress(PolicyRule egress)
Set the egress property: Egress policy for the network.
Parameters:
Returns:
withIngress
public NetworkPolicies withIngress(PolicyRule ingress)
Set the ingress property: Ingress policy for the network.
Parameters:
Returns: