Class SimpleMacvlanConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.SimpleMacvlanConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SimpleMacvlanConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class SimpleMacvlanConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<SimpleMacvlanConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
SimpleMacvlanConfig contains configurations for macvlan interface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleMacvlanConfig()No args constructor for use in serializationSimpleMacvlanConfig(IPAMConfig ipamConfig, String master, String mode, Long mtu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleMacvlanConfigBuilderedit()Map<String,Object>getAdditionalProperties()IPAMConfiggetIpamConfig()SimpleMacvlanConfig contains configurations for macvlan interface.StringgetMaster()master is the host interface to create the macvlan interface from.StringgetMode()mode is the macvlan mode: bridge, private, vepa, passthru.LonggetMtu()mtu is the mtu to use for the macvlan interface. if unset, host's kernel will select the value.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetIpamConfig(IPAMConfig ipamConfig)SimpleMacvlanConfig contains configurations for macvlan interface.voidsetMaster(String master)master is the host interface to create the macvlan interface from.voidsetMode(String mode)mode is the macvlan mode: bridge, private, vepa, passthru.voidsetMtu(Long mtu)mtu is the mtu to use for the macvlan interface. if unset, host's kernel will select the value.SimpleMacvlanConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
SimpleMacvlanConfig
public SimpleMacvlanConfig()
No args constructor for use in serialization
-
SimpleMacvlanConfig
public SimpleMacvlanConfig(IPAMConfig ipamConfig, String master, String mode, Long mtu)
-
-
Method Detail
-
getIpamConfig
public IPAMConfig getIpamConfig()
SimpleMacvlanConfig contains configurations for macvlan interface.
-
setIpamConfig
public void setIpamConfig(IPAMConfig ipamConfig)
SimpleMacvlanConfig contains configurations for macvlan interface.
-
getMaster
public String getMaster()
master is the host interface to create the macvlan interface from. If not specified, it will be default route interface
-
setMaster
public void setMaster(String master)
master is the host interface to create the macvlan interface from. If not specified, it will be default route interface
-
getMode
public String getMode()
mode is the macvlan mode: bridge, private, vepa, passthru. The default is bridge
-
setMode
public void setMode(String mode)
mode is the macvlan mode: bridge, private, vepa, passthru. The default is bridge
-
getMtu
public Long getMtu()
mtu is the mtu to use for the macvlan interface. if unset, host's kernel will select the value.
-
setMtu
public void setMtu(Long mtu)
mtu is the mtu to use for the macvlan interface. if unset, host's kernel will select the value.
-
edit
public SimpleMacvlanConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SimpleMacvlanConfigBuilder>
-
toBuilder
public SimpleMacvlanConfigBuilder toBuilder()
-
-