Interface AddAttachmentsToSetRequest.Builder

    • Method Detail

      • attachmentSetId

        AddAttachmentsToSetRequest.Builder attachmentSetId​(String attachmentSetId)

        The ID of the attachment set. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists.

        Parameters:
        attachmentSetId - The ID of the attachment set. If an attachmentSetId is not specified, a new attachment set is created, and the ID of the set is returned in the response. If an attachmentSetId is specified, the attachments are added to the specified set, if it exists.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachments

        AddAttachmentsToSetRequest.Builder attachments​(Collection<Attachment> attachments)

        One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

        In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        Parameters:
        attachments - One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

        In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachments

        AddAttachmentsToSetRequest.Builder attachments​(Attachment... attachments)

        One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

        In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        Parameters:
        attachments - One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

        In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • attachments

        AddAttachmentsToSetRequest.Builder attachments​(Consumer<Attachment.Builder>... attachments)

        One or more attachments to add to the set. You can add up to three attachments per set. The size limit is 5 MB per attachment.

        In the Attachment object, use the data parameter to specify the contents of the attachment file. In the previous request syntax, the value for data appear as blob, which is represented as a base64-encoded string. The value for fileName is the name of the attachment, such as troubleshoot-screenshot.png.

        This is a convenience method that creates an instance of the Attachment.Builder avoiding the need to create one manually via Attachment.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #attachments(List).

        Parameters:
        attachments - a consumer that will call methods on Attachment.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #attachments(java.util.Collection)