Class FileCreateParams.Builder

  • Enclosing class:
    FileCreateParams

    public static class FileCreateParams.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • build

        public FileCreateParams build()
        Finalize and obtain parameter instance from this builder.
      • addExpand

        public FileCreateParams.Builder addExpand​(java.lang.String element)
        Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See FileCreateParams.expand for the field documentation.
      • addAllExpand

        public FileCreateParams.Builder addAllExpand​(java.util.List<java.lang.String> elements)
        Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See FileCreateParams.expand for the field documentation.
      • setFile

        public FileCreateParams.Builder setFile​(java.io.File file)
        A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the `multipart/form-data` protocol).
      • setFile

        public FileCreateParams.Builder setFile​(java.io.InputStream file)
        A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the `multipart/form-data` protocol).
      • setPurpose

        public FileCreateParams.Builder setPurpose​(FileCreateParams.Purpose purpose)
        The purpose of the uploaded file. Possible values are `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `identity_document`, `pci_document`, or `tax_document_user_upload`