public class StorageSelectors extends Object
| Constructor and Description |
|---|
StorageSelectors() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
StorageSelectorsMatchLabels |
getMatchLabels()
Get matchLabels
|
String |
getName()
selector的名字,作为storageGroup中selectorNames的索引,因此各个selector间的名字不能重复。
|
String |
getStorageType()
存储类型,当前仅支持evs(云硬盘)或local(本地盘);local存储类型不支持磁盘选择,所有本地盘将被组成一个VG,因此也仅允许只有一个local类型的storageSelector。
|
int |
hashCode() |
void |
setMatchLabels(StorageSelectorsMatchLabels matchLabels) |
void |
setName(String name) |
void |
setStorageType(String storageType) |
String |
toString() |
StorageSelectors |
withMatchLabels(java.util.function.Consumer<StorageSelectorsMatchLabels> matchLabelsSetter) |
StorageSelectors |
withMatchLabels(StorageSelectorsMatchLabels matchLabels) |
StorageSelectors |
withName(String name) |
StorageSelectors |
withStorageType(String storageType) |
public StorageSelectors withName(String name)
public String getName()
public void setName(String name)
public StorageSelectors withStorageType(String storageType)
public String getStorageType()
public void setStorageType(String storageType)
public StorageSelectors withMatchLabels(StorageSelectorsMatchLabels matchLabels)
public StorageSelectors withMatchLabels(java.util.function.Consumer<StorageSelectorsMatchLabels> matchLabelsSetter)
public StorageSelectorsMatchLabels getMatchLabels()
public void setMatchLabels(StorageSelectorsMatchLabels matchLabels)
Copyright © 2022. All rights reserved.