Class Hardware
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.user.customer.notification.Hardware
@ApiType("SoftLayer_User_Customer_Notification_Hardware") public class Hardware extends Entity
The Customer_Notification_Hardware object stores links between customers and the hardware devices they wish to monitor. This link is not enough, the user must be sure to also create SoftLayer_Network_Monitor_Version1_Query_Host instance with the response action set to "notify users" in order for the users linked to that hardware object to be notified on failure.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Hardware.Mask
static interface
Hardware.Service
This service represents the link between a monitored hardware instance, and a user account.static interface
Hardware.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected Hardware
hardware
The hardware object that will be monitored.protected Long
hardwareId
The ID of the Hardware object that is to be monitored.protected boolean
hardwareIdSpecified
protected Long
id
The unique identifier for this objectprotected boolean
idSpecified
protected Customer
user
The user that will be notified when the associated hardware object fails a monitoring instance.protected Long
userId
The ID of the SoftLayer_User_Customer object that represents the user to be notified on monitoring failure.protected boolean
userIdSpecified
-
Constructor Summary
Constructors Constructor Description Hardware()
-
Method Summary
Modifier and Type Method Description Hardware.Service
asService(ApiClient client)
Hardware
getHardware()
Long
getHardwareId()
Long
getId()
Customer
getUser()
Long
getUserId()
boolean
isHardwareIdSpecified()
boolean
isIdSpecified()
boolean
isUserIdSpecified()
static Hardware.Service
service(ApiClient client)
static Hardware.Service
service(ApiClient client, Long id)
void
setHardware(Hardware hardware)
void
setHardwareId(Long hardwareId)
void
setId(Long id)
void
setUser(Customer user)
void
setUserId(Long userId)
void
unsetHardwareId()
void
unsetId()
void
unsetUserId()
-
Field Details
-
hardware
The hardware object that will be monitored. -
user
The user that will be notified when the associated hardware object fails a monitoring instance. -
hardwareId
The ID of the Hardware object that is to be monitored. -
hardwareIdSpecified
protected boolean hardwareIdSpecified -
id
The unique identifier for this object -
idSpecified
protected boolean idSpecified -
userId
The ID of the SoftLayer_User_Customer object that represents the user to be notified on monitoring failure. -
userIdSpecified
protected boolean userIdSpecified
-
-
Constructor Details
-
Hardware
public Hardware()
-
-
Method Details
-
getHardware
-
setHardware
-
getUser
-
setUser
-
getHardwareId
-
setHardwareId
-
isHardwareIdSpecified
public boolean isHardwareIdSpecified() -
unsetHardwareId
public void unsetHardwareId() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getUserId
-
setUserId
-
isUserIdSpecified
public boolean isUserIdSpecified() -
unsetUserId
public void unsetUserId() -
asService
-
service
-
service
-