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)
ShareCreateBuildershareProto in interface ShareCreateBuildershareProto - the Shared File Systems protocolpublic ShareCreateBuilder size(Integer size)
ShareCreateBuildersize in interface ShareCreateBuildersize - the share sizepublic ShareCreateBuilder name(String name)
ShareCreateBuildername in interface ShareCreateBuildername - the share namepublic ShareCreateBuilder description(String description)
ShareCreateBuilderdescription in interface ShareCreateBuilderdescription - the share descriptionpublic ShareCreateBuilder displayName(String displayName)
ShareCreateBuilderdisplayName in interface ShareCreateBuilderdisplayName - the share namepublic ShareCreateBuilder displayDescription(String displayDescription)
ShareCreateBuilderdisplayDescription in interface ShareCreateBuilderdisplayDescription - the share descriptionpublic ShareCreateBuilder shareType(String shareType)
ShareCreateBuildershareType in interface ShareCreateBuildershareType - the share typepublic ShareCreateBuilder volumeType(String volumeType)
ShareCreateBuildervolumeType in interface ShareCreateBuildervolumeType - the volume typepublic ShareCreateBuilder snapshotId(String snapshotId)
ShareCreateBuildersnapshotId in interface ShareCreateBuildersnapshotId - the snapshot IDpublic ShareCreateBuilder isPublic(Boolean isPublic)
ShareCreateBuilderisPublic in interface ShareCreateBuilderisPublic - the level of visibility for the sharepublic ShareCreateBuilder addMetadataItem(String key, String value)
ShareCreateBuilderaddMetadataItem in interface ShareCreateBuilderkey - the key of the metadata itemvalue - the value of the metadata item
ShareCreateBuilderpublic ShareCreateBuilder metadata(Map<String,String> metadata)
ShareCreateBuildermetadata in interface ShareCreateBuildermetadata - the share metadatapublic ShareCreateBuilder shareNetworkId(String shareNetworkId)
ShareCreateBuildershareNetworkId in interface ShareCreateBuildershareNetworkId - the share network IDpublic ShareCreateBuilder consistencyGroupId(String consistencyGroupId)
ShareCreateBuilderconsistencyGroupId in interface ShareCreateBuilderconsistencyGroupId - the consistency group IDpublic ShareCreateBuilder availabilityZone(String availabilityZone)
ShareCreateBuilderavailabilityZone in interface ShareCreateBuilderavailabilityZone - the availability zonepublic ShareCreate build()
Buildable.Builderbuild in interface Buildable.Builder<ShareCreateBuilder,ShareCreate>public ShareCreateBuilder from(ShareCreate in)
Buildable.Builderfrom in interface Buildable.Builder<ShareCreateBuilder,ShareCreate>Copyright © 2017. All rights reserved.