Class ManilaShareManage.ShareManageConcreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.manila.domain.ManilaShareManage.ShareManageConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<ShareManageBuilder,ShareManage>,ShareManageBuilder
- Enclosing class:
- ManilaShareManage
public static class ManilaShareManage.ShareManageConcreteBuilder extends Object implements ShareManageBuilder
-
-
Constructor Summary
Constructors Constructor Description ShareManageConcreteBuilder()ShareManageConcreteBuilder(ManilaShareManage shareManage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShareManageBuilderaddDriverOption(String key, String value)Add a driver option.ShareManagebuild()Creates and return the Model Entity MShareManageBuilderdescription(String description)Set the share descriptionShareManageBuilderdriverOptions(Map<String,String> driverOptions)Set the driver options.ShareManageBuilderexportPath(String exportPath)Set the share export path.ShareManageBuilderfrom(ShareManage in)Creates a Builder using the param M as the default valuesShareManageBuildername(String name)Set the share name.ShareManageBuilderprotocol(Share.Protocol protocol)Set the Shared File Systems protocol of the share to manage.ShareManageBuilderserviceHost(String serviceHost)Set the manage-share service host in this format:host@backend#POOL.ShareManageBuildershareType(String shareType)Set the share type name.
-
-
-
Constructor Detail
-
ShareManageConcreteBuilder
public ShareManageConcreteBuilder()
-
ShareManageConcreteBuilder
public ShareManageConcreteBuilder(ManilaShareManage shareManage)
-
-
Method Detail
-
protocol
public ShareManageBuilder protocol(Share.Protocol protocol)
Description copied from interface:ShareManageBuilderSet the Shared File Systems protocol of the share to manage. A valid value is NFS, CIFS, GlusterFS, or HDFS.- Specified by:
protocolin interfaceShareManageBuilder- Parameters:
protocol- the share protocol- Returns:
- ShareManageBuilder
-
name
public ShareManageBuilder name(String name)
Description copied from interface:ShareManageBuilderSet the share name.- Specified by:
namein interfaceShareManageBuilder- Parameters:
name- the share name- Returns:
- ShareManageBuilder
-
shareType
public ShareManageBuilder shareType(String shareType)
Description copied from interface:ShareManageBuilderSet the share type name.- Specified by:
shareTypein interfaceShareManageBuilder- Parameters:
shareType- the share type- Returns:
- ShareManageBuilder
-
addDriverOption
public ShareManageBuilder addDriverOption(String key, String value)
Description copied from interface:ShareManageBuilderAdd a driver option.- Specified by:
addDriverOptionin interfaceShareManageBuilder- Parameters:
key- the key of the driver optionvalue- the value of the driver option- Returns:
- ShareManageBuilder
-
driverOptions
public ShareManageBuilder driverOptions(Map<String,String> driverOptions)
Description copied from interface:ShareManageBuilderSet the driver options.- Specified by:
driverOptionsin interfaceShareManageBuilder- Parameters:
driverOptions- the driver options- Returns:
- ShareManageBuilder
-
exportPath
public ShareManageBuilder exportPath(String exportPath)
Description copied from interface:ShareManageBuilderSet the share export path.- Specified by:
exportPathin interfaceShareManageBuilder- Parameters:
exportPath- the share export path- Returns:
- ShareManageBuilder
-
serviceHost
public ShareManageBuilder serviceHost(String serviceHost)
Description copied from interface:ShareManageBuilderSet the manage-share service host in this format:host@backend#POOL.- Specified by:
serviceHostin interfaceShareManageBuilder- Parameters:
serviceHost- the service host- Returns:
- ShareManageBuilder
-
description
public ShareManageBuilder description(String description)
Description copied from interface:ShareManageBuilderSet the share description- Specified by:
descriptionin interfaceShareManageBuilder- Parameters:
description- the share description- Returns:
- ShareManageBuilder
-
build
public ShareManage build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<ShareManageBuilder,ShareManage>- Returns:
- M instance
-
from
public ShareManageBuilder from(ShareManage in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<ShareManageBuilder,ShareManage>- Returns:
- Builder
-
-