public static class ManilaShareManage.ShareManageConcreteBuilder extends Object implements ShareManageBuilder
Constructor and Description |
---|
ShareManageConcreteBuilder() |
ShareManageConcreteBuilder(ManilaShareManage shareManage) |
Modifier and Type | Method and Description |
---|---|
ShareManageBuilder |
addDriverOption(String key,
String value)
Add a driver option.
|
ShareManage |
build()
Creates and return the Model Entity M
|
ShareManageBuilder |
description(String description)
Set the share description
|
ShareManageBuilder |
driverOptions(Map<String,String> driverOptions)
Set the driver options.
|
ShareManageBuilder |
exportPath(String exportPath)
Set the share export path.
|
ShareManageBuilder |
from(ShareManage in)
Creates a Builder using the param M as the default values
|
ShareManageBuilder |
name(String name)
Set the share name.
|
ShareManageBuilder |
protocol(Share.Protocol protocol)
Set the Shared File Systems protocol of the share to manage.
|
ShareManageBuilder |
serviceHost(String serviceHost)
Set the manage-share service host in this format:
host@backend#POOL . |
ShareManageBuilder |
shareType(String shareType)
Set the share type name.
|
public ShareManageConcreteBuilder()
public ShareManageConcreteBuilder(ManilaShareManage shareManage)
public ShareManageBuilder protocol(Share.Protocol protocol)
ShareManageBuilder
protocol
in interface ShareManageBuilder
protocol
- the share protocolpublic ShareManageBuilder name(String name)
ShareManageBuilder
name
in interface ShareManageBuilder
name
- the share namepublic ShareManageBuilder shareType(String shareType)
ShareManageBuilder
shareType
in interface ShareManageBuilder
shareType
- the share typepublic ShareManageBuilder addDriverOption(String key, String value)
ShareManageBuilder
addDriverOption
in interface ShareManageBuilder
key
- the key of the driver optionvalue
- the value of the driver optionpublic ShareManageBuilder driverOptions(Map<String,String> driverOptions)
ShareManageBuilder
driverOptions
in interface ShareManageBuilder
driverOptions
- the driver optionspublic ShareManageBuilder exportPath(String exportPath)
ShareManageBuilder
exportPath
in interface ShareManageBuilder
exportPath
- the share export pathpublic ShareManageBuilder serviceHost(String serviceHost)
ShareManageBuilder
host@backend#POOL
.serviceHost
in interface ShareManageBuilder
serviceHost
- the service hostpublic ShareManageBuilder description(String description)
ShareManageBuilder
description
in interface ShareManageBuilder
description
- the share descriptionpublic ShareManage build()
Buildable.Builder
build
in interface Buildable.Builder<ShareManageBuilder,ShareManage>
public ShareManageBuilder from(ShareManage in)
Buildable.Builder
from
in interface Buildable.Builder<ShareManageBuilder,ShareManage>
Copyright © 2017. All rights reserved.