public class DevicePoolCompatibilityResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a device pool compatibility result.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
compatible
Whether the result was compatible with the device pool.
|
private Device |
device |
private java.util.List<IncompatibilityMessage> |
incompatibilityMessages
Information about the compatibility.
|
Constructor and Description |
---|
DevicePoolCompatibilityResult() |
Modifier and Type | Method and Description |
---|---|
DevicePoolCompatibilityResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getCompatible()
Whether the result was compatible with the device pool.
|
Device |
getDevice() |
java.util.List<IncompatibilityMessage> |
getIncompatibilityMessages()
Information about the compatibility.
|
int |
hashCode() |
java.lang.Boolean |
isCompatible()
Whether the result was compatible with the device pool.
|
void |
setCompatible(java.lang.Boolean compatible)
Whether the result was compatible with the device pool.
|
void |
setDevice(Device device) |
void |
setIncompatibilityMessages(java.util.Collection<IncompatibilityMessage> incompatibilityMessages)
Information about the compatibility.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DevicePoolCompatibilityResult |
withCompatible(java.lang.Boolean compatible)
Whether the result was compatible with the device pool.
|
DevicePoolCompatibilityResult |
withDevice(Device device) |
DevicePoolCompatibilityResult |
withIncompatibilityMessages(java.util.Collection<IncompatibilityMessage> incompatibilityMessages)
Information about the compatibility.
|
DevicePoolCompatibilityResult |
withIncompatibilityMessages(IncompatibilityMessage... incompatibilityMessages)
Information about the compatibility.
|
private Device device
private java.lang.Boolean compatible
Whether the result was compatible with the device pool.
private java.util.List<IncompatibilityMessage> incompatibilityMessages
Information about the compatibility.
public void setDevice(Device device)
device
- public Device getDevice()
public DevicePoolCompatibilityResult withDevice(Device device)
device
- public void setCompatible(java.lang.Boolean compatible)
Whether the result was compatible with the device pool.
compatible
- Whether the result was compatible with the device pool.public java.lang.Boolean getCompatible()
Whether the result was compatible with the device pool.
public DevicePoolCompatibilityResult withCompatible(java.lang.Boolean compatible)
Whether the result was compatible with the device pool.
compatible
- Whether the result was compatible with the device pool.public java.lang.Boolean isCompatible()
Whether the result was compatible with the device pool.
public java.util.List<IncompatibilityMessage> getIncompatibilityMessages()
Information about the compatibility.
public void setIncompatibilityMessages(java.util.Collection<IncompatibilityMessage> incompatibilityMessages)
Information about the compatibility.
incompatibilityMessages
- Information about the compatibility.public DevicePoolCompatibilityResult withIncompatibilityMessages(IncompatibilityMessage... incompatibilityMessages)
Information about the compatibility.
NOTE: This method appends the values to the existing list (if
any). Use setIncompatibilityMessages(java.util.Collection)
or
withIncompatibilityMessages(java.util.Collection)
if you want to
override the existing values.
incompatibilityMessages
- Information about the compatibility.public DevicePoolCompatibilityResult withIncompatibilityMessages(java.util.Collection<IncompatibilityMessage> incompatibilityMessages)
Information about the compatibility.
incompatibilityMessages
- Information about the compatibility.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DevicePoolCompatibilityResult clone()
clone
in class java.lang.Object