public class ServiceCreatableResponse extends Object implements Serializable
/api/service/creatable API.| Constructor and Description |
|---|
ServiceCreatableResponse() |
| Modifier and Type | Method and 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.
|
public boolean isCreatable()
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.public void setCreatable(boolean creatable)
creatable - true if the service owner can create a new service.
Otherwise, false.public int getCount()
public void setCount(int count)
count - The number of services.public int getLimit()
public void setLimit(int limit)
limit - The maximum number of services that can be created.public Plan getPlan()
public void setPlan(Plan plan)
plan - The plan.Copyright © 2017. All rights reserved.