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
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Hardware()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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()
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
hardware
@ApiProperty protected Hardware hardware
The hardware object that will be monitored.
-
user
@ApiProperty protected Customer user
The user that will be notified when the associated hardware object fails a monitoring instance.
-
hardwareId
@ApiProperty(canBeNullOrNotSet=true) protected Long hardwareId
The ID of the Hardware object that is to be monitored.
-
hardwareIdSpecified
protected boolean hardwareIdSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
The unique identifier for this object
-
idSpecified
protected boolean idSpecified
-
userId
@ApiProperty(canBeNullOrNotSet=true) protected Long userId
The ID of the SoftLayer_User_Customer object that represents the user to be notified on monitoring failure.
-
userIdSpecified
protected boolean userIdSpecified
-
-
Method Detail
-
getHardware
public Hardware getHardware()
-
setHardware
public void setHardware(Hardware hardware)
-
getUser
public Customer getUser()
-
setUser
public void setUser(Customer user)
-
getHardwareId
public Long getHardwareId()
-
setHardwareId
public void setHardwareId(Long hardwareId)
-
isHardwareIdSpecified
public boolean isHardwareIdSpecified()
-
unsetHardwareId
public void unsetHardwareId()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getUserId
public Long getUserId()
-
setUserId
public void setUserId(Long userId)
-
isUserIdSpecified
public boolean isUserIdSpecified()
-
unsetUserId
public void unsetUserId()
-
asService
public Hardware.Service asService(ApiClient client)
-
service
public static Hardware.Service service(ApiClient client)
-
service
public static Hardware.Service service(ApiClient client, Long id)
-
-