Class AdditionalNetworkDefinition
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.AdditionalNetworkDefinition
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AdditionalNetworkDefinitionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AdditionalNetworkDefinition extends Object implements io.fabric8.kubernetes.api.builder.Editable<AdditionalNetworkDefinitionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdditionalNetworkDefinition()No args constructor for use in serializationAdditionalNetworkDefinition(String name, String namespace, String rawCNIConfig, SimpleMacvlanConfig simpleMacvlanConfig, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalNetworkDefinitionBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name is the name of the network.StringgetNamespace()namespace is the namespace of the network.StringgetRawCNIConfig()rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRDSimpleMacvlanConfiggetSimpleMacvlanConfig()AdditionalNetworkDefinition configures an extra network that is available but not created by default.StringgetType()type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlanvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name is the name of the network.voidsetNamespace(String namespace)namespace is the namespace of the network.voidsetRawCNIConfig(String rawCNIConfig)rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRDvoidsetSimpleMacvlanConfig(SimpleMacvlanConfig simpleMacvlanConfig)AdditionalNetworkDefinition configures an extra network that is available but not created by default.voidsetType(String type)type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlanAdditionalNetworkDefinitionBuildertoBuilder()
-
-
-
Constructor Detail
-
AdditionalNetworkDefinition
public AdditionalNetworkDefinition()
No args constructor for use in serialization
-
AdditionalNetworkDefinition
public AdditionalNetworkDefinition(String name, String namespace, String rawCNIConfig, SimpleMacvlanConfig simpleMacvlanConfig, String type)
-
-
Method Detail
-
getName
public String getName()
name is the name of the network. This will be populated in the resulting CRD This must be unique.
-
setName
public void setName(String name)
name is the name of the network. This will be populated in the resulting CRD This must be unique.
-
getNamespace
public String getNamespace()
namespace is the namespace of the network. This will be populated in the resulting CRD If not given the network will be created in the default namespace.
-
setNamespace
public void setNamespace(String namespace)
namespace is the namespace of the network. This will be populated in the resulting CRD If not given the network will be created in the default namespace.
-
getRawCNIConfig
public String getRawCNIConfig()
rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRD
-
setRawCNIConfig
public void setRawCNIConfig(String rawCNIConfig)
rawCNIConfig is the raw CNI configuration json to create in the NetworkAttachmentDefinition CRD
-
getSimpleMacvlanConfig
public SimpleMacvlanConfig getSimpleMacvlanConfig()
AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.
-
setSimpleMacvlanConfig
public void setSimpleMacvlanConfig(SimpleMacvlanConfig simpleMacvlanConfig)
AdditionalNetworkDefinition configures an extra network that is available but not created by default. Instead, pods must request them by name. type must be specified, along with exactly one "Config" that matches the type.
-
getType
public String getType()
type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlan
-
setType
public void setType(String type)
type is the type of network The supported values are NetworkTypeRaw, NetworkTypeSimpleMacvlan
-
edit
public AdditionalNetworkDefinitionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AdditionalNetworkDefinitionBuilder>
-
toBuilder
public AdditionalNetworkDefinitionBuilder toBuilder()
-
-