Class Resources
- java.lang.Object
-
- com.huaweicloud.sdk.functiongraph.v2.model.Resources
-
public class Resources extends Object
Resources
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResources.TypeEnum“资源类型”
-
Constructor Summary
Constructors Constructor Description Resources()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IntegergetQuota()函数配额限制。Resources.TypeEnumgetType()“资源类型”StringgetUnit()资源的计数单位。fgs_func_code_size,单位为MB,其他场景无单位IntegergetUsed()已使用的配额。inthashCode()voidsetQuota(Integer quota)voidsetType(Resources.TypeEnum type)voidsetUnit(String unit)voidsetUsed(Integer used)StringtoString()ResourceswithQuota(Integer quota)ResourceswithType(Resources.TypeEnum type)ResourceswithUnit(String unit)ResourceswithUsed(Integer used)
-
-
-
Method Detail
-
getQuota
public Integer getQuota()
函数配额限制。- Returns:
- quota
-
setQuota
public void setQuota(Integer quota)
-
getUsed
public Integer getUsed()
已使用的配额。- Returns:
- used
-
setUsed
public void setUsed(Integer used)
-
withType
public Resources withType(Resources.TypeEnum type)
-
getType
public Resources.TypeEnum getType()
“资源类型”- Returns:
- type
-
setType
public void setType(Resources.TypeEnum type)
-
getUnit
public String getUnit()
资源的计数单位。fgs_func_code_size,单位为MB,其他场景无单位- Returns:
- unit
-
setUnit
public void setUnit(String unit)
-
-