Class CollectionMetadata.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String collectionType,
                       Long collectionTotal)
        Instantiates a new builder with required properties.
        Parameters:
        collectionType - the collectionType
        collectionTotal - the collectionTotal
    • Method Detail

      • build

        public CollectionMetadata build()
        Builds a CollectionMetadata.
        Returns:
        the new CollectionMetadata instance
      • collectionType

        public CollectionMetadata.Builder collectionType​(String collectionType)
        Set the collectionType.
        Parameters:
        collectionType - the collectionType
        Returns:
        the CollectionMetadata builder
      • collectionTotal

        public CollectionMetadata.Builder collectionTotal​(long collectionTotal)
        Set the collectionTotal.
        Parameters:
        collectionTotal - the collectionTotal
        Returns:
        the CollectionMetadata builder