@Generated(value="org.jsonschema2pojo") public class NetworkPolicyEgressRule extends Object implements KubernetesResource
Constructor and Description |
---|
NetworkPolicyEgressRule()
No args constructor for use in serialization
|
NetworkPolicyEgressRule(List<NetworkPolicyPort> ports,
List<NetworkPolicyPeer> to) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
List<NetworkPolicyPort> |
getPorts() |
List<NetworkPolicyPeer> |
getTo() |
void |
setAdditionalProperty(String name,
Object value) |
void |
setPorts(List<NetworkPolicyPort> ports) |
void |
setTo(List<NetworkPolicyPeer> to) |
public NetworkPolicyEgressRule()
public NetworkPolicyEgressRule(List<NetworkPolicyPort> ports, List<NetworkPolicyPeer> to)
to
- ports
- public List<NetworkPolicyPort> getPorts()
public void setPorts(List<NetworkPolicyPort> ports)
ports
- The portspublic List<NetworkPolicyPeer> getTo()
public void setTo(List<NetworkPolicyPeer> to)
to
- The toCopyright © 2011–2018 Red Hat. All rights reserved.