Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServer
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServer
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BareMetalServer extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
BareMetalServer.LifecycleState
The lifecycle state of the bare metal server.static interface
BareMetalServer.ResourceType
The resource type.static interface
BareMetalServer.Status
The status of this bare metal server: - `deleting`: server is undergoing deletion - `failed`: server is failed and not usable (see `status_reasons`) - `maintenance`: server is undergoing maintenance (not usable) - `pending`: server is being provisioned and not yet usable - `reinitializing`: server is reinitializing and not yet usable - `restarting`: server is restarting and not yet usable - `running`: server is powered on - `starting`: server is starting and not yet usable - `stopped`: server is powered off The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
-
Method Summary
-
-
-
Method Detail
-
getBandwidth
public Long getBandwidth()
Gets the bandwidth. The total bandwidth (in megabits per second) shared across the bare metal server network attachments or bare metal server network interfaces.- Returns:
- the bandwidth
-
getBootTarget
public BareMetalServerBootTarget getBootTarget()
Gets the bootTarget. The resource from which this bare metal server is booted. The resources supported by this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the bootTarget
-
getCpu
public BareMetalServerCPU getCpu()
Gets the cpu. The bare metal server CPU configuration.- Returns:
- the cpu
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the bare metal server was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this bare metal server.- Returns:
- the crn
-
getDisks
public List<BareMetalServerDisk> getDisks()
Gets the disks. The disks for this bare metal server, including any disks that are associated with the `boot_target`.- Returns:
- the disks
-
isEnableSecureBoot
public Boolean isEnableSecureBoot()
Gets the enableSecureBoot. Indicates whether secure boot is enabled. If enabled, the image must support secure boot or the server will fail to boot.- Returns:
- the enableSecureBoot
-
getFirmware
public BareMetalServerFirmware getFirmware()
Gets the firmware. Firmware information for the bare metal server.- Returns:
- the firmware
-
getHref
public String getHref()
Gets the href. The URL for this bare metal server.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this bare metal server.- Returns:
- the id
-
getLifecycleReasons
public List<BareMetalServerLifecycleReason> getLifecycleReasons()
Gets the lifecycleReasons. The reasons for the current `lifecycle_state` (if any).- Returns:
- the lifecycleReasons
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the bare metal server.- Returns:
- the lifecycleState
-
getMemory
public Long getMemory()
Gets the memory. The amount of memory, truncated to whole gibibytes.- Returns:
- the memory
-
getName
public String getName()
Gets the name. The name for this bare metal server. The name is unique across all bare metal servers in the region.- Returns:
- the name
-
getNetworkAttachments
public List<BareMetalServerNetworkAttachmentReference> getNetworkAttachments()
Gets the networkAttachments. The network attachments for this bare metal server, including the primary network attachment.- Returns:
- the networkAttachments
-
getNetworkInterfaces
public List<NetworkInterfaceBareMetalServerContextReference> getNetworkInterfaces()
Gets the networkInterfaces. The network interfaces for this bare metal server, including the primary network interface. If this bare metal server has network attachments, each 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.- Returns:
- the networkInterfaces
-
getPrimaryNetworkAttachment
public BareMetalServerNetworkAttachmentReference getPrimaryNetworkAttachment()
Gets the primaryNetworkAttachment. The primary network attachment for this bare metal server.- Returns:
- the primaryNetworkAttachment
-
getPrimaryNetworkInterface
public NetworkInterfaceBareMetalServerContextReference getPrimaryNetworkInterface()
Gets the primaryNetworkInterface. The primary network interface for this bare metal server. If this bare metal server has network attachments, this primary network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of the primary network attachment and its attached virtual network interface.- Returns:
- the primaryNetworkInterface
-
getProfile
public BareMetalServerProfileReference getProfile()
Gets the profile. The [profile](https://cloud.ibm.com/docs/vpc?topic=vpc-bare-metal-servers-profile) for this bare metal server.- Returns:
- the profile
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this bare metal server.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStatus
public String getStatus()
Gets the status. The status of this bare metal server: - `deleting`: server is undergoing deletion - `failed`: server is failed and not usable (see `status_reasons`) - `maintenance`: server is undergoing maintenance (not usable) - `pending`: server is being provisioned and not yet usable - `reinitializing`: server is reinitializing and not yet usable - `restarting`: server is restarting and not yet usable - `running`: server is powered on - `starting`: server is starting and not yet usable - `stopped`: server is powered off The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
getStatusReasons
public List<BareMetalServerStatusReason> getStatusReasons()
Gets the statusReasons. The reasons for the current status (if any).- Returns:
- the statusReasons
-
getTrustedPlatformModule
public BareMetalServerTrustedPlatformModule getTrustedPlatformModule()
Gets the trustedPlatformModule.- Returns:
- the trustedPlatformModule
-
getVpc
public VPCReference getVpc()
Gets the vpc. The VPC this bare metal server resides in.- Returns:
- the vpc
-
getZone
public ZoneReference getZone()
Gets the zone. The zone this bare metal server resides in.- Returns:
- the zone
-
-