Class AppMeteredCountry

    • Constructor Detail

      • AppMeteredCountry

        public AppMeteredCountry()
        Constructs a new empty instance.
      • AppMeteredCountry

        protected AppMeteredCountry​(boolean noInit)
        Constructs a new empty instance.
      • AppMeteredCountry

        public 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

        public AppMeteredCountry​(AppMeteredCountry 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
      • getAction

        public String getAction()
        App metered action
      • getAmount

        public Long getAmount()
        The cost of the metered country
      • getCountry

        public String getCountry()
        The country of the metered country
      • getActive

        public Boolean getActive()
        App metered country active status
      • getAppMetered

        public Reference getAppMetered()
        Reference to metered this metered country belongs to
      • 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 interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullAction

        public boolean isNotNullAction()
        Checks whether the 'action' field is set and is not null
      • isNotNullAmount

        public boolean isNotNullAmount()
        Checks whether the 'amount' field is set and is not null
      • isNotNullCountry

        public boolean isNotNullCountry()
        Checks whether the 'country' field is set and is not null
      • isNotNullActive

        public boolean isNotNullActive()
        Checks whether the 'active' field is set and is not null
      • isNotNullAppMetered

        public boolean isNotNullAppMetered()
        Checks whether the 'appMetered' 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
      • hasAction

        public boolean hasAction()
        Checks whether the 'action' field has been set, however the value could be null
      • hasAmount

        public boolean hasAmount()
        Checks whether the 'amount' 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
      • hasActive

        public boolean hasActive()
        Checks whether the 'active' field has been set, however the value could be null
      • hasAppMetered

        public boolean hasAppMetered()
        Checks whether the 'appMetered' field has been set, however the value could be null
      • setAppMetered

        public AppMeteredCountry setAppMetered​(Reference appMetered)
        Sets the field 'appMetered'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearAction

        public void clearAction()
        Clears the 'action' field, the 'has' method for this field will now return false
      • clearAmount

        public void clearAmount()
        Clears the 'amount' 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
      • clearActive

        public void clearActive()
        Clears the 'active' field, the 'has' method for this field will now return false
      • clearAppMetered

        public void clearAppMetered()
        Clears the 'appMetered' 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 AppMeteredCountry copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(AppMeteredCountry src)
        Copy all the changed fields from the given source to this instance.