Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerPrimaryNetworkInterfacePrototype
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerPrimaryNetworkInterfacePrototype
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BareMetalServerPrimaryNetworkInterfacePrototype extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerPrimaryNetworkInterfacePrototype.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BareMetalServerPrimaryNetworkInterfacePrototype.Builder
Builder.static interface
BareMetalServerPrimaryNetworkInterfacePrototype.InterfaceType
The interface type: - `hipersocket`: a virtual device that provides high-speed TCP/IP connectivity within a `s390x` based system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>
allowedVlans()
Gets the allowedVlans.Boolean
allowIpSpoofing()
Gets the allowIpSpoofing.Boolean
enableInfrastructureNat()
Gets the enableInfrastructureNat.String
interfaceType()
Gets the interfaceType.String
name()
Gets the name.BareMetalServerPrimaryNetworkInterfacePrototype.Builder
newBuilder()
New builder.NetworkInterfaceIPPrototype
primaryIp()
Gets the primaryIp.List<SecurityGroupIdentity>
securityGroups()
Gets the securityGroups.SubnetIdentity
subnet()
Gets the subnet.
-
-
-
Method Detail
-
newBuilder
public BareMetalServerPrimaryNetworkInterfacePrototype.Builder newBuilder()
New builder.- Returns:
- a BareMetalServerPrimaryNetworkInterfacePrototype builder
-
allowIpSpoofing
public Boolean allowIpSpoofing()
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and source IP spoofing is managed on the attached virtual network interface.- Returns:
- the allowIpSpoofing
-
allowedVlans
public List<Long> allowedVlans()
Gets the allowedVlans. The VLAN IDs allowed for `vlan` interfaces using this PCI interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and the VLAN IDs match the `allow_vlans` of the corresponding network attachment.- Returns:
- the allowedVlans
-
enableInfrastructureNat
public Boolean enableInfrastructureNat()
Gets the enableInfrastructureNat. If `true`: - The VPC infrastructure performs any needed NAT operations. - `floating_ips` must not have more than one floating IP. If `false`: - Packets are passed unchanged to/from the bare metal server network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - `interface_type` must not be `hipersocket`. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and infrastructure NAT is managed on the attached virtual network interface.- Returns:
- the enableInfrastructureNat
-
interfaceType
public String interfaceType()
Gets the interfaceType. The interface type: - `hipersocket`: a virtual device that provides high-speed TCP/IP connectivity within a `s390x` based system. - Not supported on bare metal servers with a `cpu.architecture` of `amd64` - `pci`: a physical PCI device which can only be created or deleted when the bare metal server is stopped - Has an `allowed_vlans` property which controls the VLANs that will be permitted to use the PCI interface - Cannot directly use an IEEE 802.1Q tag. - Not supported on bare metal servers with a `cpu.architecture` of `s390x`.- Returns:
- the interfaceType
-
name
public String name()
Gets the name. The name for this bare metal server network interface. The name must not be used by another network interface on the bare metal server. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
primaryIp
public NetworkInterfaceIPPrototype primaryIp()
Gets the primaryIp. The primary IP address to bind to the bare metal server network interface. This can be specified using an existing reserved IP, or a prototype object for a new reserved IP. If an existing reserved IP or a prototype object with an address is specified, it must be available on the bare metal server network interface's subnet. Otherwise, an available address on the subnet will be automatically selected and reserved.- Returns:
- the primaryIp
-
securityGroups
public List<SecurityGroupIdentity> securityGroups()
Gets the securityGroups. The security groups to use for this bare metal server network interface. If unspecified, the VPC's default security group is used.- Returns:
- the securityGroups
-
subnet
public SubnetIdentity subnet()
Gets the subnet. The associated subnet.- Returns:
- the subnet
-
-