public class ResourcePrice extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourcePrice.ArchEnum
cpu架构 x86|arm
|
| Constructor and Description |
|---|
ResourcePrice() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ResourcePrice.ArchEnum |
getArch()
cpu架构 x86|arm
|
Float |
getPrice()
价格
minimum: 0
maximum: 1E+8
|
String |
getSize()
规格。 类型为'storage'时,size值可以为5GB,10GB,20GB。 类型为'cpuMemory'时,arch为'x86',size值可以为1U1G,2U4G,4U8G;arch为'arm',size值可以为4U8G。
|
String |
getType()
类型。目前可以取值storage,cpuMemory
|
int |
hashCode() |
void |
setArch(ResourcePrice.ArchEnum arch) |
void |
setPrice(Float price) |
void |
setSize(String size) |
void |
setType(String type) |
String |
toString() |
ResourcePrice |
withArch(ResourcePrice.ArchEnum arch) |
ResourcePrice |
withPrice(Float price) |
ResourcePrice |
withSize(String size) |
ResourcePrice |
withType(String type) |
public ResourcePrice withArch(ResourcePrice.ArchEnum arch)
public ResourcePrice.ArchEnum getArch()
public void setArch(ResourcePrice.ArchEnum arch)
public ResourcePrice withPrice(Float price)
public Float getPrice()
public void setPrice(Float price)
public ResourcePrice withSize(String size)
public String getSize()
public void setSize(String size)
public ResourcePrice withType(String type)
public String getType()
public void setType(String type)
Copyright © 2022. All rights reserved.