Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerNetworkAttachment
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkAttachment
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
- Direct Known Subclasses:
BareMetalServerNetworkAttachmentByPCI
,BareMetalServerNetworkAttachmentByVLAN
public class BareMetalServerNetworkAttachment extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerNetworkAttachment. Classes which extend this class: - BareMetalServerNetworkAttachmentByPCI - BareMetalServerNetworkAttachmentByVLAN
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BareMetalServerNetworkAttachment.InterfaceType
The network attachment's interface type: - `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 attachment - Cannot directly use an IEEE 802.1Q tag.static interface
BareMetalServerNetworkAttachment.LifecycleState
The lifecycle state of the bare metal server network attachment.static interface
BareMetalServerNetworkAttachment.ResourceType
The resource type.static interface
BareMetalServerNetworkAttachment.Type
The bare metal server network attachment type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>
getAllowedVlans()
Gets the allowedVlans.Date
getCreatedAt()
Gets the createdAt.String
getHref()
Gets the href.String
getId()
Gets the id.String
getInterfaceType()
Gets the interfaceType.String
getLifecycleState()
Gets the lifecycleState.String
getName()
Gets the name.Long
getPortSpeed()
Gets the portSpeed.ReservedIPReference
getPrimaryIp()
Gets the primaryIp.String
getResourceType()
Gets the resourceType.SubnetReference
getSubnet()
Gets the subnet.String
getType()
Gets the type.VirtualNetworkInterfaceReferenceAttachmentContext
getVirtualNetworkInterface()
Gets the virtualNetworkInterface.Long
getVlan()
Gets the vlan.Boolean
isAllowToFloat()
Gets the allowToFloat.
-
-
-
Method Detail
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the bare metal server network attachment was created.- Returns:
- the createdAt
-
getHref
public String getHref()
Gets the href. The URL for this bare metal server network attachment.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this bare metal server network attachment.- Returns:
- the id
-
getInterfaceType
public String getInterfaceType()
Gets the interfaceType. The network attachment's interface type: - `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 attachment - Cannot directly use an IEEE 802.1Q tag. - `vlan`: a virtual device, used through a `pci` device that has the `vlan` in its array of `allowed_vlans`. - Must use an IEEE 802.1Q tag. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the interfaceType
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the bare metal server network attachment.- Returns:
- the lifecycleState
-
getName
public String getName()
Gets the name. The name for this bare metal server network attachment. The name is unique across all network attachments for the bare metal server.- Returns:
- the name
-
getPortSpeed
public Long getPortSpeed()
Gets the portSpeed. The port speed for this bare metal server network attachment in Mbps.- Returns:
- the portSpeed
-
getPrimaryIp
public ReservedIPReference getPrimaryIp()
Gets the primaryIp. The primary IP address of the virtual network interface for the bare metal server network attachment.- Returns:
- the primaryIp
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSubnet
public SubnetReference getSubnet()
Gets the subnet. The subnet of the virtual network interface for the bare metal server network attachment.- Returns:
- the subnet
-
getType
public String getType()
Gets the type. The bare metal server network attachment type. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the type
-
getVirtualNetworkInterface
public VirtualNetworkInterfaceReferenceAttachmentContext getVirtualNetworkInterface()
Gets the virtualNetworkInterface. The virtual network interface for this bare metal server network attachment.- Returns:
- the virtualNetworkInterface
-
getAllowedVlans
public List<Long> getAllowedVlans()
Gets the allowedVlans. The VLAN IDs allowed for `vlan` attachments using this PCI attachment.- Returns:
- the allowedVlans
-
isAllowToFloat
public Boolean isAllowToFloat()
Gets the allowToFloat. Indicates if the data path for the network attachment can float to another bare metal server. Can only be `true` for network attachments with an `interface_type` of `vlan`. If `true`, and the network detects traffic for this data path on another bare metal server in the resource group, the network attachment will be automatically deleted from this bare metal server and a new network attachment with the same `id`, `name` and `vlan` will be created on the other bare metal server. The virtual network interface for this network attachment will be automatically be attached to the new network attachment. For the data path to float, the other bare metal server must be in the same `resource_group`, and must have a network attachment with `interface_type` of `pci` with `allowed_vlans` including this network attachment's `vlan`.- Returns:
- the allowToFloat
-
getVlan
public Long getVlan()
Gets the vlan. The IEEE 802.1Q VLAN ID that must be used for all traffic on this attachment.- Returns:
- the vlan
-
-