public class AppMeteredCountry extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
AppMeteredCountry.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AppMeteredCountry> |
CREATOR |
static JSONifiable.Creator<AppMeteredCountry> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
AppMeteredCountry()
Constructs a new empty instance.
|
|
AppMeteredCountry(AppMeteredCountry src)
Constructs a new instance that is a deep copy of the source instance.
|
protected |
AppMeteredCountry(boolean noInit)
Constructs a new empty instance.
|
|
AppMeteredCountry(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.
|
|
AppMeteredCountry(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearAction()
Clears the 'action' field, the 'has' method for this field will now return false
|
void |
clearActive()
Clears the 'active' field, the 'has' method for this field will now return false
|
void |
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return false
|
void |
clearAppMetered()
Clears the 'appMetered' field, the 'has' method for this field will now return false
|
void |
clearCountry()
Clears the 'country' field, the 'has' method for this field will now return false
|
void |
clearId()
Clears the 'id' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
AppMeteredCountry |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
String |
getAction()
App metered action
|
Boolean |
getActive()
App metered country active status
|
Long |
getAmount()
The cost of the metered country
|
Reference |
getAppMetered()
Reference to metered this metered country belongs to
|
String |
getCountry()
The country of the metered country
|
protected GenericClient |
getGenericClient() |
String |
getId()
Unique identifier
|
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.
|
boolean |
hasAction()
Checks whether the 'action' field has been set, however the value could be null
|
boolean |
hasActive()
Checks whether the 'active' field has been set, however the value could be null
|
boolean |
hasAmount()
Checks whether the 'amount' field has been set, however the value could be null
|
boolean |
hasAppMetered()
Checks whether the 'appMetered' field has been set, however the value could be null
|
boolean |
hasCountry()
Checks whether the 'country' field has been set, however the value could be null
|
boolean |
hasId()
Checks whether the 'id' field has been set, however the value could be null
|
boolean |
isNotNullAction()
Checks whether the 'action' field is set and is not null
|
boolean |
isNotNullActive()
Checks whether the 'active' field is set and is not null
|
boolean |
isNotNullAmount()
Checks whether the 'amount' field is set and is not null
|
boolean |
isNotNullAppMetered()
Checks whether the 'appMetered' field is set and is not null
|
boolean |
isNotNullCountry()
Checks whether the 'country' field is set and is not null
|
boolean |
isNotNullId()
Checks whether the 'id' field is set and is not null
|
void |
mergeChanges(AppMeteredCountry 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.
|
AppMeteredCountry |
setAction(String action)
Sets the field 'action'.
|
AppMeteredCountry |
setActive(Boolean active)
Sets the field 'active'.
|
AppMeteredCountry |
setAmount(Long amount)
Sets the field 'amount'.
|
AppMeteredCountry |
setAppMetered(Reference appMetered)
Sets the field 'appMetered'.
|
AppMeteredCountry |
setCountry(String country)
Sets the field 'country'.
|
AppMeteredCountry |
setId(String id)
Sets the field 'id'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<AppMeteredCountry> CREATOR
public static final JSONifiable.Creator<AppMeteredCountry> JSON_CREATOR
public AppMeteredCountry()
protected AppMeteredCountry(boolean noInit)
public AppMeteredCountry(String json) throws IllegalArgumentException
IllegalArgumentException
public AppMeteredCountry(JSONObject jsonObject)
public AppMeteredCountry(AppMeteredCountry src)
public String getId()
public String getAction()
public Long getAmount()
public String getCountry()
public Boolean getActive()
public Reference getAppMetered()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullId()
public boolean isNotNullAction()
public boolean isNotNullAmount()
public boolean isNotNullCountry()
public boolean isNotNullActive()
public boolean isNotNullAppMetered()
public boolean hasId()
public boolean hasAction()
public boolean hasAmount()
public boolean hasCountry()
public boolean hasActive()
public boolean hasAppMetered()
public AppMeteredCountry setId(String id)
public AppMeteredCountry setAction(String action)
public AppMeteredCountry setAmount(Long amount)
public AppMeteredCountry setCountry(String country)
public AppMeteredCountry setActive(Boolean active)
public AppMeteredCountry setAppMetered(Reference appMetered)
public void clearId()
public void clearAction()
public void clearAmount()
public void clearCountry()
public void clearActive()
public void clearAppMetered()
public boolean containsChanges()
public void resetChangeLog()
public AppMeteredCountry copyChanges()
public void mergeChanges(AppMeteredCountry src)