Package com.authlete.common.dto
Class ServiceCreatableResponse
- java.lang.Object
-
- com.authlete.common.dto.ServiceCreatableResponse
-
- All Implemented Interfaces:
Serializable
public class ServiceCreatableResponse extends Object implements Serializable
Response from Authlete's/api/service/creatable
API.- Author:
- Takahiko Kawasaki
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceCreatableResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
Get the current number of services that the service owner has.int
getLimit()
Get the maximum number of services that can be created in the plan.Plan
getPlan()
Get the plan of the service owner.boolean
isCreatable()
Check whether the service owner can create a new service.void
setCount(int count)
Set the current number of services that the service owner has.void
setCreatable(boolean creatable)
Set the flag to indicate whether the service owner can create a new service.void
setLimit(int limit)
Set the maximum number of services that can be created in the plan.void
setPlan(Plan plan)
Set the plan of the service owner.
-
-
-
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.
-
-