Package com.clover.sdk.v3.device
Class PeripheralBundleCountry
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.device.PeripheralBundleCountry
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PeripheralBundleCountry extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PeripheralBundleCountry.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<PeripheralBundleCountry>
CREATOR
static JSONifiable.Creator<PeripheralBundleCountry>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PeripheralBundleCountry()
Constructs a new empty instance.protected
PeripheralBundleCountry(boolean noInit)
Constructs a new empty instance.PeripheralBundleCountry(PeripheralBundleCountry src)
Constructs a new instance that is a deep copy of the source instance.PeripheralBundleCountry(String json)
Constructs a new instance from the given JSON String.PeripheralBundleCountry(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearCountry()
Clears the 'country' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearDeviceTypeName()
Clears the 'deviceTypeName' field, the 'has' method for this field will now return falsevoid
clearEquipmentCode()
Clears the 'equipmentCode' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearPrice()
Clears the 'price' field, the 'has' method for this field will now return falsevoid
clearPricingDescription()
Clears the 'pricingDescription' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.PeripheralBundleCountry
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getCountry()
The country of the peripheral bundle countryLong
getCreatedTime()
Date/time this bundle was created.String
getDeviceTypeName()
String
getEquipmentCode()
protected GenericClient
getGenericClient()
String
getId()
Unique identifierJSONObject
getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.Long
getModifiedTime()
Date/time this bundle was last modified.Long
getPrice()
String
getPricingDescription()
User-friendly description of pricing for peripheralboolean
hasCountry()
Checks whether the 'country' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasDeviceTypeName()
Checks whether the 'deviceTypeName' field has been set, however the value could be nullboolean
hasEquipmentCode()
Checks whether the 'equipmentCode' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasPrice()
Checks whether the 'price' field has been set, however the value could be nullboolean
hasPricingDescription()
Checks whether the 'pricingDescription' field has been set, however the value could be nullboolean
isNotNullCountry()
Checks whether the 'country' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullDeviceTypeName()
Checks whether the 'deviceTypeName' field is set and is not nullboolean
isNotNullEquipmentCode()
Checks whether the 'equipmentCode' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullPrice()
Checks whether the 'price' field is set and is not nullboolean
isNotNullPricingDescription()
Checks whether the 'pricingDescription' field is set and is not nullvoid
mergeChanges(PeripheralBundleCountry src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.PeripheralBundleCountry
setCountry(String country)
Sets the field 'country'.PeripheralBundleCountry
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.PeripheralBundleCountry
setDeviceTypeName(String deviceTypeName)
Sets the field 'deviceTypeName'.PeripheralBundleCountry
setEquipmentCode(String equipmentCode)
Sets the field 'equipmentCode'.PeripheralBundleCountry
setId(String id)
Sets the field 'id'.PeripheralBundleCountry
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.PeripheralBundleCountry
setPrice(Long price)
Sets the field 'price'.PeripheralBundleCountry
setPricingDescription(String pricingDescription)
Sets the field 'pricingDescription'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PeripheralBundleCountry> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PeripheralBundleCountry> JSON_CREATOR
-
-
Constructor Detail
-
PeripheralBundleCountry
public PeripheralBundleCountry()
Constructs a new empty instance.
-
PeripheralBundleCountry
protected PeripheralBundleCountry(boolean noInit)
Constructs a new empty instance.
-
PeripheralBundleCountry
public PeripheralBundleCountry(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PeripheralBundleCountry
public PeripheralBundleCountry(JSONObject jsonObject)
Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
PeripheralBundleCountry
public PeripheralBundleCountry(PeripheralBundleCountry src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getId
public String getId()
Unique identifier
-
getPrice
public Long getPrice()
-
getPricingDescription
public String getPricingDescription()
User-friendly description of pricing for peripheral
-
getCountry
public String getCountry()
The country of the peripheral bundle country
-
getDeviceTypeName
public String getDeviceTypeName()
-
getEquipmentCode
public String getEquipmentCode()
-
getCreatedTime
public Long getCreatedTime()
Date/time this bundle was created.
-
getModifiedTime
public Long getModifiedTime()
Date/time this bundle was last modified.
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.- Specified by:
getJSONObject
in interfaceJSONifiable
-
isNotNullId
public boolean isNotNullId()
Checks whether the 'id' field is set and is not null
-
isNotNullPrice
public boolean isNotNullPrice()
Checks whether the 'price' field is set and is not null
-
isNotNullPricingDescription
public boolean isNotNullPricingDescription()
Checks whether the 'pricingDescription' field is set and is not null
-
isNotNullCountry
public boolean isNotNullCountry()
Checks whether the 'country' field is set and is not null
-
isNotNullDeviceTypeName
public boolean isNotNullDeviceTypeName()
Checks whether the 'deviceTypeName' field is set and is not null
-
isNotNullEquipmentCode
public boolean isNotNullEquipmentCode()
Checks whether the 'equipmentCode' field is set and is not null
-
isNotNullCreatedTime
public boolean isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not null
-
isNotNullModifiedTime
public boolean isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not null
-
hasId
public boolean hasId()
Checks whether the 'id' field has been set, however the value could be null
-
hasPrice
public boolean hasPrice()
Checks whether the 'price' field has been set, however the value could be null
-
hasPricingDescription
public boolean hasPricingDescription()
Checks whether the 'pricingDescription' field has been set, however the value could be null
-
hasCountry
public boolean hasCountry()
Checks whether the 'country' field has been set, however the value could be null
-
hasDeviceTypeName
public boolean hasDeviceTypeName()
Checks whether the 'deviceTypeName' field has been set, however the value could be null
-
hasEquipmentCode
public boolean hasEquipmentCode()
Checks whether the 'equipmentCode' field has been set, however the value could be null
-
hasCreatedTime
public boolean hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be null
-
hasModifiedTime
public boolean hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be null
-
setId
public PeripheralBundleCountry setId(String id)
Sets the field 'id'.
-
setPrice
public PeripheralBundleCountry setPrice(Long price)
Sets the field 'price'.
-
setPricingDescription
public PeripheralBundleCountry setPricingDescription(String pricingDescription)
Sets the field 'pricingDescription'.
-
setCountry
public PeripheralBundleCountry setCountry(String country)
Sets the field 'country'.
-
setDeviceTypeName
public PeripheralBundleCountry setDeviceTypeName(String deviceTypeName)
Sets the field 'deviceTypeName'.
-
setEquipmentCode
public PeripheralBundleCountry setEquipmentCode(String equipmentCode)
Sets the field 'equipmentCode'.
-
setCreatedTime
public PeripheralBundleCountry setCreatedTime(Long createdTime)
Sets the field 'createdTime'.
-
setModifiedTime
public PeripheralBundleCountry setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.
-
clearId
public void clearId()
Clears the 'id' field, the 'has' method for this field will now return false
-
clearPrice
public void clearPrice()
Clears the 'price' field, the 'has' method for this field will now return false
-
clearPricingDescription
public void clearPricingDescription()
Clears the 'pricingDescription' field, the 'has' method for this field will now return false
-
clearCountry
public void clearCountry()
Clears the 'country' field, the 'has' method for this field will now return false
-
clearDeviceTypeName
public void clearDeviceTypeName()
Clears the 'deviceTypeName' field, the 'has' method for this field will now return false
-
clearEquipmentCode
public void clearEquipmentCode()
Clears the 'equipmentCode' field, the 'has' method for this field will now return false
-
clearCreatedTime
public void clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return false
-
clearModifiedTime
public void clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public PeripheralBundleCountry copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PeripheralBundleCountry src)
Copy all the changed fields from the given source to this instance.
-
-