public class DeveloperMerchantLimits extends GenericParcelable implements Validator, JSONifiable
Modifier and Type | Class and Description |
---|---|
static interface |
DeveloperMerchantLimits.Constraints |
JSONifiable.Creator<T>
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<DeveloperMerchantLimits> |
CREATOR |
static JSONifiable.Creator<DeveloperMerchantLimits> |
JSON_CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
|
DeveloperMerchantLimits()
Constructs a new empty instance.
|
protected |
DeveloperMerchantLimits(boolean noInit)
Constructs a new empty instance.
|
|
DeveloperMerchantLimits(DeveloperMerchantLimits src)
Constructs a new instance that is a deep copy of the source instance.
|
|
DeveloperMerchantLimits(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.
|
|
DeveloperMerchantLimits(String json)
Constructs a new instance from the given JSON String.
|
Modifier and Type | Method and Description |
---|---|
void |
clearConcurrentMerchantRequestLimit()
Clears the 'concurrentMerchantRequestLimit' field, the 'has' method for this field will now return false
|
void |
clearConcurrentRequestLimit()
Clears the 'concurrentRequestLimit' field, the 'has' method for this field will now return false
|
void |
clearMerchantRequestLimit()
Clears the 'merchantRequestLimit' field, the 'has' method for this field will now return false
|
void |
clearRequestLimit()
Clears the 'requestLimit' field, the 'has' method for this field will now return false
|
boolean |
containsChanges()
Returns true if this instance has any changes.
|
DeveloperMerchantLimits |
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
|
Integer |
getConcurrentMerchantRequestLimit()
Concurrent request limit for each merchant app.
|
Integer |
getConcurrentRequestLimit()
Total concurrent requests for developer app.
|
protected GenericClient |
getGenericClient() |
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.
|
Integer |
getMerchantRequestLimit()
Limit for each merchant app.
|
Integer |
getRequestLimit()
Total limit for developers.
|
boolean |
hasConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field has been set, however the value could be null
|
boolean |
hasConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field has been set, however the value could be null
|
boolean |
hasMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field has been set, however the value could be null
|
boolean |
hasRequestLimit()
Checks whether the 'requestLimit' field has been set, however the value could be null
|
boolean |
isNotNullConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field is set and is not null
|
boolean |
isNotNullConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field is set and is not null
|
boolean |
isNotNullMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field is set and is not null
|
boolean |
isNotNullRequestLimit()
Checks whether the 'requestLimit' field is set and is not null
|
void |
mergeChanges(DeveloperMerchantLimits 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.
|
DeveloperMerchantLimits |
setConcurrentMerchantRequestLimit(Integer concurrentMerchantRequestLimit)
Sets the field 'concurrentMerchantRequestLimit'.
|
DeveloperMerchantLimits |
setConcurrentRequestLimit(Integer concurrentRequestLimit)
Sets the field 'concurrentRequestLimit'.
|
DeveloperMerchantLimits |
setMerchantRequestLimit(Integer merchantRequestLimit)
Sets the field 'merchantRequestLimit'.
|
DeveloperMerchantLimits |
setRequestLimit(Integer requestLimit)
Sets the field 'requestLimit'.
|
void |
validate() |
describeContents, getBundle, toString, writeToParcel
public static final Parcelable.Creator<DeveloperMerchantLimits> CREATOR
public static final JSONifiable.Creator<DeveloperMerchantLimits> JSON_CREATOR
public DeveloperMerchantLimits()
protected DeveloperMerchantLimits(boolean noInit)
public DeveloperMerchantLimits(String json) throws IllegalArgumentException
IllegalArgumentException
public DeveloperMerchantLimits(JSONObject jsonObject)
public DeveloperMerchantLimits(DeveloperMerchantLimits src)
public Integer getRequestLimit()
public Integer getMerchantRequestLimit()
public Integer getConcurrentRequestLimit()
public Integer getConcurrentMerchantRequestLimit()
protected GenericClient getGenericClient()
getGenericClient
in class GenericParcelable
public JSONObject getJSONObject()
getJSONObject
in interface JSONifiable
public boolean isNotNullRequestLimit()
public boolean isNotNullMerchantRequestLimit()
public boolean isNotNullConcurrentRequestLimit()
public boolean isNotNullConcurrentMerchantRequestLimit()
public boolean hasRequestLimit()
public boolean hasMerchantRequestLimit()
public boolean hasConcurrentRequestLimit()
public boolean hasConcurrentMerchantRequestLimit()
public DeveloperMerchantLimits setRequestLimit(Integer requestLimit)
public DeveloperMerchantLimits setMerchantRequestLimit(Integer merchantRequestLimit)
public DeveloperMerchantLimits setConcurrentRequestLimit(Integer concurrentRequestLimit)
public DeveloperMerchantLimits setConcurrentMerchantRequestLimit(Integer concurrentMerchantRequestLimit)
public void clearRequestLimit()
public void clearMerchantRequestLimit()
public void clearConcurrentRequestLimit()
public void clearConcurrentMerchantRequestLimit()
public boolean containsChanges()
public void resetChangeLog()
public DeveloperMerchantLimits copyChanges()
public void mergeChanges(DeveloperMerchantLimits src)