Class ManilaShareCreate.ShareCreateConcreteBuilder
- java.lang.Object
-
- org.openstack4j.openstack.manila.domain.ManilaShareCreate.ShareCreateConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<ShareCreateBuilder,ShareCreate>,ShareCreateBuilder
- Enclosing class:
- ManilaShareCreate
public static class ManilaShareCreate.ShareCreateConcreteBuilder extends Object implements ShareCreateBuilder
-
-
Constructor Summary
Constructors Constructor Description ShareCreateConcreteBuilder()ShareCreateConcreteBuilder(ManilaShareCreate shareCreate)
-
Method Summary
All Methods Instance Methods Concrete 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.ShareCreatebuild()Creates and return the Model Entity MShareCreateBuilderconsistencyGroupId(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.ShareCreateBuilderfrom(ShareCreate in)Creates a Builder using the param M as the default valuesShareCreateBuilderisPublic(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.
-
-
-
Constructor Detail
-
ShareCreateConcreteBuilder
public ShareCreateConcreteBuilder()
-
ShareCreateConcreteBuilder
public ShareCreateConcreteBuilder(ManilaShareCreate shareCreate)
-
-
Method Detail
-
shareProto
public ShareCreateBuilder shareProto(Share.Protocol shareProto)
Description copied from interface:ShareCreateBuilderSet the Shared File Systems protocol.- Specified by:
shareProtoin interfaceShareCreateBuilder- Parameters:
shareProto- the Shared File Systems protocol- Returns:
- ShareCreateBuilder
-
size
public ShareCreateBuilder size(Integer size)
Description copied from interface:ShareCreateBuilderSet the share size, in GBs.- Specified by:
sizein interfaceShareCreateBuilder- Parameters:
size- the share size- Returns:
- ShareCreateBuilder
-
name
public ShareCreateBuilder name(String name)
Description copied from interface:ShareCreateBuilderSet the share name.- Specified by:
namein interfaceShareCreateBuilder- Parameters:
name- the share name- Returns:
- ShareCreateBuilder
-
description
public ShareCreateBuilder description(String description)
Description copied from interface:ShareCreateBuilderSet the share description.- Specified by:
descriptionin interfaceShareCreateBuilder- Parameters:
description- the share description- Returns:
- ShareCreateBuilder
-
displayName
public ShareCreateBuilder displayName(String displayName)
Description copied from interface:ShareCreateBuilderSet the share name.- Specified by:
displayNamein interfaceShareCreateBuilder- Parameters:
displayName- the share name- Returns:
- ShareCreateBuilder
-
displayDescription
public ShareCreateBuilder displayDescription(String displayDescription)
Description copied from interface:ShareCreateBuilderSet the share description.- Specified by:
displayDescriptionin interfaceShareCreateBuilder- Parameters:
displayDescription- the share description- Returns:
- ShareCreateBuilder
-
shareType
public ShareCreateBuilder shareType(String shareType)
Description copied from interface:ShareCreateBuilderSet the UUID of the share type.- Specified by:
shareTypein interfaceShareCreateBuilder- Parameters:
shareType- the share type- Returns:
- ShareCreateBuilder
-
volumeType
public ShareCreateBuilder volumeType(String volumeType)
Description copied from interface:ShareCreateBuilderSet the volume type.- Specified by:
volumeTypein interfaceShareCreateBuilder- Parameters:
volumeType- the volume type- Returns:
- ShareCreateBuilder
-
snapshotId
public ShareCreateBuilder snapshotId(String snapshotId)
Description copied from interface:ShareCreateBuilderSet the UUID of the snapshot from which to create the share.- Specified by:
snapshotIdin interfaceShareCreateBuilder- Parameters:
snapshotId- the snapshot ID- Returns:
- ShareCreateBuilder
-
isPublic
public ShareCreateBuilder isPublic(Boolean isPublic)
Description copied from interface:ShareCreateBuilderSet the level of visibility for the share.- Specified by:
isPublicin interfaceShareCreateBuilder- Parameters:
isPublic- the level of visibility for the share- Returns:
- ShareCreateBuilder
-
addMetadataItem
public ShareCreateBuilder addMetadataItem(String key, String value)
Description copied from interface:ShareCreateBuilderAdds a new metadata item to the share.- Specified by:
addMetadataItemin interfaceShareCreateBuilder- Parameters:
key- the key of the metadata itemvalue- the value of the metadata item ShareCreateBuilder- Returns:
- ShareCreateBuilder
-
metadata
public ShareCreateBuilder metadata(Map<String,String> metadata)
Description copied from interface:ShareCreateBuilderOne or more metadata key and value pairs as a dictionary of strings.- Specified by:
metadatain interfaceShareCreateBuilder- Parameters:
metadata- the share metadata- Returns:
- ShareCreateBuilder
-
shareNetworkId
public ShareCreateBuilder shareNetworkId(String shareNetworkId)
Description copied from interface:ShareCreateBuilderSet the UUID of the share network.- Specified by:
shareNetworkIdin interfaceShareCreateBuilder- Parameters:
shareNetworkId- the share network ID- Returns:
- ShareCreateBuilder
-
consistencyGroupId
public ShareCreateBuilder consistencyGroupId(String consistencyGroupId)
Description copied from interface:ShareCreateBuilderSet the UUID of the consistency group where the share was created.- Specified by:
consistencyGroupIdin interfaceShareCreateBuilder- Parameters:
consistencyGroupId- the consistency group ID- Returns:
- ShareCreateBuilder
-
availabilityZone
public ShareCreateBuilder availabilityZone(String availabilityZone)
Description copied from interface:ShareCreateBuilderSet the availability zone.- Specified by:
availabilityZonein interfaceShareCreateBuilder- Parameters:
availabilityZone- the availability zone- Returns:
- ShareCreateBuilder
-
build
public ShareCreate build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<ShareCreateBuilder,ShareCreate>- Returns:
- M instance
-
from
public ShareCreateBuilder from(ShareCreate in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<ShareCreateBuilder,ShareCreate>- Returns:
- Builder
-
-