Interface ShareCreateBuilder
-
- All Superinterfaces:
Buildable.Builder<ShareCreateBuilder,ShareCreate>
- All Known Implementing Classes:
ManilaShareCreate.ShareCreateConcreteBuilder
public interface ShareCreateBuilder extends Buildable.Builder<ShareCreateBuilder,ShareCreate>
Builds aShareCreate.- Author:
- Daniel Gonzalez Nothnagel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShareCreateBuilderaddMetadataItem(String key, String value)Adds a new metadata item to the share.ShareCreateBuilderavailabilityZone(String availabilityZone)Set the availability zone.ShareCreateBuilderconsistencyGroupId(String consistencyGroupId)Set the UUID of the consistency group where the share was created.ShareCreateBuilderdescription(String description)Set the share description.ShareCreateBuilderdisplayDescription(String displayDescription)Set the share description.ShareCreateBuilderdisplayName(String displayName)Set the share name.ShareCreateBuilderisPublic(Boolean isPublic)Set the level of visibility for the share.ShareCreateBuildermetadata(Map<String,String> metadata)One or more metadata key and value pairs as a dictionary of strings.ShareCreateBuildername(String name)Set the share name.ShareCreateBuildershareNetworkId(String shareNetworkId)Set the UUID of the share network.ShareCreateBuildershareProto(Share.Protocol shareProto)Set the Shared File Systems protocol.ShareCreateBuildershareType(String shareType)Set the UUID of the share type.ShareCreateBuildersize(Integer size)Set the share size, in GBs.ShareCreateBuildersnapshotId(String snapshotId)Set the UUID of the snapshot from which to create the share.ShareCreateBuildervolumeType(String volumeType)Set the volume type.-
Methods inherited from interface org.openstack4j.common.Buildable.Builder
build, from
-
-
-
-
Method Detail
-
shareProto
ShareCreateBuilder shareProto(Share.Protocol shareProto)
Set the Shared File Systems protocol.- Parameters:
shareProto- the Shared File Systems protocol- Returns:
- ShareCreateBuilder
-
size
ShareCreateBuilder size(Integer size)
Set the share size, in GBs.- Parameters:
size- the share size- Returns:
- ShareCreateBuilder
-
name
ShareCreateBuilder name(String name)
Set the share name.- Parameters:
name- the share name- Returns:
- ShareCreateBuilder
-
description
ShareCreateBuilder description(String description)
Set the share description.- Parameters:
description- the share description- Returns:
- ShareCreateBuilder
-
displayName
ShareCreateBuilder displayName(String displayName)
Set the share name.- Parameters:
displayName- the share name- Returns:
- ShareCreateBuilder
-
displayDescription
ShareCreateBuilder displayDescription(String displayDescription)
Set the share description.- Parameters:
displayDescription- the share description- Returns:
- ShareCreateBuilder
-
shareType
ShareCreateBuilder shareType(String shareType)
Set the UUID of the share type.- Parameters:
shareType- the share type- Returns:
- ShareCreateBuilder
-
volumeType
ShareCreateBuilder volumeType(String volumeType)
Set the volume type.- Parameters:
volumeType- the volume type- Returns:
- ShareCreateBuilder
-
snapshotId
ShareCreateBuilder snapshotId(String snapshotId)
Set the UUID of the snapshot from which to create the share.- Parameters:
snapshotId- the snapshot ID- Returns:
- ShareCreateBuilder
-
isPublic
ShareCreateBuilder isPublic(Boolean isPublic)
Set the level of visibility for the share.- Parameters:
isPublic- the level of visibility for the share- Returns:
- ShareCreateBuilder
-
addMetadataItem
ShareCreateBuilder addMetadataItem(String key, String value)
Adds a new metadata item to the share.- Parameters:
key- the key of the metadata itemvalue- the value of the metadata item ShareCreateBuilder- Returns:
- ShareCreateBuilder
-
metadata
ShareCreateBuilder metadata(Map<String,String> metadata)
One or more metadata key and value pairs as a dictionary of strings.- Parameters:
metadata- the share metadata- Returns:
- ShareCreateBuilder
-
shareNetworkId
ShareCreateBuilder shareNetworkId(String shareNetworkId)
Set the UUID of the share network.- Parameters:
shareNetworkId- the share network ID- Returns:
- ShareCreateBuilder
-
consistencyGroupId
ShareCreateBuilder consistencyGroupId(String consistencyGroupId)
Set the UUID of the consistency group where the share was created.- Parameters:
consistencyGroupId- the consistency group ID- Returns:
- ShareCreateBuilder
-
availabilityZone
ShareCreateBuilder availabilityZone(String availabilityZone)
Set the availability zone.- Parameters:
availabilityZone- the availability zone- Returns:
- ShareCreateBuilder
-
-