Class EgressNetworkPolicyPeer
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.network.v1.EgressNetworkPolicyPeer
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<EgressNetworkPolicyPeerBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EgressNetworkPolicyPeer extends Object implements io.fabric8.kubernetes.api.builder.Editable<EgressNetworkPolicyPeerBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
EgressNetworkPolicyPeer specifies a target to apply egress network policy to- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EgressNetworkPolicyPeer()No args constructor for use in serializationEgressNetworkPolicyPeer(String cidrSelector, String dnsName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EgressNetworkPolicyPeerBuilderedit()Map<String,Object>getAdditionalProperties()StringgetCidrSelector()cidrSelector is the CIDR range to allow/deny traffic to.StringgetDnsName()dnsName is the domain name to allow/deny traffic to.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetCidrSelector(String cidrSelector)cidrSelector is the CIDR range to allow/deny traffic to.voidsetDnsName(String dnsName)dnsName is the domain name to allow/deny traffic to.EgressNetworkPolicyPeerBuildertoBuilder()
-
-
-
Method Detail
-
getCidrSelector
public String getCidrSelector()
cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset Ideally we would have liked to use the cidr openapi format for this property. But openshift-sdn only supports v4 while specifying the cidr format allows both v4 and v6 cidrs We are therefore using a regex pattern to validate instead.
-
setCidrSelector
public void setCidrSelector(String cidrSelector)
cidrSelector is the CIDR range to allow/deny traffic to. If this is set, dnsName must be unset Ideally we would have liked to use the cidr openapi format for this property. But openshift-sdn only supports v4 while specifying the cidr format allows both v4 and v6 cidrs We are therefore using a regex pattern to validate instead.
-
getDnsName
public String getDnsName()
dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset
-
setDnsName
public void setDnsName(String dnsName)
dnsName is the domain name to allow/deny traffic to. If this is set, cidrSelector must be unset
-
edit
public EgressNetworkPolicyPeerBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EgressNetworkPolicyPeerBuilder>
-
toBuilder
public EgressNetworkPolicyPeerBuilder toBuilder()
-
-