Class BuildCreator


  • public class BuildCreator
    extends Creator<Build>
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    • Constructor Detail

      • BuildCreator

        public BuildCreator​(String pathServiceSid)
        Construct a new BuildCreator.
        Parameters:
        pathServiceSid - Service Sid.
    • Method Detail

      • setAssetVersions

        public BuildCreator setAssetVersions​(List<String> assetVersions)
        The list of Asset Version Sids that are included in this Build. Optional..
        Parameters:
        assetVersions - List of Asset Version Sids.
        Returns:
        this
      • setAssetVersions

        public BuildCreator setAssetVersions​(String assetVersions)
        The list of Asset Version Sids that are included in this Build. Optional..
        Parameters:
        assetVersions - List of Asset Version Sids.
        Returns:
        this
      • setFunctionVersions

        public BuildCreator setFunctionVersions​(List<String> functionVersions)
        The list of Function Version Sids that are included in this Build. Optional..
        Parameters:
        functionVersions - List of Function Version Sids.
        Returns:
        this
      • setFunctionVersions

        public BuildCreator setFunctionVersions​(String functionVersions)
        The list of Function Version Sids that are included in this Build. Optional..
        Parameters:
        functionVersions - List of Function Version Sids.
        Returns:
        this
      • setDependencies

        public BuildCreator setDependencies​(String dependencies)
        The list of Dependencies that are included in this Build, each described by a `name` and a `version` in a JSON object. Optional..
        Parameters:
        dependencies - List of Dependencies.
        Returns:
        this
      • create

        public Build create​(TwilioRestClient client)
        Make the request to the Twilio API to perform the create.
        Specified by:
        create in class Creator<Build>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Created Build