Interface ShareCreateBuilder

    • 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 item
        value - 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