public interface ShareCreateBuilder extends Buildable.Builder<ShareCreateBuilder,ShareCreate>
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.
|
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 |
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.
|
build, from
ShareCreateBuilder shareProto(Share.Protocol shareProto)
shareProto
- the Shared File Systems protocolShareCreateBuilder size(Integer size)
size
- the share sizeShareCreateBuilder name(String name)
name
- the share nameShareCreateBuilder description(String description)
description
- the share descriptionShareCreateBuilder displayName(String displayName)
displayName
- the share nameShareCreateBuilder displayDescription(String displayDescription)
displayDescription
- the share descriptionShareCreateBuilder shareType(String shareType)
shareType
- the share typeShareCreateBuilder volumeType(String volumeType)
volumeType
- the volume typeShareCreateBuilder snapshotId(String snapshotId)
snapshotId
- the snapshot IDShareCreateBuilder isPublic(Boolean isPublic)
isPublic
- the level of visibility for the shareShareCreateBuilder addMetadataItem(String key, String value)
key
- the key of the metadata itemvalue
- the value of the metadata item
ShareCreateBuilderShareCreateBuilder metadata(Map<String,String> metadata)
metadata
- the share metadataShareCreateBuilder shareNetworkId(String shareNetworkId)
shareNetworkId
- the share network IDShareCreateBuilder consistencyGroupId(String consistencyGroupId)
consistencyGroupId
- the consistency group IDShareCreateBuilder availabilityZone(String availabilityZone)
availabilityZone
- the availability zoneCopyright © 2017. All rights reserved.