public static class ManilaShareCreate.ShareCreateConcreteBuilder extends Object implements ShareCreateBuilder
Constructor and Description |
---|
ShareCreateConcreteBuilder() |
ShareCreateConcreteBuilder(ManilaShareCreate shareCreate) |
Modifier and Type | Method and Description |
---|---|
ShareCreateBuilder |
addMetadataItem(String key,
String value)
Adds a new metadata item to the share.
|
ShareCreateBuilder |
availabilityZone(String availabilityZone)
Set the availability zone.
|
ShareCreate |
build()
Creates and return the Model Entity M
|
ShareCreateBuilder |
consistencyGroupId(String consistencyGroupId)
Set the UUID of the consistency group where the share was created.
|
ShareCreateBuilder |
description(String description)
Set the share description.
|
ShareCreateBuilder |
displayDescription(String displayDescription)
Set the share description.
|
ShareCreateBuilder |
displayName(String displayName)
Set the share name.
|
ShareCreateBuilder |
from(ShareCreate in)
Creates a Builder using the param M as the default values
|
ShareCreateBuilder |
isPublic(Boolean isPublic)
Set the level of visibility for the share.
|
ShareCreateBuilder |
metadata(Map<String,String> metadata)
One or more metadata key and value pairs as a dictionary of strings.
|
ShareCreateBuilder |
name(String name)
Set the share name.
|
ShareCreateBuilder |
shareNetworkId(String shareNetworkId)
Set the UUID of the share network.
|
ShareCreateBuilder |
shareProto(Share.Protocol shareProto)
Set the Shared File Systems protocol.
|
ShareCreateBuilder |
shareType(String shareType)
Set the UUID of the share type.
|
ShareCreateBuilder |
size(Integer size)
Set the share size, in GBs.
|
ShareCreateBuilder |
snapshotId(String snapshotId)
Set the UUID of the snapshot from which to create the share.
|
ShareCreateBuilder |
volumeType(String volumeType)
Set the volume type.
|
public ShareCreateConcreteBuilder()
public ShareCreateConcreteBuilder(ManilaShareCreate shareCreate)
public ShareCreateBuilder shareProto(Share.Protocol shareProto)
ShareCreateBuilder
shareProto
in interface ShareCreateBuilder
shareProto
- the Shared File Systems protocolpublic ShareCreateBuilder size(Integer size)
ShareCreateBuilder
size
in interface ShareCreateBuilder
size
- the share sizepublic ShareCreateBuilder name(String name)
ShareCreateBuilder
name
in interface ShareCreateBuilder
name
- the share namepublic ShareCreateBuilder description(String description)
ShareCreateBuilder
description
in interface ShareCreateBuilder
description
- the share descriptionpublic ShareCreateBuilder displayName(String displayName)
ShareCreateBuilder
displayName
in interface ShareCreateBuilder
displayName
- the share namepublic ShareCreateBuilder displayDescription(String displayDescription)
ShareCreateBuilder
displayDescription
in interface ShareCreateBuilder
displayDescription
- the share descriptionpublic ShareCreateBuilder shareType(String shareType)
ShareCreateBuilder
shareType
in interface ShareCreateBuilder
shareType
- the share typepublic ShareCreateBuilder volumeType(String volumeType)
ShareCreateBuilder
volumeType
in interface ShareCreateBuilder
volumeType
- the volume typepublic ShareCreateBuilder snapshotId(String snapshotId)
ShareCreateBuilder
snapshotId
in interface ShareCreateBuilder
snapshotId
- the snapshot IDpublic ShareCreateBuilder isPublic(Boolean isPublic)
ShareCreateBuilder
isPublic
in interface ShareCreateBuilder
isPublic
- the level of visibility for the sharepublic ShareCreateBuilder addMetadataItem(String key, String value)
ShareCreateBuilder
addMetadataItem
in interface ShareCreateBuilder
key
- the key of the metadata itemvalue
- the value of the metadata item
ShareCreateBuilderpublic ShareCreateBuilder metadata(Map<String,String> metadata)
ShareCreateBuilder
metadata
in interface ShareCreateBuilder
metadata
- the share metadatapublic ShareCreateBuilder shareNetworkId(String shareNetworkId)
ShareCreateBuilder
shareNetworkId
in interface ShareCreateBuilder
shareNetworkId
- the share network IDpublic ShareCreateBuilder consistencyGroupId(String consistencyGroupId)
ShareCreateBuilder
consistencyGroupId
in interface ShareCreateBuilder
consistencyGroupId
- the consistency group IDpublic ShareCreateBuilder availabilityZone(String availabilityZone)
ShareCreateBuilder
availabilityZone
in interface ShareCreateBuilder
availabilityZone
- the availability zonepublic ShareCreate build()
Buildable.Builder
build
in interface Buildable.Builder<ShareCreateBuilder,ShareCreate>
public ShareCreateBuilder from(ShareCreate in)
Buildable.Builder
from
in interface Buildable.Builder<ShareCreateBuilder,ShareCreate>
Copyright © 2017. All rights reserved.