Class DocumentMergeParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.documentmerge.DocumentMergeParams.Builder
-
- Enclosing class:
- DocumentMergeParams
public static class DocumentMergeParams.Builder extends Object
Builds aDocumentMergeParamsinstance.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs aCompressPDFParams.Builderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentMergeParamsbuild()Returns a newDocumentMergeParamsinstance built from the current state of this builder.DocumentMergeParams.BuilderwithFragments(Fragments fragments)Sets theFragmentsfor the document merge process.DocumentMergeParams.BuilderwithJsonDataForMerge(org.json.JSONObject jsonDataForMerge)Sets the input JSON data for the document merge process.DocumentMergeParams.BuilderwithOutputFormat(OutputFormat outputFormat)Sets theOutputFormatfor the document merge process.
-
-
-
Method Detail
-
withJsonDataForMerge
public DocumentMergeParams.Builder withJsonDataForMerge(org.json.JSONObject jsonDataForMerge)
Sets the input JSON data for the document merge process.- Parameters:
jsonDataForMerge- json to be used in the document merge job; can not be null.- Returns:
- this Builder instance to add any additional parameters
-
withOutputFormat
public DocumentMergeParams.Builder withOutputFormat(OutputFormat outputFormat)
Sets theOutputFormatfor the document merge process.- Parameters:
outputFormat- output format for the document merge result; can not be null.- Returns:
- this Builder instance to add any additional parameters
-
withFragments
public DocumentMergeParams.Builder withFragments(Fragments fragments)
Sets theFragmentsfor the document merge process.- Parameters:
fragments- fragments for document merge job; can not be null.- Returns:
- this Builder instance to add any additional parameters
-
build
public DocumentMergeParams build()
Returns a newDocumentMergeParamsinstance built from the current state of this builder.- Returns:
- a new
DocumentMergeParamsinstance
-
-