Class EgressRouterSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.network.v1.EgressRouterSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<EgressRouterSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class EgressRouterSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<EgressRouterSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
EgressRouterSpec contains the configuration for an egress router. Mode, networkInterface and addresses fields must be specified along with exactly one "Config" that matches the mode. Each config consists of parameters specific to that mode.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EgressRouterSpec()No args constructor for use in serializationEgressRouterSpec(List<EgressRouterAddress> addresses, String mode, EgressRouterInterface networkInterface, RedirectConfig redirect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EgressRouterSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<EgressRouterAddress>getAddresses()List of IP addresses to configure on the pod's secondary interface.StringgetMode()mode depicts the mode that is used for the egress router.EgressRouterInterfacegetNetworkInterface()EgressRouterSpec contains the configuration for an egress router.RedirectConfiggetRedirect()EgressRouterSpec contains the configuration for an egress router.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAddresses(List<EgressRouterAddress> addresses)List of IP addresses to configure on the pod's secondary interface.voidsetMode(String mode)mode depicts the mode that is used for the egress router.voidsetNetworkInterface(EgressRouterInterface networkInterface)EgressRouterSpec contains the configuration for an egress router.voidsetRedirect(RedirectConfig redirect)EgressRouterSpec contains the configuration for an egress router.EgressRouterSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
EgressRouterSpec
public EgressRouterSpec()
No args constructor for use in serialization
-
EgressRouterSpec
public EgressRouterSpec(List<EgressRouterAddress> addresses, String mode, EgressRouterInterface networkInterface, RedirectConfig redirect)
-
-
Method Detail
-
getAddresses
public List<EgressRouterAddress> getAddresses()
List of IP addresses to configure on the pod's secondary interface.
-
setAddresses
public void setAddresses(List<EgressRouterAddress> addresses)
List of IP addresses to configure on the pod's secondary interface.
-
getMode
public String getMode()
mode depicts the mode that is used for the egress router. The default mode is "Redirect" and is the only supported mode currently.
-
setMode
public void setMode(String mode)
mode depicts the mode that is used for the egress router. The default mode is "Redirect" and is the only supported mode currently.
-
getNetworkInterface
public EgressRouterInterface getNetworkInterface()
EgressRouterSpec contains the configuration for an egress router. Mode, networkInterface and addresses fields must be specified along with exactly one "Config" that matches the mode. Each config consists of parameters specific to that mode.
-
setNetworkInterface
public void setNetworkInterface(EgressRouterInterface networkInterface)
EgressRouterSpec contains the configuration for an egress router. Mode, networkInterface and addresses fields must be specified along with exactly one "Config" that matches the mode. Each config consists of parameters specific to that mode.
-
getRedirect
public RedirectConfig getRedirect()
EgressRouterSpec contains the configuration for an egress router. Mode, networkInterface and addresses fields must be specified along with exactly one "Config" that matches the mode. Each config consists of parameters specific to that mode.
-
setRedirect
public void setRedirect(RedirectConfig redirect)
EgressRouterSpec contains the configuration for an egress router. Mode, networkInterface and addresses fields must be specified along with exactly one "Config" that matches the mode. Each config consists of parameters specific to that mode.
-
edit
public EgressRouterSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<EgressRouterSpecBuilder>
-
toBuilder
public EgressRouterSpecBuilder toBuilder()
-
-