Class NetworkDeviceSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.installer.vsphere.v1.NetworkDeviceSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NetworkDeviceSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NetworkDeviceSpec defines network config for static IP assignment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkDeviceSpec()No args constructor for use in serializationNetworkDeviceSpec(String gateway, List<String> ipAddrs, List<String> nameservers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkDeviceSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetGateway()gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.List<String>getIpAddrs()ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24.List<String>getNameservers()nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetGateway(String gateway)gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.voidsetIpAddrs(List<String> ipAddrs)ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24.voidsetNameservers(List<String> nameservers)nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim.NetworkDeviceSpecBuildertoBuilder()
-
-
-
Method Detail
-
getGateway
public String getGateway()
gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.
-
setGateway
public void setGateway(String gateway)
gateway is an IPv4 or IPv6 address which represents the subnet gateway, for example, 192.168.1.1.
-
getIpAddrs
public List<String> getIpAddrs()
ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24. IP addresses provided via ipAddrs are intended to allow explicit assignment of a machine's IP address.
-
setIpAddrs
public void setIpAddrs(List<String> ipAddrs)
ipAddrs is a list of one or more IPv4 and/or IPv6 addresses and CIDR to assign to this device, for example, 192.168.1.100/24. IP addresses provided via ipAddrs are intended to allow explicit assignment of a machine's IP address.
-
getNameservers
public List<String> getNameservers()
nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim. If DHCP is not the source of IP addresses for this network device, nameservers should include a valid nameserver.
-
setNameservers
public void setNameservers(List<String> nameservers)
nameservers is a list of IPv4 and/or IPv6 addresses used as DNS nameservers, for example, 8.8.8.8. a nameserver is not provided by a fulfilled IPAddressClaim. If DHCP is not the source of IP addresses for this network device, nameservers should include a valid nameserver.
-
edit
public NetworkDeviceSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NetworkDeviceSpecBuilder>
-
toBuilder
public NetworkDeviceSpecBuilder toBuilder()
-
-