Class ServiceCreatableResponse

    • Constructor Detail

      • ServiceCreatableResponse

        public ServiceCreatableResponse()
    • Method Detail

      • isCreatable

        public boolean isCreatable()
        Check whether the service owner can create a new service.
        Returns:
        true if the service owner can create a new service. false if the current number of services that the service owner has reached or exceeded the maximum number of services allowed in the plan.
      • setCreatable

        public void setCreatable​(boolean creatable)
        Set the flag to indicate whether the service owner can create a new service.
        Parameters:
        creatable - true if the service owner can create a new service. Otherwise, false.
      • getCount

        public int getCount()
        Get the current number of services that the service owner has.
        Returns:
        The number of services.
      • setCount

        public void setCount​(int count)
        Set the current number of services that the service owner has.
        Parameters:
        count - The number of services.
      • getLimit

        public int getLimit()
        Get the maximum number of services that can be created in the plan.
        Returns:
        The maximum number of services that can be created.
      • setLimit

        public void setLimit​(int limit)
        Set the maximum number of services that can be created in the plan.
        Parameters:
        limit - The maximum number of services that can be created.
      • getPlan

        public Plan getPlan()
        Get the plan of the service owner.
        Returns:
        The plan.
      • setPlan

        public void setPlan​(Plan plan)
        Set the plan of the service owner.
        Parameters:
        plan - The plan.